Description Usage Arguments Details Value Author(s) See Also Examples
convert the primary_id or suffix_id of an
instrument
to a different format. Primarily
intended for future_series
instruments.
1 2 |
id |
character. the id to be reformatted. Can be either a primary_id or a suffix_id |
format |
character string indicating how the id should be formatted. See Details. |
parse |
character name of parsing method to use: "id" or "suffix" |
sep |
character that will separate root_id and
suffix_id of output if calling with |
... |
parameters to pass to the parsing function |
Formats for the suffix_id include 'CY', 'CYY', and 'CYYYY' where C is the month code and Y is numeric. 'MMMY', 'MMMYY', 'MMMYYYY' where MMM is an uppercase month abbreviation. '1xCY', '1xCYY', '1xCYYYY' for single-stock-futures.
There are currently only 2 formats available for
option_series
: 'opt2' and 'opt4' where opt2
uses a 2 digit year and opt4 uses a 4 digit year.
character id of the appropriate format
Garrett See
parse_id
, parse_suffix
,
M2C
, month_cycle2numeric
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.