init
This commit is contained in:
@@ -389,8 +389,6 @@ class HTS_etf(HTS):
|
||||
|
||||
avg = {"avg5": [], "avg20": [], "avg60": [], "avg120": [], "avg240": [], "avg480": [], "avg1500": []}
|
||||
|
||||
self.connect2DB("hts.db")
|
||||
|
||||
self.cursor.execute('SELECT ymd, hms, close FROM hts WHERE CODE=? order by ymd, hms', (ticker["stock_code"],))
|
||||
|
||||
q = self.getQ()
|
||||
@@ -422,8 +420,6 @@ class HTS_etf(HTS):
|
||||
avg["avg480"].append(disparity_avg480)
|
||||
avg["avg1500"].append(disparity_avg1500)
|
||||
|
||||
self.disconnect()
|
||||
|
||||
disparity = {
|
||||
'avg': {},
|
||||
"limit_top_1": {"avg5": None, "avg20": None, "avg60": None, "avg120": None, "avg240": None, "avg480": None, "avg1500": None},
|
||||
|
||||
Reference in New Issue
Block a user