From 83fe8fed07dd8032483a6a5703398ac9b98b8658 Mon Sep 17 00:00:00 2001 From: dosangyoon Date: Thu, 23 Sep 2021 08:34:50 +0900 Subject: [PATCH] init --- hts/HTS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hts/HTS.py b/hts/HTS.py index b7309d1..819db1f 100644 --- a/hts/HTS.py +++ b/hts/HTS.py @@ -502,7 +502,7 @@ class HTS: "low": [], "vol": []} - while datetime.strptime(given_day + " 085900", '%Y%m%d %H%M%S') < datetime.now() < datetime.strptime(given_day + " 151500", '%Y%m%d %H%M%S'): + while datetime.strptime(given_day + " 083000", '%Y%m%d %H%M%S') < datetime.now() < datetime.strptime(given_day + " 151500", '%Y%m%d %H%M%S'): second = datetime.now().strftime('%Y%m%d %H%M%S') if second in timecheck and not timecheck[second]: @@ -524,7 +524,7 @@ class HTS: if price > 0: print("BUY", second, price) - count = 10 + count = 5 self.orderToBuy(stock_code, count, price) self.orderToSell(stock_code, count, price + 5)