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

View File

@@ -603,9 +603,16 @@ 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'])
self.bot.sendMsg(pStr) i += 1
if i==100:
i = 0
self.bot.sendMsg(pStr)
pStr = ''
if i>0:
self.bot.sendMsg(pStr)
return return
def get_moving_average(self, stock): def get_moving_average(self, stock):