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)