powered by
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" )
What you defined in outputs. If first.fut.weight, to compute swap 1 - first.fut.weight = % applied to 2nd line contract.
First calendar day of the month.
Contract code in data(expiry_table). sort(unique(expiry_table$cmdty)) for options.
Exchange code in data(holidaysOil). Currently only "nymex" and "ice" supported.
Either "numDaysFut1", "numDaysFut2" or "first.fut.weight"
Philippe Cote
Run the code above in your browser using DataLab