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