swapInfo | R Documentation |
Returns dataframe required to price a WTI averaging instrument based on first line settlements.
swapInfo(
date = "2023-08-24",
feed = "CME_NymexFutures_EOD_continuous",
ticker = "CL",
contract = "cmewti",
exchange = "nymex",
iuser = "x@xyz.com",
ipassword = "pass",
output = "all"
)
date |
Character date as of which you want to extract daily settlement and forward values. |
feed |
Feeds for Morningstar getCurve() and getPrice(). |
ticker |
Nymex contract code. |
contract |
Contract code in data(expiry_table). sort(unique(expiry_table$cmdty)) for options. |
exchange |
Exchange code in data(holidaysOil). Defaults to "nymex". |
iuser |
Morningstar user name as character - sourced locally in examples. |
ipassword |
Morningstar user password as character - sourced locally in examples. |
output |
"chart" or "all". |
Plot or a list of data frame and plot if output = "all". htmlwidget
or list
Philippe Cote
## Not run:
swapInfo(
date = "2020-05-06", feed = "CME_NymexFutures_EOD_continuous",
ticker = "CL",
contract = "cmewti", exchange = "nymex",
iuser = "x@xyz.com", ipassword = "pass", output = "all"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.