init
This commit is contained in:
@@ -454,7 +454,10 @@ class HTS_etf(HTS):
|
||||
|
||||
|
||||
if (int(THIS_TIME.strftime("%M")) % 50 == 0 or int(THIS_TIME.strftime("%M")) % 20 == 0):
|
||||
self.bot.alarm_live(self.stock_code, self.stock_name)
|
||||
#self.bot.alarm_live(self.stock_code, self.stock_name)
|
||||
self.bot.sendMsg("Alive... {} ({}) avg: {:.2f}, close: {:.2f}".format(self.stock_code,
|
||||
self.stock_name,
|
||||
buy_avg, data['close'][-1]))
|
||||
|
||||
time.sleep(60)
|
||||
THIS_TIME = datetime.now()
|
||||
|
||||
Reference in New Issue
Block a user