View source: R/swapFutWeight.R
swapFutWeight | R Documentation |
Returns the percentage weight of the future in Calendar Month Average swaps
swapFutWeight(
Month = "2020-09-01",
contract = "cmewti",
exchange = "nymex",
output = "first.fut.weight"
)
Month |
First calendar day of the month. |
contract |
Contract code in data(expiry_table). sort(unique(expiry_table$cmdty)) for options. |
exchange |
Exchange code in data(holidaysOil). Currently only "nymex" and "ice" supported. |
output |
Either "numDaysFut1", "numDaysFut2" or "first.fut.weight". |
Depending on output setting. numeric
If first.fut.weight, to compute swap 1 - first.fut.weight = % applied to 2nd line contract.
Philippe Cote
swapFutWeight(
Month = "2020-09-01",
contract = "cmewti", exchange = "nymex", output = "first.fut.weight"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.