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

fixed stock market cap bug

This commit is contained in:
Anson Biggs 2021-11-05 23:31:24 -07:00
parent d533c2c4a2
commit 9d510fc104

View File

@ -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"]