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

External identifier (UTI, USI, internal) assigned to a trade. More...

#include <trade_identifier.hpp>

Collaboration diagram for trade_identifier:
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.
 
boost::uuids::uuid id
 UUID uniquely identifying this trade identifier record.
 
boost::uuids::uuid trade_id
 Trade this identifier belongs to.
 
std::optional< boost::uuids::uuid > issuing_party_id
 Party or counterparty that issued this identifier.
 
std::string id_value
 The identifier value.
 
std::string id_type
 Type of identifier (e.g. UTI, USI, Internal).
 
std::string id_scheme
 Optional scheme qualifier for the identifier.
 
std::string modified_by
 Username of the person who last modified this trade identifier.
 
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

External identifier (UTI, USI, internal) assigned to a trade.

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.

Member Data Documentation

◆ id

boost::uuids::uuid id

UUID uniquely identifying this trade identifier record.

Surrogate key for the trade identifier record.

◆ trade_id

boost::uuids::uuid trade_id

Trade this identifier belongs to.

Soft FK to ores_trading_trades_tbl.

◆ issuing_party_id

std::optional<boost::uuids::uuid> issuing_party_id

Party or counterparty that issued this identifier.

Soft FK to parties or counterparties. Absent if issuer unknown.

◆ id_value

std::string id_value

The identifier value.

e.g., UTI value, internal trade reference.

◆ id_type

std::string id_type

Type of identifier (e.g. UTI, USI, Internal).

Soft FK to ores_trading_trade_id_types_tbl.

◆ id_scheme

std::string id_scheme

Optional scheme qualifier for the identifier.

e.g., the LEI namespace for UTI schemes.

◆ change_reason_code

std::string change_reason_code

Code identifying the reason for the change.

References change_reasons table (soft FK).