Skip to content
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

pandas_datareader.data.DataReader can no longer access stooq #955

Open
charizardavi opened this issue Dec 26, 2022 · 4 comments
Open

pandas_datareader.data.DataReader can no longer access stooq #955

charizardavi opened this issue Dec 26, 2022 · 4 comments

Comments

@charizardavi
Copy link

As of 9:30 or so EST on 12/25, the DataReader method could not retrieve data from stooq. It returned a blank dataframe. Is there any other option for getting the same data formatted similarly? I have also tested pandas_datareader.get_data_stooq, and this method does not seem to work either.

@charizardavi
Copy link
Author

Update: I am now using the pandas_datareader.get_data_tiingo method, which is working as intended.

@mindtd
Copy link

mindtd commented Jan 1, 2023

Observation - I am able to use stooq to read data (when yahoo returns error). Noted that stock, like 2222.SR Saudi Aramco will return empty df because cannot be found in stooq (check symbol https://stooq.com/db/h/). Quick fix is to add dropna() after getting the stooq df.

import pandas_datareader.data as web

data = web.DataReader(tickers, "stooq", start, end)['Close']
data = data.dropna()

@raphi6
Copy link

raphi6 commented Jan 12, 2023

Update: I am now using the pandas_datareader.get_data_tiingo method, which is working as intended.

This also might be fixed by PR #953
If you could test it out by locally installing my version of the fix that would greatly help :)

@Goonie5
Copy link

Goonie5 commented Apr 22, 2023

I experienced the same issue today. Retrieves an empty DataFrame. Tried dropna() and it didn't solve for me.

import pandas_datareader.data as web
data = web.DataReader('AAPL', 'stooq')
print (data)

Empty DataFrame
Columns: []
Index: []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants