Skip to content

Commit f53b3cb

Browse files
committed
update API call in lookup() function in helpers.py. iex cloud changed the base url for the API.
1 parent a14b7e7 commit f53b3cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def lookup(symbol):
4141
# Contact API
4242
try:
4343
api_key = os.environ.get("API_KEY")
44-
response = requests.get(f"https://cloud-sse.iexapis.com/stable/stock/{urllib.parse.quote_plus(symbol)}/quote?token={api_key}")
44+
response = requests.get(f"https://cloud.iexapis.com/stable/stock/{urllib.parse.quote_plus(symbol)}/quote?token={api_key}")
4545
response.raise_for_status()
4646
except requests.RequestException:
4747
return None

0 commit comments

Comments
 (0)