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

Unable to fetch Yahoo options table using Jupyter Notebook

Open kumaranu7 opened this issue 5 years ago • 7 comments

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.

kumaranu7 avatar Apr 21 '20 16:04 kumaranu7

Hi i'm facing the same issue

Sara-2007 avatar Jun 20 '20 00:06 Sara-2007

Any updates???

Sara-2007 avatar Jun 20 '20 00:06 Sara-2007

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

kesava-18bil avatar Jul 03 '20 12:07 kesava-18bil

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 avatar Aug 05 '20 02:08 rkraghavkh18

@rkraghavkh18 thanks bro it worked!!!

daniyalwyte10 avatar Aug 26 '20 09:08 daniyalwyte10

it works. thank you

fayenka avatar Dec 10 '20 23:12 fayenka

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.

wyatthien avatar Feb 18 '21 16:02 wyatthien