Generate futures contract codes and schedule between dates
Generate futures contract codes and schedule between dates
gen_futures_codes(contract, from, to, frequency, day_exp, year_last_digit = FALSE)
contract |
contract base name |
from, to |
text dates in format |
frequency |
expiration frequency, e.g. 3 for quarterly contracts |
day_exp |
expiration day number, e.g. 15 for middle of month |
year_last_digit |
should only last digit of year present in code? |
returns data.table with columns code, from, to, contract_id.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.