OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
openpit::param::AdjustmentAmount Class Reference

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< AdjustmentAmountFromRaw (const OpenPitParamAdjustmentAmount &raw)
 
static AdjustmentAmount OfAbsolute (PositionSize value) noexcept
 
static AdjustmentAmount OfDelta (PositionSize value) noexcept
 

Member Function Documentation

◆ FromRaw()

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

◆ IsAbsolute()

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

◆ IsDelta()

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

◆ Kind()

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

◆ OfAbsolute()

static AdjustmentAmount openpit::param::AdjustmentAmount::OfAbsolute ( PositionSize  value)
inlinestaticnoexcept

◆ OfDelta()

static AdjustmentAmount openpit::param::AdjustmentAmount::OfDelta ( PositionSize  value)
inlinestaticnoexcept

◆ Raw()

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

◆ Value()

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