This commit is contained in:
dosangyoon
2021-09-23 08:34:50 +09:00
parent cddff4f614
commit 83fe8fed07

View File

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