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

Exact signed fee-style amount paired with its currency. More...

Public Member Functions

Fee Amount () const noexcept
 
const AssetCurrency () const noexcept
 
 MonetaryAmount (Fee amount, Asset currency)
 
bool operator!= (const MonetaryAmount &other) const
 
bool operator== (const MonetaryAmount &other) const
 

Detailed Description

Exact signed fee-style amount paired with its currency.

Constructor & Destructor Documentation

◆ MonetaryAmount()

openpit::param::MonetaryAmount::MonetaryAmount ( Fee  amount,
Asset  currency 
)
inline

Member Function Documentation

◆ Amount()

Fee openpit::param::MonetaryAmount::Amount ( ) const
inlinenoexcept

◆ Currency()

const Asset& openpit::param::MonetaryAmount::Currency ( ) const
inlinenoexcept

◆ operator!=()

bool openpit::param::MonetaryAmount::operator!= ( const MonetaryAmount other) const
inline

◆ operator==()

bool openpit::param::MonetaryAmount::operator== ( const MonetaryAmount other) const
inline