I need to download historical "stock data" and current "option price data" for a ticker. Can someone please point me to right package. I tried yahoo-finance package, but it is not working. Can someone please post a code snippet to download the same. I have seen several posts to download the stock data, but none to download the option data. So, any help to download both would be greatly appreciated.
Here are the links for historical data and options data from yahoo finance, just for your reference.
https://finance.yahoo.com/quote/MSFT/history?p=MSFT https://finance.yahoo.com/quote/MSFT/options?p=MSFT