From bbb73c8405e63bbc4b186fc8fb7425a8e54b1df2 Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Thu, 11 Feb 2021 21:29:44 -0700 Subject: [PATCH] bug where dividend was only returning msft --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index a65a308..44e3d04 100644 --- a/functions.py +++ b/functions.py @@ -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]