init
This commit is contained in:
@@ -614,17 +614,20 @@ class AnalyzerSqlite:
|
||||
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'})
|
||||
|
||||
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'
|
||||
i = 0
|
||||
for item in result_3_5:
|
||||
pStr += " <{}> {} {} ({:.2f})\n".format(item['type'], item['ticker_code'], item['ticker_name'], item['close'])
|
||||
i += 1
|
||||
if i==100:
|
||||
if i == 100:
|
||||
i = 0
|
||||
self.bot.sendMsg(pStr)
|
||||
pStr = ''
|
||||
if i>0:
|
||||
if i > 0:
|
||||
self.bot.sendMsg(pStr)
|
||||
|
||||
i = 0
|
||||
|
||||
Reference in New Issue
Block a user