Description Usage Arguments Value Author(s) References Examples
The function returns the historical and current list of futures contracts for a valid symbol, with the contract identifier and period traded.
1 | contractlist(symbol, is.stock = FALSE, is.option = FALSE)
|
symbol |
(character) A valid asset symbol. |
is.stock |
(Logical) Whether the underlying is a stock (for individual stock futures). |
is.option |
(logical) Whether the underlying is an option. |
Returns a list with items:
contractTable |
data.frame with futures codes, start and end period of futures contracts. |
validMonths |
a vector with the 12 character representation of the active and inactive months of the underlying asset. |
Alexios Ghalanos
Commodity Systems Incorporated, UNFAIR ADVANTAGE API (API2) FUNCTIONAL SPECIFICATION, 2006.
1 2 | # startUA()
# ctlist = contractlist("C")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.