ores.trading.trade_identifier
Table of Contents
Junction entity assigning external identifiers to trades. Each trade can have multiple identifiers of different types. The issuing_party_id references either a party or counterparty.
1. Flags
2. Columns
2.1. id
UUID uniquely identifying this trade identifier record.
Surrogate key for the trade identifier record.
2.2. trade_id
Trade this identifier belongs to.
Soft FK to ores_trading_trades_tbl.
ctx.generate_uuid()
2.3. issuing_party_id
Party or counterparty that issued this identifier.
Soft FK to parties or counterparties. Absent if issuer unknown.
std::nullopt
2.4. id_value
The identifier value.
e.g., UTI value, internal trade reference.
std::string("ID-") + std::string(faker::string::alphanumeric(10))
2.5. id_type
Type of identifier (e.g. UTI, USI, Internal).
Soft FK to ores_trading_trade_id_types_tbl.
std::string("Internal")
2.6. id_scheme
Optional scheme qualifier for the identifier.
e.g., the LEI namespace for UTI schemes.
std::string()
3. SQL
3.1. Flags
4. C++
4.1. Flags
4.2. Repository
4.3. Domain includes
#include <chrono> #include <optional> #include <string> #include <boost/uuid/uuid.hpp>
4.4. Conventions
4.5. Table display
| column | header |
|---|---|
| id_value | ID Value |
| id_type | ID Type |
| id_scheme | Scheme |
| modified_by | Modified By |
| version | Version |
4.6. Custom repository methods
5. See also
- ores.trading — component group overview.