This package to only fetch option data from yahoo finance
pip install yfoption
- Get options of ticker as straddle
import yfoption as yf
opt = yf.Option("AAPL")
opt.option_straddle('2021-12-23')
- Get options of ticker
import yfoption as yf
opt = yf.Option("AAPL")
opt.options
- Get strikes of ticker
import yfoption as yf
opt = yf.Option("AAPL")
opt.strikes