Description Usage Arguments Value
View source: R/gen_futures_codes.R
Generate futures contract codes and schedule between dates
1 2 | 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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.