Skip to content
Prev 13230 / 15274 Next

quantmod, getOptionChain update time/date

If you look at the code for getOptionChain (https://github.com/joshuaulrich/quantmod/blob/develop/R/getOptionChain.R) you will see that the data is retrieved from Yahoo?s web page.  In the case of your example that would be:

https://finance.yahoo.com/q/op?s=AAPL

Yahoo does not appear to provide any information on that page as to when the option data was last updated, although there does appear to be information regarding when the stock quote was updated.  If Yahoo doesn?t provide that information, the function obviously can?t as well.

If you?re really in need of higher quality data, you?re likely better off purchasing data.

As a side note, the getSymbols function provides information about when the data was last retrieved from Yahoo.  While a different issue, I wonder if it would be worth incorporating that into the list returned by the getOptionChain function as well.


James