OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
Loading...
Searching...
No Matches
openpit::accountadjustment::PnlOutcomeAmount Struct Reference

Realized-PnL change and resulting absolute value reported by an adjustment. More...

#include <account_adjustment.hpp>

Public Member Functions

 PnlOutcomeAmount (param::Pnl outcomeDelta, param::Pnl outcomeAbsolute)
OpenPitPnlOutcomeAmount Raw () const noexcept

Static Public Member Functions

static PnlOutcomeAmount FromRaw (const OpenPitPnlOutcomeAmount &raw)

Public Attributes

param::Pnl absolute
 Cumulative realized PnL after the adjustment.
param::Pnl delta
 Signed realized-PnL change applied by the adjustment.

Detailed Description

Realized-PnL change and resulting absolute value reported by an adjustment.

Constructor & Destructor Documentation

◆ PnlOutcomeAmount()

openpit::accountadjustment::PnlOutcomeAmount::PnlOutcomeAmount ( param::Pnl outcomeDelta,
param::Pnl outcomeAbsolute )
inline

Member Function Documentation

◆ FromRaw()

PnlOutcomeAmount openpit::accountadjustment::PnlOutcomeAmount::FromRaw ( const OpenPitPnlOutcomeAmount & raw)
inlinestaticnodiscard

◆ Raw()

OpenPitPnlOutcomeAmount openpit::accountadjustment::PnlOutcomeAmount::Raw ( ) const
inlinenodiscardnoexcept

Member Data Documentation

◆ absolute

param::Pnl openpit::accountadjustment::PnlOutcomeAmount::absolute

Cumulative realized PnL after the adjustment.

◆ delta

param::Pnl openpit::accountadjustment::PnlOutcomeAmount::delta

Signed realized-PnL change applied by the adjustment.