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

Replaces the account-wide realized-PnL accumulator. More...

#include <pnl.hpp>

Public Member Functions

 AccountPnlOperation (param::Pnl pnl)
 AccountPnlOperation (PnlHaltReason reason)
const std::variant< param::Pnl, PnlHaltReason > & Get () const noexcept
 Returns the replacement PnL or its explicit halt reason.
OpenPitAccountAdjustmentAccountPnlOperation Raw () const noexcept

Static Public Member Functions

static AccountPnlOperation FromRaw (const OpenPitAccountAdjustmentAccountPnlOperation &raw)

Detailed Description

Replaces the account-wide realized-PnL accumulator.

Constructor & Destructor Documentation

◆ AccountPnlOperation() [1/2]

openpit::accountadjustment::AccountPnlOperation::AccountPnlOperation ( param::Pnl pnl)
inlineexplicit

◆ AccountPnlOperation() [2/2]

openpit::accountadjustment::AccountPnlOperation::AccountPnlOperation ( PnlHaltReason reason)
inlineexplicit

Member Function Documentation

◆ FromRaw()

AccountPnlOperation openpit::accountadjustment::AccountPnlOperation::FromRaw ( const OpenPitAccountAdjustmentAccountPnlOperation & raw)
inlinestaticnodiscard

◆ Get()

const std::variant< param::Pnl, PnlHaltReason > & openpit::accountadjustment::AccountPnlOperation::Get ( ) const
inlinenodiscardnoexcept

Returns the replacement PnL or its explicit halt reason.

◆ Raw()

OpenPitAccountAdjustmentAccountPnlOperation openpit::accountadjustment::AccountPnlOperation::Raw ( ) const
inlinenodiscardnoexcept