ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
trade_type Struct Referencefinal

ORE instrument type code (e.g. Swap, FxForward, CapFloor, Swaption). More...

#include <trade_type.hpp>

Collaboration diagram for trade_type:
Collaboration graph

Public Attributes

int version = 0
 Version number for optimistic locking and change tracking.
 
utility::uuid::tenant_id tenant_id = utility::uuid::tenant_id::system()
 Tenant identifier for multi-tenancy isolation.
 
std::string code
 Unique trade type code.
 
std::string description
 Detailed description of the trade type.
 
domain::product_type product_type = domain::product_type::swap
 Product type family this trade type belongs to.
 
bool has_options = false
 True when this trade type requires the family's options sub-form.
 
bool has_extension = false
 True when this trade type requires the family's extension sub-form.
 
std::string modified_by
 Username of the person who last modified this trade type.
 
std::string performed_by
 Username of the account that performed this action.
 
std::string change_reason_code
 Code identifying the reason for the change.
 
std::string change_commentary
 Free-text commentary explaining the change.
 
std::chrono::system_clock::time_point recorded_at
 Timestamp when this version of the record was recorded.
 

Detailed Description

ORE instrument type code (e.g. Swap, FxForward, CapFloor, Swaption).

Reference data table defining valid trade type classifications used to categorise trades in the system.

Member Data Documentation

◆ code

std::string code

Unique trade type code.

Examples: 'Swap', 'FxForward', 'CapFloor', 'Swaption'.

◆ product_type

domain::product_type product_type = domain::product_type::swap

Product type family this trade type belongs to.

Drives instrument tab routing in the UI and the structural extension table that the instrument is stored in.

◆ has_options

bool has_options = false

True when this trade type requires the family's options sub-form.

Used by FX and Equity families to reveal an additional options panel (strike, payoff, exercise style, ...) on top of the core economics fields.

◆ has_extension

bool has_extension = false

True when this trade type requires the family's extension sub-form.

Used by Swap (rates extensions), Bond, Credit, Equity, and Commodity families to reveal additional family-specific extension fields beyond the core economics.

◆ change_reason_code

std::string change_reason_code

Code identifying the reason for the change.

References change_reasons table (soft FK).