pandas-datareader icon indicating copy to clipboard operation
pandas-datareader copied to clipboard

pandas_datareader.data.DataReader can no longer access stooq

Open charizardavi opened this issue 2 years ago • 4 comments

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 avatar Dec 26 '22 13:12 charizardavi

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

charizardavi avatar Dec 26 '22 13:12 charizardavi

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()

mindtd avatar Jan 01 '23 23:01 mindtd

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 :)

raphi6 avatar Jan 12 '23 20:01 raphi6

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: []

Goonie5 avatar Apr 22 '23 06:04 Goonie5