20#ifndef ORES_TRADING_DOMAIN_INSTRUMENT_HPP
21#define ORES_TRADING_DOMAIN_INSTRUMENT_HPP
26#include <boost/uuid/uuid.hpp>
27#include "ores.utility/uuid/tenant_id.hpp"
29namespace ores::trading::domain {
54 boost::uuids::uuid
id;
Parent instrument record holding economic terms for a trade.
Definition instrument.hpp:40
std::string modified_by
Username of the person who last modified this record.
Definition instrument.hpp:92
std::string start_date
Date from which the instrument is effective (ISO 8601).
Definition instrument.hpp:77
std::string change_commentary
Free-text commentary explaining the change.
Definition instrument.hpp:107
double notional
Principal notional amount.
Definition instrument.hpp:67
std::string description
Optional free-text description.
Definition instrument.hpp:87
std::string fra_settlement_date
Settlement date for ForwardRateAgreement (ISO 8601). Empty otherwise.
Definition instrument.hpp:128
std::string fra_fixing_date
Fixing date for ForwardRateAgreement (ISO 8601). Empty otherwise.
Definition instrument.hpp:122
std::chrono::system_clock::time_point recorded_at
Timestamp when this version of the record was recorded.
Definition instrument.hpp:112
std::string inflation_index_code
Inflation index code for InflationSwap (e.g. HICP, RPI). Empty otherwise.
Definition instrument.hpp:152
std::optional< int > lockout_days
Lockout days for BalanceGuaranteedSwap / KnockOutSwap. Null when not set.
Definition instrument.hpp:134
boost::uuids::uuid id
UUID uniquely identifying this instrument.
Definition instrument.hpp:54
int version
Version number for optimistic locking and change tracking.
Definition instrument.hpp:44
std::string rpa_counterparty
Reference counterparty code for RiskParticipationAgreement. Empty otherwise.
Definition instrument.hpp:146
std::string maturity_date
Maturity/termination date of the instrument (ISO 8601).
Definition instrument.hpp:82
std::string performed_by
Username of the account that performed this action.
Definition instrument.hpp:97
std::optional< double > base_cpi
Base CPI level for InflationSwap. Null when not set.
Definition instrument.hpp:157
std::string trade_type_code
ORE product type code discriminating the asset class.
Definition instrument.hpp:62
utility::uuid::tenant_id tenant_id
Tenant identifier for multi-tenancy isolation.
Definition instrument.hpp:49
std::string callable_dates_json
JSON array of call dates for CallableSwap. Empty otherwise.
Definition instrument.hpp:140
std::string change_reason_code
Code identifying the reason for the change.
Definition instrument.hpp:102
std::string currency
ISO 4217 currency code for the notional (e.g. USD, EUR).
Definition instrument.hpp:72
A strongly-typed wrapper around a UUID representing a tenant identifier.
Definition tenant_id.hpp:66
static tenant_id system()
Creates a tenant_id representing the system tenant.
Definition tenant_id.cpp:41