OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
openpit::model::Instrument Struct Reference
Collaboration diagram for openpit::model::Instrument:

Public Member Functions

 Instrument (param::Asset underlying, param::Asset settlement)
 
OpenPitInstrument Raw () const noexcept
 

Static Public Member Functions

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

Public Attributes

param::Asset settlementAsset
 
param::Asset underlyingAsset
 

Constructor & Destructor Documentation

◆ Instrument()

openpit::model::Instrument::Instrument ( param::Asset  underlying,
param::Asset  settlement 
)
inline

Member Function Documentation

◆ FromRaw()

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

◆ Raw()

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

Member Data Documentation

◆ settlementAsset

param::Asset openpit::model::Instrument::settlementAsset

◆ underlyingAsset

param::Asset openpit::model::Instrument::underlyingAsset