init
This commit is contained in:
@@ -39,6 +39,7 @@ if __name__ == "__main__":
|
||||
|
||||
print("START...")
|
||||
close_data = {}
|
||||
INIT = True
|
||||
while datetime.strptime(today + " 060000", '%Y%m%d %H%M%S') < datetime.now() < datetime.strptime(today + " 153100", '%Y%m%d %H%M%S'):
|
||||
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < datetime.now() < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
|
||||
THIS_TIME = datetime.now()
|
||||
@@ -56,6 +57,11 @@ if __name__ == "__main__":
|
||||
|
||||
hts.buyRealTime(stock, data, data_signal, BUY_LIST[stock['stock_code']]['MAX_BUY_PRICE'], BUY_LIST[stock['stock_code']]['BUY_LIST_1'])
|
||||
close_data[stock['stock_code']] = data['close'][-1]
|
||||
|
||||
if INIT:
|
||||
hts.bot.sendMsg("Alive... close: {}".format(str(close_data)))
|
||||
INIT = False
|
||||
|
||||
if (int(THIS_TIME.strftime("%M")) % 50 == 0 or int(THIS_TIME.strftime("%M")) % 20 == 0):
|
||||
vm = psutil.virtual_memory()
|
||||
vm_item = dict()
|
||||
|
||||
Reference in New Issue
Block a user