This commit is contained in:
dosangyoon
2021-09-22 21:53:55 +09:00
parent 40181a655d
commit 8259b1dc54

View File

@@ -292,7 +292,7 @@ class HTS:
day = objStockChart.GetDataValue(0, i)
if day < int_given_day:
continue
time = datetime.strptime(day+" "+str(objStockChart.GetDataValue(1, i)), '%Y%m%d %H%M%S')
time = datetime.strptime(str(day)+" "+str(objStockChart.GetDataValue(1, i)), '%Y%m%d %H%M%S')
if time < start_time:
continue
@@ -305,6 +305,11 @@ class HTS:
if len(result["check"]) == 0:
result["check"].add(start_time)
result["time"].append(start_time)
result["open"].append(open)
result["close"].append(open)
result["high"].append(open)
result["low"].append(open)
result["vol"].append(0)
if time not in result["check"]:
result["check"].add(time)