init
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user