Skip to content

Yahoo Options data issue #259

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
delislecl opened this issue Nov 8, 2016 · 3 comments
Closed

Yahoo Options data issue #259

delislecl opened this issue Nov 8, 2016 · 3 comments

Comments

@delislecl
Copy link

Hi,
I have some issues when trying to pull options data with yahoo, here is my code :

from pandas_datareader.data import Options
import datetime

getOptions = Options("AAPL", 'yahoo')
data = getOptions.get_all_data()
data.iloc[:,:]

Here is the error message i'm getting :

Traceback (most recent call last):
  File "P:\Clement\Visual Studio\Python\TestFinanceData\TestFinanceData\TestFinanceData.py", line 5, in <module>
    data = getOptions.get_all_data()
  File "C:\Users\Clement.PANAROMA\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas_datareader\yahoo\options.py", line 593, in get_all_data
    expiry_dates = self.expiry_dates
  File "C:\Users\Clement.PANAROMA\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas_datareader\yahoo\options.py", line 621, in expiry_dates
    expiry_dates, _ = self._get_expiry_dates_and_links()
  File "C:\Users\Clement.PANAROMA\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas_datareader\yahoo\options.py", line 647, in _get_expiry_dates_and_links
    raise RemoteDataError('Data not available') # pragma: no cover
RemoteDataError: Data not available

Any idea this could be ? Do you have the same problem ?

Thanks,

@femtotrader
Copy link
Contributor

Which version of pandas-datareader are you using ?

Pip install ? or last Github master ?

@delislecl
Copy link
Author

I have pandas-datareader v0.2.1, it's a pip install yes.
Does my code work on your side ?

Thanks,

@femtotrader
Copy link
Contributor

DataReader for Yahoo Options was broken
See #212

This PR #244
should fix it and will be merged in the next coming days

Please keep updated and use latest Github master version

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