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

Public Member Functions

ReferenceBookStatus ClearSettlementScheme (InstrumentId id)
 
 operator bool () const noexcept
 
 ReferenceBook ()
 
ReferenceBookRegisterResult Register (const model::Instrument &instrument)
 
ReferenceBookRegisterResult Register (const model::Instrument &instrument, InstrumentId id)
 
std::optional< InstrumentIdResolve (const model::Instrument &instrument) const
 
ReferenceBookStatus SetSettlementScheme (InstrumentId id, SettlementScheme scheme)
 
ReferenceBookSettlementSchemeResult SettlementSchemeFor (InstrumentId id) const
 

Constructor & Destructor Documentation

◆ ReferenceBook()

openpit::ReferenceBook::ReferenceBook ( )
inline

Member Function Documentation

◆ ClearSettlementScheme()

ReferenceBookStatus openpit::ReferenceBook::ClearSettlementScheme ( InstrumentId  id)
inline

◆ operator bool()

openpit::ReferenceBook::operator bool ( ) const
inlineexplicitnoexcept

◆ Register() [1/2]

ReferenceBookRegisterResult openpit::ReferenceBook::Register ( const model::Instrument instrument)
inline

◆ Register() [2/2]

ReferenceBookRegisterResult openpit::ReferenceBook::Register ( const model::Instrument instrument,
InstrumentId  id 
)
inline

◆ Resolve()

std::optional<InstrumentId> openpit::ReferenceBook::Resolve ( const model::Instrument instrument) const
inline

◆ SetSettlementScheme()

ReferenceBookStatus openpit::ReferenceBook::SetSettlementScheme ( InstrumentId  id,
SettlementScheme  scheme 
)
inline

◆ SettlementSchemeFor()

ReferenceBookSettlementSchemeResult openpit::ReferenceBook::SettlementSchemeFor ( InstrumentId  id) const
inline