ores.refdata.tenor
Table of Contents
Persisted catalog of the standard tenor labels, so a user can see, manage, and order the set of tenors the system knows about rather than relying on labels implied by parsing logic alone. This table carries convention-independent identity only — how a given tenor resolves under a particular curve type is Tenor Convention's concern, recorded via Tenor Convention Resolution. Broken dates are deliberately out of scope — they are per-instance ladder data, not master data, and reference a row here only when they happen to coincide with a standard label.
Flags
Columns
code
Unique tenor code.
Examples: 'O/N', 'T/N', 'S/N', 'S/W', '1W', '1M', '1Y', 'SPOT'.
std::string(faker::word::noun()) + "_tenor_" + std::to_string(++counter)
display_name
Human-readable common name (e.g. 'Overnight', 'One Month', 'Spot').
std::string(faker::lorem::word())
description
Longer-form description of the tenor and where it typically appears.
std::string(faker::lorem::sentence())
sort_order
Explicit display/ladder ordering. Not derived from parsing the code, so
labels with no natural lexicographic order relative to periods (e.g.
SPOT among O/N=/=T/N=/=S/N) sort correctly.
ctx.random_int(0, 1000)
kind
Either SPECIAL (O/N, T/N, S/N, SPOT, TODAY, TOMORROW — no
fixed offset; resolved by rule per convention) or PERIOD (regular
nD=/=nW=/=nM=/=nY labels with a fixed offset from the convention's
anchor).
std::string("PERIOD")
unit
Period unit for PERIOD tenors: DAY, WEEK, MONTH, or YEAR.
NONE for SPECIAL tenors, which have no fixed unit/multiplier of
their own.
std::string("MONTH")
multiplier
Period count for PERIOD tenors (the n in nD=/=nW=/=nM=/=nY). Null
for SPECIAL tenors.
ctx.random_int(1, 30)
SQL
Flags
Insert trigger
Validations
| column | validation_function |
|---|---|
| kind | ores_refdata_validate_tenor_kind_fn |
| unit | ores_refdata_validate_tenor_unit_fn |
| change_reason_code | ores_dq_validate_change_reason_fn |
C++
Flags
Repository
Domain includes
#include <string>
Conventions
Qt
Detail fields
| field | label | widget | type | is_key | is_required | placeholder | flag_source | combo_domain_type | combo_fetch_include | combo_fetch_fn | combo_watcher_name | combo_code_field | combo_tooltip_field | combo_sort_field | combo_label | combo_setter_pascal | badge_key |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| code | Code | codeEdit | line_edit | true | true | Enter tenor code (e.g. 1M) | |||||||||||
| display_name | Display Name | displayNameEdit | line_edit | true | Enter display name | ||||||||||||
| description | Description | descriptionEdit | text_edit | Enter a description | |||||||||||||
| sort_order | Sort Order | sortOrderEdit | spin_box | true | |||||||||||||
| kind | Kind | kindCombo | dynamic_combo | true | refdata::domain::tenor_kind | ores.qt/LookupFetcher.hpp | fetch_tenor_kinds | tenorKindWatcher | code | description | display_order | tenor kinds | KindCombo | tenor_kind | |||
| unit | Unit | unitCombo | dynamic_combo | true | refdata::domain::tenor_unit | ores.qt/LookupFetcher.hpp | fetch_tenor_units | tenorUnitWatcher | code | description | display_order | tenor units | UnitCombo | tenor_unit | |||
| multiplier | Multiplier | multiplierEdit | spin_box |
Columns (Qt model)
| enum_name | field | header | type | width | is_badge | badge_key | formatter | formatter_include |
|---|---|---|---|---|---|---|---|---|
| Code | code | Code | string | 100 | ||||
| DisplayName | display_name | Display Name | string | 160 | ||||
| Description | description | Description | string | 300 | ||||
| SortOrder | sort_order | Sort Order | int | 90 | ||||
| Kind | kind | Kind | string | 90 | true | tenor_kind | ||
| Unit | unit | Unit | string | 90 | true | tenor_unit | ||
| Version | version | Version | int | 80 | ||||
| ModifiedBy | modified_by | Modified By | string | 120 | ||||
| RecordedAt | recorded_at | Recorded At | timestamp | 150 |
Related entity shortcuts
| signal | icon | label | tooltip |
|---|---|---|---|
| Conventions | Table | Conventions | Open Tenor Conventions list |
| Anchors | Anchor | Anchors | Open Tenor Anchors list |
See also
- Tenor — domain concept.
- Pillar — the subset of tenors actually quoted as live inputs to a given curve.
- Tenor Convention — the per-asset-class resolution rules for these labels.
- Tenor Convention Resolution — which tenors belong to which convention, and any anchor override.