This commit is contained in:
dsyoon
2022-08-10 10:57:37 +09:00
parent 2564871ff8
commit 78cba574c2
2 changed files with 2 additions and 2 deletions

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+ 10) - int(max_price + 10) % 10) + 5
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)