This commit is contained in:
dsyoon
2024-11-06 20:44:04 +09:00
parent 1e5567d7de
commit c19ed9f6ed

View File

@@ -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