1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-07-23 14:41:26 +00:00

fixed status command

This commit is contained in:
2021-03-27 19:10:51 -07:00
parent 621de911cd
commit f65704b0be
4 changed files with 31 additions and 32 deletions

View File

@@ -54,13 +54,24 @@ class Router:
print(symbols)
return symbols
def status(self) -> str:
def status(self, bot_resp) -> str:
"""Checks for any issues with APIs.
Returns
-------
str
Human readable text on status of IEX API
Human readable text on status of the bot and relevant APIs
"""
return f"""
Bot Status:
{bot_resp}
Stock Market Data:
{self.stock.status()}
Cryptocurrency Data:
{self.crypto.status()}
"""
def search_symbols(self, search: str) -> List[Tuple[str, str]]: