AFAIK yahoo doesn't provide historical data for options. If it does, getOptionChain
isn't intended to be used that way.
getOptionChain
is more like getQuote
than getSymbols
. It gets quotes for an option chain. You can get quotes for multiple expirations and strikes, but you can't get a time series of prices.
The Value section of help("getOptionChain")
tells you what the function returns:
A named list containing two data.frames, one for calls and one for puts. If more than one expiration was requested, this two-element list will be contained within list of length length(Exp). Each element of this list will be named with the expiration month and year (for Yahoo sourced data).
If Exp is set to NULL, all expirations will be returned. Not explicitly setting will only return the front month.