diff --git a/HTS_etf.py b/HTS_etf.py index 2857126..4cae156 100644 --- a/HTS_etf.py +++ b/HTS_etf.py @@ -485,7 +485,8 @@ class HTS_etf(HTS): if len(orderListToCancel) > 0: self.cancelOrderList(orderListToCancel) """ - if (int(THIS_TIME.strftime("%M")) % 50 == 0 or int(THIS_TIME.strftime("%M")) % 20 == 0): + + if ((int(THIS_TIME.strftime("%M")) == 4) and 0 <= int(THIS_TIME.strftime("%S")) <= 59): #self.bot.alarm_live(stock_code, stock_name) vm = psutil.virtual_memory() vm_item = dict()