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

Per-account spot-funds P&L bounds with a construction-time P&L seed. More...

#include <policies.hpp>

Public Member Functions

OpenPitPretradePoliciesSpotFundsPnlBoundsAccountBarrier Raw () const noexcept
 Lowers the account barrier to the native C payload.
 SpotFundsPnlBoundsAccountBarrier (::openpit::param::AccountId account, SpotFundsPnlBoundsBarrier accountBarrier, ::openpit::param::Pnl initial)
 Creates an account P&L barrier with an initial accumulated P&L.

Public Attributes

::openpit::param::AccountId accountId
SpotFundsPnlBoundsBarrier barrier
::openpit::param::Pnl initialPnl

Detailed Description

Per-account spot-funds P&L bounds with a construction-time P&L seed.

Constructor & Destructor Documentation

◆ SpotFundsPnlBoundsAccountBarrier()

openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrier::SpotFundsPnlBoundsAccountBarrier ( ::openpit::param::AccountId account,
SpotFundsPnlBoundsBarrier accountBarrier,
::openpit::param::Pnl initial )
inline

Creates an account P&L barrier with an initial accumulated P&L.

Member Function Documentation

◆ Raw()

OpenPitPretradePoliciesSpotFundsPnlBoundsAccountBarrier openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrier::Raw ( ) const
inlinenodiscardnoexcept

Lowers the account barrier to the native C payload.

Member Data Documentation

◆ accountId

::openpit::param::AccountId openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrier::accountId

◆ barrier

SpotFundsPnlBoundsBarrier openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrier::barrier

◆ initialPnl

::openpit::param::Pnl openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrier::initialPnl