This commit is contained in:
dsyoon
2023-02-07 09:57:57 +09:00
parent c3156e9f25
commit d345866aff

View File

@@ -76,7 +76,8 @@ class HTS_Stocks (HTS):
# 10% 이상 수익이어야 매도한다.
max_price = int(jangoDic[code]['장부가'] * 1.10)
if max_price <= final_price:
sell_price = (int(max_price) - int(max_price) % 5)
# 2% 이상 상승이면 매도 가능함
sell_price = (int(max_price) - int(max_price) % 2)
orderNum = self.requestOrder(OrderType.sell, stock_code, jangoDic[code]['매도가능'], sell_price)
return orderNum, log_time.strftime('%Y%m%d %H%M%S'), jangoDic[code]['매도가능'], sell_price