OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
openpit::accountadjustment::AccountOutcomeEntry Struct Reference
Collaboration diagram for openpit::accountadjustment::AccountOutcomeEntry:

Public Member Functions

 AccountOutcomeEntry (param::Asset entryAsset)
 

Public Attributes

param::Asset asset
 
std::optional< param::PriceaverageEntryPrice
 Account-currency average entry price after the adjustment. More...
 
std::optional< OutcomeAmountbalance
 
std::optional< OutcomeAmountheld
 
std::optional< OutcomeAmountincoming
 
std::optional< PnlOutcomerealizedPnl
 Account-currency realized-PnL result. More...
 

Constructor & Destructor Documentation

◆ AccountOutcomeEntry()

openpit::accountadjustment::AccountOutcomeEntry::AccountOutcomeEntry ( param::Asset  entryAsset)
inlineexplicit

Member Data Documentation

◆ asset

param::Asset openpit::accountadjustment::AccountOutcomeEntry::asset

◆ averageEntryPrice

std::optional<param::Price> openpit::accountadjustment::AccountOutcomeEntry::averageEntryPrice

Account-currency average entry price after the adjustment.

◆ balance

std::optional<OutcomeAmount> openpit::accountadjustment::AccountOutcomeEntry::balance

◆ held

std::optional<OutcomeAmount> openpit::accountadjustment::AccountOutcomeEntry::held

◆ incoming

std::optional<OutcomeAmount> openpit::accountadjustment::AccountOutcomeEntry::incoming

◆ realizedPnl

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.