This commit is contained in:
dsyoon
2021-09-23 21:15:45 +09:00
parent 24424b6d6c
commit 6309ad5f88
2 changed files with 384 additions and 383 deletions

View File

@@ -268,7 +268,7 @@ class HTS:
size = objStockChart.GetHeaderValue(3)
# print("날짜", "시간", "시가", "고가", "저가", "종가", "거래량")
print("%s,%s,%s,%s,%s,%s,%s" % ("날짜", "시간", "시가", "고가", "저가", "종가", "거래량"))
for i in range(size - 1, -1, -1):
day = objStockChart.GetDataValue(0, i)
time = objStockChart.GetDataValue(1, i)
@@ -277,7 +277,7 @@ class HTS:
low = objStockChart.GetDataValue(4, i)
close = objStockChart.GetDataValue(5, i)
vol = objStockChart.GetDataValue(6, i)
print(day, time, open, high, low, close, vol)
print("%d,%s,%d,%d,%d,%d,%d" % (day, str(time).zfill(4), open, high, low, close, vol))
return