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

#include <param.hpp>

Public Member Functions

bool IsAbsolute () const noexcept
bool IsDelta () const noexcept
AdjustmentAmountKind Kind () const noexcept
OpenPitParamAdjustmentAmount Raw () const noexcept
PositionSize Value () const noexcept

Static Public Member Functions

static std::optional< AdjustmentAmount > FromRaw (const OpenPitParamAdjustmentAmount &raw)
static AdjustmentAmount OfAbsolute (PositionSize value) noexcept
static AdjustmentAmount OfDelta (PositionSize value) noexcept

Member Function Documentation

◆ FromRaw()

std::optional< AdjustmentAmount > openpit::param::AdjustmentAmount::FromRaw ( const OpenPitParamAdjustmentAmount & raw)
inlinestaticnodiscard

◆ IsAbsolute()

bool openpit::param::AdjustmentAmount::IsAbsolute ( ) const
inlinenodiscardnoexcept

◆ IsDelta()

bool openpit::param::AdjustmentAmount::IsDelta ( ) const
inlinenodiscardnoexcept

◆ Kind()

AdjustmentAmountKind openpit::param::AdjustmentAmount::Kind ( ) const
inlinenodiscardnoexcept

◆ OfAbsolute()

AdjustmentAmount openpit::param::AdjustmentAmount::OfAbsolute ( PositionSize value)
inlinestaticnodiscardnoexcept

◆ OfDelta()

AdjustmentAmount openpit::param::AdjustmentAmount::OfDelta ( PositionSize value)
inlinestaticnodiscardnoexcept

◆ Raw()

OpenPitParamAdjustmentAmount openpit::param::AdjustmentAmount::Raw ( ) const
inlinenodiscardnoexcept

◆ Value()

PositionSize openpit::param::AdjustmentAmount::Value ( ) const
inlinenodiscardnoexcept