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

Public Member Functions

std::optional< param::Quantity > AsQuantity () const
 
std::optional< param::Volume > AsVolume () const
 
TradeAmountKind Kind () const noexcept
 
OpenPitParamTradeAmount Raw () const noexcept
 

Static Public Member Functions

static std::optional< TradeAmountFromRaw (const OpenPitParamTradeAmount &raw)
 
static TradeAmount OfQuantity (param::Quantity quantity)
 
static TradeAmount OfVolume (param::Volume volume)
 

Member Function Documentation

◆ AsQuantity()

std::optional<param::Quantity> openpit::model::TradeAmount::AsQuantity ( ) const
inline

◆ AsVolume()

std::optional<param::Volume> openpit::model::TradeAmount::AsVolume ( ) const
inline

◆ FromRaw()

static std::optional<TradeAmount> openpit::model::TradeAmount::FromRaw ( const OpenPitParamTradeAmount &  raw)
inlinestatic

◆ Kind()

TradeAmountKind openpit::model::TradeAmount::Kind ( ) const
inlinenoexcept

◆ OfQuantity()

static TradeAmount openpit::model::TradeAmount::OfQuantity ( param::Quantity  quantity)
inlinestatic

◆ OfVolume()

static TradeAmount openpit::model::TradeAmount::OfVolume ( param::Volume  volume)
inlinestatic

◆ Raw()

OpenPitParamTradeAmount openpit::model::TradeAmount::Raw ( ) const
inlinenoexcept