nickmccullum / algorithmic-trading-python

The repository for freeCodeCamp's YouTube course, Algorithmic Trading in Python
2.43k stars 2.42k forks source link

Deprecation Issue with IEX Cloud API Sandbox in Code Snippet #61

Open alphacipher1 opened 1 year ago

alphacipher1 commented 1 year ago

Description: I encountered an issue related to the deprecated IEX Cloud API sandbox while trying to retrieve stock data using the code snippet in the tutorial. I would appreciate any help or guidance to resolve this problem.

Code Snippet: symbol = 'AAPL' api_url = f'https://sandbox.iexapis.com/stable/stock/{symbol}/quote?token={IEX_CLOUD_API_TOKEN}' data = requests.get(api_url).json() print(data)

Results in a JSONDecodeError.

Problem: The sandbox environment that the code relies on for retrieving stock data is deprecated and no longer functioning. As a result, I am unable to retrieve the necessary data for further analysis.

An attempt to using a different financial data provider would lead to a major dissonance between the code in the tutorial/repository and the one I will be working on.

syedr-prog commented 1 year ago

I am getting the same error. You could sign up for their trial but its not working anymore. I am also getting 403

joethesaint commented 3 months ago

I am currently stuck in this issue, seeing if there is a workaround still by using the same data provider. And @nickmccullum stated it is a sandbox so it shouldn't involve a free trial, still doubting.

VardhanHegde commented 2 months ago

Same issue for me, status code 403, can someone help ?

joethesaint commented 2 months ago

I can help with that. I've gotten a workaround. I would upload and tag it here so you can use it to finish the work.

VardhanHegde commented 2 months ago

I can help with that. I've gotten a workaround. I would upload and tag it here so you can use it to finish the work.

Thanks man , 🤝

joethesaint commented 3 weeks ago

Hello @VardhanHegde

Sorry it took a while but here is the link to my starter_files/001_equal_weight_S&P_500.ipynb. You can read through it. Although I am yet to clean it as much because I wanted to also show that I had to try out other API provider and finally got to stick with Financial Modeling Prep (FMP).

Although, I am yet to do the other two, with time, I should finish going through it.

Python_of_Algorithmic_Trading/starter_files/001_equal_weight_S&P_500.ipynb