ores.trading.trade_party_role
Table of Contents
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.
Flags
Primary key
UUID uniquely identifying this party role assignment.
Surrogate key for the trade party role record.
Natural keys
Columns
trade_id
Trade this role assignment belongs to.
Soft FK to ores_trading_trades_tbl.
ctx.generate_uuid()
counterparty_id
Counterparty fulfilling the role.
Soft FK to ores_refdata_counterparties_tbl.
ctx.generate_uuid()
role
Role the counterparty plays on this trade.
Soft FK to ores_trading_party_role_types_tbl.
std::string("Counterparty")
SQL
Flags
C++
Flags
Repository
Domain includes
#include <chrono> #include <string> #include <boost/uuid/uuid.hpp>
Conventions
Custom repository methods
See also
- ores.trading — component group overview.