1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-06-16 15:06:53 +00:00

make it easier to debug bot without using messages

This commit is contained in:
Anson 2021-01-31 15:13:28 -07:00
parent 6c1c9ac420
commit 11d64ab413

View File

@ -53,10 +53,11 @@ Market data is provided by [IEX Cloud](https://iexcloud.io)
def __init__(self, IEX_TOKEN: str): def __init__(self, IEX_TOKEN: str):
self.IEX_TOKEN = IEX_TOKEN self.IEX_TOKEN = IEX_TOKEN
self.get_symbol_list() if IEX_TOKEN != "":
self.get_symbol_list()
schedule.every().monday.do(self.get_symbol_list) schedule.every().monday.do(self.get_symbol_list)
schedule.every().day.do(self.clear_charts) schedule.every().day.do(self.clear_charts)
def clear_charts(self): def clear_charts(self):
self.charts = {} self.charts = {}