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

Runtime replacement for per-account spot-funds P&L bounds. More...

#include <policies.hpp>

Public Member Functions

OpenPitPretradePoliciesSpotFundsPnlBoundsAccountBarrierUpdate Raw () const noexcept
 Lowers the account update to the native C payload.
 SpotFundsPnlBoundsAccountBarrierUpdate (::openpit::param::AccountId account, SpotFundsPnlBoundsBarrier accountBarrier)
 Creates an account P&L barrier update.

Public Attributes

::openpit::param::AccountId accountId
SpotFundsPnlBoundsBarrier barrier

Detailed Description

Runtime replacement for per-account spot-funds P&L bounds.

This update intentionally carries no initialPnl; runtime reconfiguration preserves the live accumulator.

Constructor & Destructor Documentation

◆ SpotFundsPnlBoundsAccountBarrierUpdate()

openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrierUpdate::SpotFundsPnlBoundsAccountBarrierUpdate ( ::openpit::param::AccountId account,
SpotFundsPnlBoundsBarrier accountBarrier )
inline

Creates an account P&L barrier update.

Member Function Documentation

◆ Raw()

OpenPitPretradePoliciesSpotFundsPnlBoundsAccountBarrierUpdate openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrierUpdate::Raw ( ) const
inlinenodiscardnoexcept

Lowers the account update to the native C payload.

Member Data Documentation

◆ accountId

::openpit::param::AccountId openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrierUpdate::accountId

◆ barrier

SpotFundsPnlBoundsBarrier openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrierUpdate::barrier