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

Account-level realized-PnL outcome. More...

#include <pnl.hpp>

Public Member Functions

const AccountPnlResultGet () const noexcept
 Returns the account PnL or the reason why it is unavailable.
OpenPitAccountPnlOutcome Raw () const noexcept

Static Public Member Functions

static AccountPnlOutcome FromRaw (const OpenPitAccountPnlOutcome &raw)

Public Attributes

param::AccountId accountId
 Account that owns the realized-PnL ledger.
param::GroupId policyGroupId
 Policy group of the producer that owns the ledger.
AccountPnlResult result
 Account-currency PnL, or the reason why it is unavailable.

Detailed Description

Account-level realized-PnL outcome.

Member Function Documentation

◆ FromRaw()

AccountPnlOutcome openpit::accountadjustment::AccountPnlOutcome::FromRaw ( const OpenPitAccountPnlOutcome & raw)
inlinestaticnodiscard

◆ Get()

const AccountPnlResult & openpit::accountadjustment::AccountPnlOutcome::Get ( ) const
inlinenodiscardnoexcept

Returns the account PnL or the reason why it is unavailable.

◆ Raw()

OpenPitAccountPnlOutcome openpit::accountadjustment::AccountPnlOutcome::Raw ( ) const
inlinenodiscardnoexcept

Member Data Documentation

◆ accountId

param::AccountId openpit::accountadjustment::AccountPnlOutcome::accountId

Account that owns the realized-PnL ledger.

◆ policyGroupId

param::GroupId openpit::accountadjustment::AccountPnlOutcome::policyGroupId

Policy group of the producer that owns the ledger.

◆ result

AccountPnlResult openpit::accountadjustment::AccountPnlOutcome::result

Account-currency PnL, or the reason why it is unavailable.