init
This commit is contained in:
@@ -447,8 +447,8 @@ class HTS:
|
|||||||
start_time = datetime.strptime(given_day + " 090000", '%Y%m%d %H%M%S')
|
start_time = datetime.strptime(given_day + " 090000", '%Y%m%d %H%M%S')
|
||||||
|
|
||||||
temp = datetime.strptime(str(days) + " " + str(time).zfill(4) + "00", '%Y%m%d %H%M%S')
|
temp = datetime.strptime(str(days) + " " + str(time).zfill(4) + "00", '%Y%m%d %H%M%S')
|
||||||
if temp < start_time:
|
#if temp < start_time:
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
result["time"].append(temp)
|
result["time"].append(temp)
|
||||||
result["open"].append(int(open_v))
|
result["open"].append(int(open_v))
|
||||||
@@ -530,4 +530,4 @@ class HTS:
|
|||||||
result["low"].append(low)
|
result["low"].append(low)
|
||||||
result["vol"].append(vol)
|
result["vol"].append(vol)
|
||||||
|
|
||||||
return
|
return result
|
||||||
Reference in New Issue
Block a user