You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if data.status_code == 200:
data = data.json()
final_dataframe = final_dataframe.append(
pd.Series(
[stock, data['latestPrice'], data['marketCap'], 'N/A'],
index = mycolumns
),
ignore_index = True
)
else:
print(f'An error occurred, status code: {data.status_code}')
The text was updated successfully, but these errors were encountered:
Shanu2092
changed the title
Getting error 403,Tried replacing token with a new one, used try excel clause
Getting error 403,Tried replacing token with a new one, used try except clause
Apr 4, 2023
final_dataframe = pd.DataFrame(columns = mycolumns)
for stock in stocks['Ticker']:
api_url = f'https://sandbox.iexapis.com/stable/stock/{stock}/quote/?token=sk_b92781ff259841bead23d3012a9f8cf3'
data = requests.get(api_url)
The text was updated successfully, but these errors were encountered: