Skip to content

Obtaining options data from yahoo is broken #13667

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

Closed
rajanshah opened this issue Jul 15, 2016 · 2 comments
Closed

Obtaining options data from yahoo is broken #13667

rajanshah opened this issue Jul 15, 2016 · 2 comments

Comments

@rajanshah
Copy link

rajanshah commented Jul 15, 2016

I am not sure, but it appears that obtaining options data from yahoo is broken as it results into following error at the end.

Code Sample, a copy-pastable example if possible

from pandas.io.data import Options
aapl = Options('aapl', 'yahoo')
data = aapl.get_all_data()

Expected Output

AAPL options data for near-term expiry dates

output of pd.show_versions()

pandas: 0.18.1+204.gd7c028d
pandas_datareader: 0.2.1

output of self._get_expiry_dates()

pandas/io/data.py in _get_expiry_dates_and_links(self)
1191
1192 if len(expiry_dates) == 0:
1193 raise RemoteDataError('Data not available')
1194
1195 expiry_links = dict(zip(expiry_dates, links))

RemoteDataError: Data not available

@jorisvandenbossche
Copy link
Member

@rajanshah the io.data module is deprecated in pandas and moved to pandas-datareader. Can you report the issue over there? (https://github.com/pydata/pandas-datareader/issues) Thanks!

@jorisvandenbossche jorisvandenbossche added this to the No action milestone Jul 16, 2016
@jorisvandenbossche
Copy link
Member

Although it seems the issue is already reported there: pydata/pandas-datareader#212

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

2 participants