From 7377217e1cbb456e0da6afe8fc85bd3db4c36eca Mon Sep 17 00:00:00 2001 From: dsyoon Date: Tue, 12 Dec 2023 11:03:36 +0900 Subject: [PATCH] init --- HTS_etf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HTS_etf.py b/HTS_etf.py index 95bee4d..35d9b1d 100644 --- a/HTS_etf.py +++ b/HTS_etf.py @@ -444,10 +444,10 @@ class HTS_etf(HTS): self.bot.post(self.stock_code, self.stock_name, "[BUY] ", buy_price, buy_count, data['rsi'][-1], -1) # 미체결 기록을 가져와서 10분 이상 된 매수 주문을 취소 한다. - #ORDER_LIST = self.requestOrderList() - #orderListToCancel = self.orderChecker.cancel(today, "A" + self.stock_code, ORDER_LIST, mins=10) - #if len(orderListToCancel) > 0: - # self.cancelOrderList(orderListToCancel) + ORDER_LIST = self.requestOrderList() + orderListToCancel = self.orderChecker.cancel(today, "A" + self.stock_code, ORDER_LIST, mins=3) + if len(orderListToCancel) > 0: + self.cancelOrderList(orderListToCancel) if (int(THIS_TIME.strftime("%M")) % 50 == 0 or int(THIS_TIME.strftime("%M")) % 20 == 0):