This commit is contained in:
dsyoon
2022-08-10 11:42:30 +09:00
parent 71f16a5d44
commit f6f3cd6ef2

View File

@@ -37,7 +37,7 @@ class HTS_122630 (HTS):
if jangoDic[code]['매도가능'] > 0:
max_price = max(jangoDic[code]['장부가'], final_price)
if code == "A"+stock_code:
sell_price = (int(max_price+5) - int(max_price+5) % 5) + 10
sell_price = (int(max_price+5) - int(max_price+5) % 5) + 5
if log_time.strftime('%H%M') < "1430":
orderNum = self.requestOrder(OrderType.sell, stock_code, jangoDic[code]['매도가능'], sell_price)
print("ORDER_SELL", stock_code, log_time.strftime('%Y%m%d %H%M%S'), jangoDic[code]['매도가능'], sell_price)