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

bug where dividend was only returning msft

This commit is contained in:
Anson Biggs 2021-02-11 21:29:44 -07:00
parent 9b100f4926
commit bbb73c8405

View File

@ -280,7 +280,7 @@ _Donations can only be made in a chat directly with @simplestockbot_
Each symbol passed in is a key with its value being a human readable formatted string of the symbols div dates.
"""
IEXurl = f"https://cloud.iexapis.com/stable/stock/msft/dividends/next?token={self.IEX_TOKEN}"
IEXurl = f"https://cloud.iexapis.com/stable/stock/{symbol}/dividends/next?token={self.IEX_TOKEN}"
response = r.get(IEXurl)
if response.status_code == 200:
IEXData = response.json()[0]