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

Tri-state runtime update for the singular SpotFunds global P&L barrier. More...

#include <policies.hpp>

Public Member Functions

const std::optional< SpotFundsPnlBoundsBarrier > & Barrier () const noexcept
bool HasUpdate () const noexcept

Static Public Member Functions

static SpotFundsPnlBoundsGlobalBarrierUpdate Clear () noexcept
 Clears the current global barrier.
static SpotFundsPnlBoundsGlobalBarrierUpdate Set (SpotFundsPnlBoundsBarrier barrier)
 Replaces the current global barrier.
static SpotFundsPnlBoundsGlobalBarrierUpdate Unchanged () noexcept
 Leaves the current global barrier unchanged.

Detailed Description

Tri-state runtime update for the singular SpotFunds global P&L barrier.

Use the explicitly named Unchanged, Clear, and Set factories. Direct construction is intentionally unavailable so legacy std::nullopt and barrier arguments fail to compile instead of silently changing meaning. A collection state is not representable because this axis is singular.

Member Function Documentation

◆ Barrier()

const std::optional< SpotFundsPnlBoundsBarrier > & openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::Barrier ( ) const
inlinenodiscardnoexcept

◆ Clear()

SpotFundsPnlBoundsGlobalBarrierUpdate openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::Clear ( )
inlinestaticnodiscardnoexcept

Clears the current global barrier.

◆ HasUpdate()

bool openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::HasUpdate ( ) const
inlinenodiscardnoexcept

◆ Set()

SpotFundsPnlBoundsGlobalBarrierUpdate openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::Set ( SpotFundsPnlBoundsBarrier barrier)
inlinestaticnodiscard

Replaces the current global barrier.

◆ Unchanged()

SpotFundsPnlBoundsGlobalBarrierUpdate openpit::pretrade::policies::SpotFundsPnlBoundsGlobalBarrierUpdate::Unchanged ( )
inlinestaticnodiscardnoexcept

Leaves the current global barrier unchanged.