forked from iamashwin99/amiCOM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemp.py
More file actions
27 lines (24 loc) · 695 Bytes
/
temp.py
File metadata and controls
27 lines (24 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import pandas as pd
class Fetcher:
lastfetchdate=0
listoftickerforthis=[] #List of stocks in this class for this db to be calulated the moment db is switched
def getData(inst,days):
pass
def ABimport(AmiBroker,dfa,tempfile):
dfa.to_csv(path, index=False,header=None)
AmiBroker.Import(0, tempfile, "amicom.format")
AmiBroker.RefreshAll()
pass
def importTicker():
pass
def RT():
pass
def quickRefresh():
pass
def backFill(inst,days):
ABimport( pd.DataFrame(data= getData(inst,days) ).transpose() )
pass
def backFillAll():
pass
def backfillCurrent():
pass