Pandas-datareader: Unable to fetch Yahoo options table using Jupyter Notebook

Created on 21 Apr 2020  路  7Comments  路  Source: pydata/pandas-datareader

Yahoo Options has been immediately deprecated due to large breaks in the API without the introduction of a stable replacement. Pull Requests to re-enable these data connectors are welcome.

Most helpful comment

It is still working for me, I had to work around the wrapper of the Yahoo call.
Here is the code that is still working, I hope this helps!

from pandas_datareader.yahoo.options import Options as YahooOptions
underlying_symbol = 'SPY'
options_obj = YahooOptions(underlying_symbol)
options_frame_live = options_obj.get_options_data()

All 7 comments

Hi i'm facing the same issue

Any updates???

I am facing the same issue and I'm new to coding. Anyone can help on this?

It is still working for me, I had to work around the wrapper of the Yahoo call.
Here is the code that is still working, I hope this helps!

from pandas_datareader.yahoo.options import Options as YahooOptions
underlying_symbol = 'SPY'
options_obj = YahooOptions(underlying_symbol)
options_frame_live = options_obj.get_options_data()

@rkraghavkh18 thanks bro it worked!!!

it works. thank you

I tried the codes above but the comments below still appear.

ImmediateDeprecationError Traceback (most recent call last)
in
3 options_obj = YahooOptions(underlying_symbol)
4 options_frame_live = options_obj.get_options_data()
----> 5 fb_options = Options('FB', 'yahoo')

~/opt/anaconda3/lib/python3.8/site-packages/pandas_datareader/data.py in Options(symbol, data_source, session)
690 data_source = "yahoo"
691 if data_source == "yahoo":
--> 692 raise ImmediateDeprecationError(DEP_ERROR_MSG.format("Yahoo Options"))
693 return YahooOptions(symbol, session=session)
694 else:

ImmediateDeprecationError:
Yahoo Options has been immediately deprecated due to large breaks in the API without the
introduction of a stable replacement. Pull Requests to re-enable these data
connectors are welcome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amoriello picture amoriello  路  5Comments

TyrelCB picture TyrelCB  路  6Comments

vnmabus picture vnmabus  路  8Comments

tr4cefl0w picture tr4cefl0w  路  3Comments

walsha2 picture walsha2  路  5Comments