ores.refdata.tenor_anchor
Table of Contents
Small, mostly-static lookup of the reference points a
tenor can be resolved from.
Referenced by tenor_convention.measured_from as a convention's default
anchor, and — for spot/forward-style conventions specifically — by a
curve or ladder's own quoting-basis override (see
Out Of Convention), which is
out of scope for this model and lives on the curve/ladder entity instead.
Flags
Columns
code
Unique anchor code.
Examples: 'SPOT', 'TODAY', 'TOMORROW', 'NEAR_LEG', 'IMM_ROLL'.
std::string(faker::word::noun()) + "_anchor_" + std::to_string(++counter)
description
Human-readable description of the reference point.
std::string(faker::lorem::sentence())
display_order
Order for UI display purposes.
faker::number::integer(1, 100)
SQL
Flags
Extra drops
drop function if exists ores_refdata_validate_tenor_anchor_fn;
Validation function
Insert trigger
Validations
| column | validation_function |
|---|---|
| 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 |
|---|---|---|---|---|---|---|
| code | Code | codeEdit | line_edit | true | true | Enter anchor code (e.g. SPOT) |
| description | Description | descriptionEdit | text_edit | Enter a description | ||
| display_order | Display Order | displayOrderEdit | spin_box | true |
Columns (Qt model)
| enum_name | field | header | type | width | is_badge | badge_key |
|---|---|---|---|---|---|---|
| Code | code | Code | string | 160 | true | tenor_anchor |
| Description | description | Description | string | 350 | ||
| DisplayOrder | display_order | Display Order | int | 90 | ||
| Version | version | Version | int | 80 | ||
| ModifiedBy | modified_by | Modified By | string | 120 | ||
| RecordedAt | recorded_at | Recorded At | timestamp | 150 |
Custom repository methods
See also
- Tenor — domain concept.
- Out Of Convention — the curve/ladder-level anchor override this table's
SPOT=/=TODAY=/=TOMORROWrows also serve.