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

Public Member Functions | |
| AccountOutcomeEntry (param::Asset entryAsset) | |
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 |
| Account-currency realized-PnL result. More... | |
|
inlineexplicit |
| 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 |
Account-currency realized-PnL result.
Reservations, cancels, settlement legs, opening, same-direction, and zero-quantity fills without a non-zero fee omit it, as do non-PnL adjustments. A realizing fill reports an authoritative result even when its exact contribution is zero. A non-zero fee reports the underlying asset even if the account never held it. The first failed calculation reports a halt reason; later operations omit it until an asset-scoped adjustment force-sets a new PnL.