init
This commit is contained in:
@@ -603,9 +603,16 @@ class AnalyzerSqlite:
|
||||
result.append({'ticker_code': CODE, 'ticker_name': NAME,'close': stock_daily['close'][0], 'type': '20~60'})
|
||||
|
||||
pStr = '[Stock Analysis]\n'
|
||||
i = 0
|
||||
for item in result:
|
||||
pStr += " <{}> {} {} ({:.2f})\n".format(item['type'], item['ticker_code'], item['ticker_name'], item['close'])
|
||||
self.bot.sendMsg(pStr)
|
||||
i += 1
|
||||
if i==100:
|
||||
i = 0
|
||||
self.bot.sendMsg(pStr)
|
||||
pStr = ''
|
||||
if i>0:
|
||||
self.bot.sendMsg(pStr)
|
||||
return
|
||||
|
||||
def get_moving_average(self, stock):
|
||||
|
||||
Reference in New Issue
Block a user