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)
 
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< OutcomeAmountbalance
 
std::optional< OutcomeAmountheld
 
std::optional< OutcomeAmountincoming
 
std::optional< PnlOutcomerealizedPnl
 Realized-PnL result. More...
 

Constructor & Destructor Documentation

◆ AccountOutcomeEntry()

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

Member Function Documentation

◆ FromRaw()

static AccountOutcomeEntry openpit::accountadjustment::AccountOutcomeEntry::FromRaw ( const OpenPitAccountOutcomeEntry &  raw)
inlinestatic

◆ Raw()

OpenPitAccountOutcomeEntry openpit::accountadjustment::AccountOutcomeEntry::Raw ( ) const
inlinenoexcept

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

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.