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

Counterparty role assignment on a trade. More...

#include <trade_party_role.hpp>

Collaboration diagram for trade_party_role:
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 party role assignment.
 
boost::uuids::uuid trade_id
 Trade this role assignment belongs to.
 
boost::uuids::uuid counterparty_id
 Counterparty fulfilling the role.
 
std::string role
 Role the counterparty plays on this trade.
 
std::string modified_by
 Username of the person who last modified this trade party role.
 
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

Counterparty role assignment on a trade.

Associates a counterparty with a specific role on a trade. The internal party (the house) is derived from book_id via books.party_id. Supports multiple counterparties per trade in different roles.

Member Data Documentation

◆ id

boost::uuids::uuid id

UUID uniquely identifying this party role assignment.

Surrogate key for the trade party role record.

◆ trade_id

boost::uuids::uuid trade_id

Trade this role assignment belongs to.

Soft FK to ores_trading_trades_tbl.

◆ counterparty_id

boost::uuids::uuid counterparty_id

Counterparty fulfilling the role.

Soft FK to ores_refdata_counterparties_tbl.

◆ role

std::string role

Role the counterparty plays on this trade.

Soft FK to ores_trading_party_role_types_tbl.

◆ change_reason_code

std::string change_reason_code

Code identifying the reason for the change.

References change_reasons table (soft FK).