This commit is contained in:
dsyoon
2024-11-16 15:10:01 +09:00
parent 8313c67d11
commit 97ceb610f7

View File

@@ -614,17 +614,20 @@ class AnalyzerSqlite:
self.writeFile(dir_name, CODE, NAME, top, stock_daily, log) self.writeFile(dir_name, CODE, NAME, top, stock_daily, log)
result_ichimok.append({'ticker_code': CODE, 'ticker_name': NAME,'close': stock_daily['close'][0], 'type': 'ichimok'}) result_ichimok.append({'ticker_code': CODE, 'ticker_name': NAME,'close': stock_daily['close'][0], 'type': 'ichimok'})
self.sendMsg(result_3_5, result_5_20, result_ichimok)
return
def sendMsg(self, result_3_5, result_5_20, result_ichimok):
pStr = '[Stock Analysis]\n' pStr = '[Stock Analysis]\n'
i = 0 i = 0
for item in result_3_5: for item in result_3_5:
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 i += 1
if i==100: if i == 100:
i = 0 i = 0
self.bot.sendMsg(pStr) self.bot.sendMsg(pStr)
pStr = '' pStr = ''
if i>0: if i > 0:
self.bot.sendMsg(pStr) self.bot.sendMsg(pStr)
i = 0 i = 0