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)