Description Usage Arguments Details Value Author(s) References Examples
Function to download option chain data from data providers.
1 | getOptionChain(Symbols, Exp = NULL, src="yahoo", ...)
|
Symbols |
The name of the underlying symbol |
Exp |
One or more expiration dates, or NULL. If Exp is missing, the default is to only return the front month contract. |
src |
Source of data. Currently only ‘yahoo’ is provided |
... |
additional parameters |
This function is a wrapper to data-provider specific APIs. By default the data is sourced from yahoo.
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.
Jeffrey A. Ryan
1 2 3 4 5 | ## Not run:
AAPL.OPT <- getOptionChain("AAPL")
AAPL.OPTS <- getOptionChain("AAPL", NULL)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.