Tenor rules and maps
What they do
A curve can have hundreds of contracts: days, months, quarters, seasons and years, often several years out. The system you send to may want only some of them, and may know them by different ids: an ETRM that books ICE futures calls January 2027 F27, not M02 or 2027M01.
- Tenor rules belong to a group. They choose which contracts of each of its curves are sent.
- Tenor maps belong to a system. They turn the curve's tenor ids into the ones the system uses. A group chooses one of its system's maps.
With no rules and no map a group sends every contract with its own tenor id, as before. The rules apply to curves and to options (each tenor of the options, with all its strikes); timeseries are sent as they are. They are the second of the steps from an item to what is sent, and Test the transformation on the group's Transform tab shows them on a real item.
The rules of a group
Open the group and its Tenors tab. The tab shows, for an example curve with daily, monthly, quarterly, seasonal and yearly contracts, what a run on the ondate you choose would send, and why each other contract is left out.

The rules are applied in this order, and a contract has to pass them all:
| Rule | What it does |
|---|---|
| Tenor types | Send only these types, such as months (M), quarters (Q), seasons (S) and years (Y). For each type, First limits it to that many contracts (blank for all), after skipping the first few (After skipping). The contracts are counted in delivery order, so months first 12 after skipping 1 is the second to the thirteenth month. With no types every type is sent. |
| Only these | Tenor codes, separated by commas or spaces. A contract is sent only when its relative tenor (M01, Q02) or its absolute tenor (2027M01, 2027Q01) matches one of them. An option tenor has both too. |
| Never these | Tenor codes in the same form. A contract that matches one is not sent. |
| Months ahead | Only contracts that start within this many months of the ondate. On 2026-11-25, 12 months ahead keeps the contracts that start before 2027-11-25. |
| Starting on or after, Starting before | Only contracts whose delivery starts in these dates. |
| Tenor map | The system's map the ids are sent with, or none. |
A tenor code can be:
| Code | Matches |
|---|---|
M01, 2027Q01 | That tenor. |
M01-M06 | The tenors with that prefix and a number in the range: M01 to M06. |
Q*, 2027*, *S0* | * matches anything: every quarter, everything in 2027, every season. |
The rules are saved in the group's integration.tenors (see the reference). A run prints them at the start, such as Tenor rules: types M x12 Q x4, tenor map ICE codes.
A curve with none of its contracts left after the rules fails, with the message None of the curve's 43 contracts match the group's tenor rules (options: None of the options' 12 tenors match the group's tenor rules), so that a rule that is too tight shows in the report and the alert instead of sending nothing quietly.
The maps of a system
Open the system's System setup tab. The Tenor maps card lists its maps, what each is made of, an example and the groups that use it.

New tenor map opens the editor:

| Field | What it is |
|---|---|
| Name | How the groups choose it. Renaming a map changes it in the groups that use it. |
| Start from | A standard style, or none. |
| Patterns | How each type of tenor is written, made of the tokens below. Blank uses the standard's; the box shows it. |
| Exact ids | One per line, tenor=id, for the odd one out, such as M01=FRONT or 2027Y=CAL-27. The tenor is relative or absolute. These win over the patterns. |
| A tenor the map has no id for | Send it with its own tenor id, or do not send it. |
The example at the bottom shows the ids for today's contracts as you type.
The standard styles
| Style | January 2027 | Q1 2027 | Summer 2027 | 2027 | Gas year 2027 |
|---|---|---|---|---|---|
| ICE | F27 | Q127 | SUM27 | CAL27 | GY27 |
| NYMEX / CME | F7 | Q17 | SUM7 | CAL7 | GY7 |
| Month names | JAN27 | Q127 | SUM27 | CAL27 | GY27 |
| Month letters, 4-digit year | F2027 | Q12027 | SUM2027 | CAL2027 | GY2027 |
| Month names, 4-digit year | JAN2027 | Q12027 | SUM2027 | CAL2027 | GY2027 |
The month letters are the futures codes F G H J K M N Q U V X Z, January to December. Half years are H1 and H2 with the year, such as H127. The standards have no ids for days, weeks and sub-daily tenors: give them a pattern, or they keep their own ids (or are not sent, if the map says so).
Tokens
| Token | Becomes | January 2027 |
|---|---|---|
{L} | Month letter | F |
{MON} | Month name | JAN |
{MM}, {M} | Month number | 01, 1 |
{YYYY}, {YY}, {Y} | Year | 2027, 27, 7 |
{Q} | Quarter | 1 |
{H} | Half year | 1 |
{SEA} | Season: SUM (April to September) or WIN | WIN |
{DD} | Day of the month | 01 |
{WW} | Week number, from the absolute tenor | |
{T} | The relative tenor | M02 |
{A} | The absolute tenor | 2027M01 |
Everything else in a pattern is kept as it is, so {MON}-{YYYY} gives JAN-2027. The tokens are worked out from the contract's delivery start, so a season named after its first month (WIN for October to March) has the year it starts in.
The maps are saved in the system object's tenorMaps (see the reference). A map can be deleted only when no group uses it. Systems set up before the upgrade to systems have no maps; their groups can still use the rules.
What each system sends
| System | With rules | With a map |
|---|---|---|
| REST API, webhook, OAuth API, queue, Event Grid, blob, Data Lake, Azure Files, Power BI | Only the kept contracts, and the options of the kept tenors. | tenor is the mapped id, and odslTenor the curve's own, in JSON messages. CSV files and templates have the mapped id in tenor. See the content of the messages. |
| Molecule | Only the kept contracts become marks. | No effect: Molecule takes each mark by its delivery date. |
| Custom systems | Read the kept contracts with intContracts(item) instead of item.data.contracts, and the kept option tenors with intOptionTenors(item) instead of item.data.tenors. | Each kept contract has tenorId; intTenorId(c) gives the mapped id or the curve's own. The ids of the option tenors are intOptionTenorIds(item), in the same order. |
The rules and the map work the same way in every run, whether scheduled, sent as items change, sent again as a correction or run for past dates.