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

Public Member Functions

std::optional< param::QuantityAsQuantity () const
 
std::optional< param::VolumeAsVolume () const
 
TradeAmountKind Kind () const noexcept
 
std::string ToString () const
 Formats the selected exact amount. More...
 

Static Public Member Functions

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

◆ 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

◆ ToString()

std::string openpit::model::TradeAmount::ToString ( ) const
inline

Formats the selected exact amount.