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

#include <reference_book.hpp>

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)
inlinenodiscard

◆ operator bool()

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

◆ Register() [1/2]

ReferenceBookRegisterResult openpit::ReferenceBook::Register ( const model::Instrument & instrument)
inlinenodiscard

◆ Register() [2/2]

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

◆ Resolve()

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

◆ SetSettlementScheme()

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

◆ SettlementSchemeFor()

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