Options data from Yahoo Finance

Options data is not available from Yahoo Finance library (yfinance) as taught in the “Getting Market Data: Stocks, Crypto, News & Fundamental” course. The yfinance library gives out an empty tuple when I execute the following code in quiz 6.2 of the course:

fb_ticker = yf.Ticker(‘META’)
expiry_date = fb_ticker.options

Are you able to kindly update the course material and quizzes accordingly?

Kind regards,
Faizan

Hi Faizan,

The issue in the exercise is due to the recent updates in the yfinance library which might not be stable and causes the numpy and pandas to upgrade and throw compatibility errors. We have deployed a fix in the notebook which would allow you to fetch the options data from yfinance. However, for the exercise in Section 6 Unit 2 we will be removing it as it is causing other instabilities in the environment. But you can run the code and fetch the data from the notebook in Section 6 Unit 1 (Quantra by QuantInsti | Courses on Algorithmic and Quantitative Trading)