From 346e1655f39c7e4ef35dbe1bebe81b5019b3ecee Mon Sep 17 00:00:00 2001 From: dsyoon Date: Wed, 1 Feb 2023 20:13:57 +0900 Subject: [PATCH] init --- HTS_etf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTS_etf.py b/HTS_etf.py index f78ca03..5e3dbf4 100644 --- a/HTS_etf.py +++ b/HTS_etf.py @@ -179,7 +179,7 @@ class HTS_etf (HTS): self.cancelOrderList(orderList) # 매도 가격을 가져온다. - result = self.getRealTime(stock['stock_code'], today, LAST_DATA) + result = self.getRealTime(stock['stock_code'], today, LAST_DATA[stock['stock_code']]) final_price = result["close"][len(result["close"]) - 1] orderNum, sell_time, jango, sell_price = self.getSellingPrice(THIS_TIME, stock['stock_code'], final_price, without_loss=True)