This commit is contained in:
dsyoon
2024-02-06 08:07:17 +09:00
parent 2bb5152e99
commit 28a1914424

View File

@@ -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