init
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user