This commit is contained in:
dsyoon
2022-07-09 22:50:19 +09:00
parent b8ba7d842d
commit 6fc897fd1a
1507 changed files with 408144 additions and 191136 deletions

View File

@@ -25,7 +25,7 @@ class DataDownloader (HTS):
# 차트 객체 구하기
objStockChart = win32com.client.Dispatch("CpSysDib.StockChart")
outfp = open("./hts/data/" + stock_code + "_" + today + ".csv", mode="w", encoding="utf-8")
outfp = open("./hts/backup/" + stock_code + "_" + today + ".csv", mode="w", encoding="utf-8")
objStockChart.SetInputValue(0, 'A' + stock_code) # 종목 코드
objStockChart.SetInputValue(1, ord('1')) # 1: 기간으로 조회, 2: 개수로 조회
objStockChart.SetInputValue(2, today) # 기간 조회 시, 시작일
@@ -76,6 +76,6 @@ if __name__ == "__main__":
zero_count = 0
print(given_day, count)
if zero_count > 10:
break
if zero_count > 10:
break
print ("done...")