Retrieves market data & ticker object from yahoo finance from quantmod.markets import getData, getTicker
fromquantmod.marketsimportgetData,getTicker# Get stock price dataaapl=getData('AAPL',period='5d')# Get ticker objectspy=getTicker('SPY')# Print the stock price dataprint(aapl)# Print the ticker object outputprint(spy.options[:5])