|
OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
|
Account-level realized-PnL result: either the amount or a halt reason. More...

Public Member Functions | |
| AccountPnlOutcome (PnlHaltReason reason, param::AccountId outcomeAccountId, param::GroupId outcomePolicyGroupId) | |
| AccountPnlOutcome (PnlOutcomeAmount outcomeAmount, param::AccountId outcomeAccountId, param::GroupId outcomePolicyGroupId) | |
| const PnlOutcomeAmount * | Amount () const noexcept |
| std::optional< PnlHaltReason > | HaltReason () const noexcept |
Public Attributes | |
| param::AccountId | accountId |
| Account that owns the realized-PnL ledger. More... | |
| param::GroupId | policyGroupId |
| Policy group of the producer that owns the ledger. More... | |
Account-level realized-PnL result: either the amount or a halt reason.
A newly halted calculation emits its reason once; later checks can reject or block on the stored halt without emitting another account outcome. A manager explicitly force-sets the account PnL to re-arm it. Position accumulators are independent. Account-level realized-PnL outcome.
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
| param::AccountId openpit::accountadjustment::AccountPnlOutcome::accountId |
Account that owns the realized-PnL ledger.
| param::GroupId openpit::accountadjustment::AccountPnlOutcome::policyGroupId |
Policy group of the producer that owns the ledger.