-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing Sandbox Deprecated #47
Comments
The sandbox is on more unfortunately. Also you will find part 3 of the course requires a paid version of the api sadly. But you can do the first two for free, just use |
@npomfret @nickmccullum Love the course!! Unfortunately even when I use a new base_url = 'https://cloud.iexapis.com' I still get errors shown below. Anything I could try next? |
Can you print out the http status code? Change your request to something like: response = requests.get(api_url)
print(response.status_code). <-- need to see this
data = response.json() It should be |
|
Found a solution to this issue. I had the same issue also with the It seems like IEX Cloud has abandoned the system of API's mentioned in the video (docs also call it old now). You can find the new documentation at https://iexcloud.io/docs/. What I did was make an account with IEX Cloud (for free). This will give you access for 30 days to their API platform, should be enough for the course. On the upside: the data will be actual data and not the random data like in the old sandbox. The new
And you have to replace the token in the My final code block looks like this:
|
@djangovanderplas have you made it to the Batch API Calls section yet? |
thanks for the tip regarding the json()[0] |
batch api url? |
@inaG17 batch api url mentioned in the pic in my comment throws 402 which says payment needed to make the api call |
For those who are stuck on the batch call, here's my code. (Definitely could be better, but i'm still a beginner)
|
Just want to add that Public token of my new account also works. |
I am getting a 403 error when making API call for AAPL around minute 41 of the video. Is this because it is deprecated? Is there a work around?
The text was updated successfully, but these errors were encountered: