|
OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
|

Public Member Functions | |
| AccountOutcomeEntry (param::Asset entryAsset) | |
| OpenPitAccountOutcomeEntry | Raw () const noexcept |
Static Public Member Functions | |
| static AccountOutcomeEntry | FromRaw (const OpenPitAccountOutcomeEntry &raw) |
Public Attributes | |
| param::Asset | asset |
| std::optional< param::Price > | averageEntryPrice |
| Account-currency average entry price after the adjustment. More... | |
| std::optional< OutcomeAmount > | balance |
| std::optional< OutcomeAmount > | held |
| std::optional< OutcomeAmount > | incoming |
| std::optional< PnlOutcome > | realizedPnl |
| Realized-PnL result. More... | |
|
inlineexplicit |
|
inlinestatic |
|
inlinenoexcept |
| param::Asset openpit::accountadjustment::AccountOutcomeEntry::asset |
| std::optional<param::Price> openpit::accountadjustment::AccountOutcomeEntry::averageEntryPrice |
Account-currency average entry price after the adjustment.
| std::optional<OutcomeAmount> openpit::accountadjustment::AccountOutcomeEntry::balance |
| std::optional<OutcomeAmount> openpit::accountadjustment::AccountOutcomeEntry::held |
| std::optional<OutcomeAmount> openpit::accountadjustment::AccountOutcomeEntry::incoming |
| std::optional<PnlOutcome> openpit::accountadjustment::AccountOutcomeEntry::realizedPnl |
Realized-PnL result.
The first failed calculation has a halt reason; later operations omit it until an adjustment force-sets a new PnL. A numeric result is denominated in the account currency.