mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-08-01 19:11:32 +00:00
fixed stock market cap bug
This commit is contained in:
@@ -362,7 +362,7 @@ class IEX_Symbol:
|
||||
def cap_reply(self, symbol: Stock) -> str:
|
||||
"""Get the Market Cap of a stock"""
|
||||
|
||||
if data := self.get(f"/stable/stock/{symbol.id}/stats"):
|
||||
if data := self.get(f"/stock/{symbol.id}/stats"):
|
||||
|
||||
try:
|
||||
cap = data["marketcap"]
|
||||
|
Reference in New Issue
Block a user