This commit is contained in:
dsyoon
2023-02-01 20:13:57 +09:00
parent a409e5c07c
commit 346e1655f3

View File

@@ -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)