This commit is contained in:
dsyoon
2023-10-12 22:59:30 +09:00
parent 4cd5487e6a
commit 9c6ab45d87
4 changed files with 55 additions and 53 deletions

View File

@@ -203,6 +203,7 @@ if __name__ == "__main__":
# KODEX 인버스 * 2
stock_code = "252670"
stock_name = "KODEX 레버리지"
hts = HTS_etf(RESOURCE_PATH)
hts.connect2DB("hts.db")
@@ -211,7 +212,7 @@ if __name__ == "__main__":
hts.buyRealTime(today_str, stock_code, analyzed_day=1000)
db_filename = os.path.join(RESOURCE_PATH, "hts.db")
hts.insertStockData(stock_code, today)
hts.insertStockData(today, stock_code, stock_name)
hts.disconnect()
print("done...")