ores.trading.trade_type
Table of Contents
Reference data table defining valid trade type classifications used to categorise trades in the system.
Flags
Columns
code
Unique trade type code.
Examples: 'Swap', 'FxForward', 'CapFloor', 'Swaption'.
std::string(faker::word::noun()) + "_trade"
description
Detailed description of the trade type.
std::string(faker::lorem::sentence())
product_type
Product type family this trade type belongs to (swap, fx, bond, credit, equity, commodity, composite, scripted).
Drives instrument tab routing in the UI and the structural extension table the instrument is stored in.
ores::trading::domain::product_type::swap
has_options
True when this trade type requires the family's options sub-form.
Used by FX and Equity families to reveal an additional options panel.
false
has_extension
True when this trade type requires the family's extension sub-form.
Used by Swap, Bond, Credit, Equity, and Commodity families to reveal additional extension fields.
false
SQL
Flags
C++
Flags
Repository
Domain includes
#include "ores.trading.api/domain/product_type.hpp" #include <chrono> #include <string>
Entity includes
#include "ores.trading.api/domain/product_type.hpp" #include <string>
Table display
| column | header |
|---|---|
| code | Code |
| description | Description |
| product_type | Product |
| has_options | Has Options |
| has_extension | Has Extension |
| modified_by | Modified By |
| version | Version |
Conventions
Custom repository methods
See also
- ores.trading — component group overview.