ores.refdata.leg_type
Table of Contents
Reference data table defining valid leg types used in instrument leg definitions. Values are sourced from ORE ore_types.xsd LegType enumeration.
2026-07-18 moved from ores.trading to ores.refdata: the desktop UI
already lived in the removed client's RefdataPlugin, hand-wired
outside codegen; the backend followed to match, same direction as
Book/BusinessCentre's own moves to ores.refdata, and the same move
floating_index_type made alongside this one.
1. Flags
2. Columns
2.1. code
Unique leg type code.
Examples: 'Fixed', 'Floating', 'OIS', 'CMS', 'CMSSpread', 'CPI', 'YoY'.
std::string(faker::word::noun()) + "_leg_" + std::to_string(++counter)
2.2. description
Human-readable description of the leg type.
std::string(faker::lorem::sentence())
3. SQL
3.1. Flags
4. C++
4.1. Flags
4.2. Repository
4.3. Domain includes
#include <chrono> #include <string>
4.4. Conventions
4.5. Presentation
4.5.1. Detail fields
| field | label | widget | type | is_key | is_required | placeholder |
|---|---|---|---|---|---|---|
| code | Code | codeEdit | line_edit | true | true | e.g. Fixed |
| description | Description | descriptionEdit | text_edit | Enter a description |
4.5.2. Columns
| enum_name | field | header | type | width | is_badge | badge_key |
|---|---|---|---|---|---|---|
| Code | code | Code | string | 200 | true | leg_type |
| Description | description | Description | string | 350 | ||
| Version | version | Version | int | 80 | ||
| ModifiedBy | modified_by | Modified By | string | 120 | ||
| RecordedAt | recorded_at | Recorded At | timestamp | 150 |
4.6. Custom repository methods
5. See also
- ores.refdata — component group overview.