mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-16 07:16:40 +00:00
make it easier to debug bot without using messages
This commit is contained in:
parent
6c1c9ac420
commit
11d64ab413
@ -53,10 +53,11 @@ Market data is provided by [IEX Cloud](https://iexcloud.io)
|
||||
|
||||
def __init__(self, IEX_TOKEN: str):
|
||||
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().day.do(self.clear_charts)
|
||||
schedule.every().monday.do(self.get_symbol_list)
|
||||
schedule.every().day.do(self.clear_charts)
|
||||
|
||||
def clear_charts(self):
|
||||
self.charts = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user