From 28a191442435dc8072fa944b9e73834a4e363a54 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Tue, 6 Feb 2024 08:07:17 +0900 Subject: [PATCH] init --- HTS_stocks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HTS_stocks.py b/HTS_stocks.py index 4314bc4..9aa3f25 100644 --- a/HTS_stocks.py +++ b/HTS_stocks.py @@ -79,9 +79,10 @@ class HTS_Stocks (HTS): THIS_TIME = datetime.now() while datetime.strptime(today + " 070000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100", '%Y%m%d %H%M%S'): + THIS_TIME = datetime.now() # 1515 까지만 매수를 시도한다. - if datetime.strptime(today + " 080000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'): + if datetime.strptime(today + " 090500", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'): today_stock = self.get_today_stock() if len(today_stock) < 1: @@ -133,8 +134,7 @@ class HTS_Stocks (HTS): vm_item['idle'] = vm.available / vm.total * 100 hts.bot.sendMsg("Alive... mem: {:.1f}".format(vm_item['idle'])) - time.sleep(600) - THIS_TIME = datetime.now() + time.sleep(100) return