mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-06-16 15:06:53 +00:00
fixed stock market cap bug
This commit is contained in:
parent
d533c2c4a2
commit
9d510fc104
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user