OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
Loading...
Searching...
No Matches
openpit::model::Instrument Struct Reference

#include <model.hpp>

Public Member Functions

 Instrument ()=default
 Instrument (std::string underlying, std::string settlement)
OpenPitInstrument Raw () const noexcept

Static Public Member Functions

static std::optional< InstrumentFromRaw (const OpenPitInstrument &raw)

Public Attributes

std::string settlementAsset
std::string underlyingAsset

Constructor & Destructor Documentation

◆ Instrument() [1/2]

openpit::model::Instrument::Instrument ( )
default

◆ Instrument() [2/2]

openpit::model::Instrument::Instrument ( std::string underlying,
std::string settlement )
inline

Member Function Documentation

◆ FromRaw()

std::optional< Instrument > openpit::model::Instrument::FromRaw ( const OpenPitInstrument & raw)
inlinestaticnodiscard

◆ Raw()

OpenPitInstrument openpit::model::Instrument::Raw ( ) const
inlinenodiscardnoexcept

Member Data Documentation

◆ settlementAsset

std::string openpit::model::Instrument::settlementAsset

◆ underlyingAsset

std::string openpit::model::Instrument::underlyingAsset