OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and API documentation
Loading...
Searching...
No Matches
MboBboTracking Class Reference

#include <OnixS/CME/MDH/BookManagement.h>

Public Member Functions

 MboBboTracking (const SettingGroup *group=nullptr)
 MboBboTracking (const MboBboTracking &other)
 ~MboBboTracking ()=default
const BboThreshold & price () const noexcept
BboThreshold & price () noexcept
bool enabled () const noexcept
bool exceeded (const Order &previous, const Order &current) const
MboBboTracking & operator= (const MboBboTracking &other)

Protected Member Functions

const SettingGroup & group () const
void assignNoControl (const MboBboTracking &other)

Friends

template<class>
class BaseBookManagement

Detailed Description

Definition at line 204 of file BookManagement.h.

Constructor & Destructor Documentation

◆ MboBboTracking() [1/2]

MboBboTracking ( const SettingGroup * group = nullptr)
inline

Initializes disabled MBO BBO tracking.

Parameters
groupOptional settings group used to validate and control assignments.

Definition at line 211 of file BookManagement.h.

◆ MboBboTracking() [2/2]

MboBboTracking ( const MboBboTracking & other)
inline

Copies MBO BBO tracking settings from another instance.

Parameters
otherSource settings.
Note
Assignment-control state is not copied; only setting values are copied.

Definition at line 221 of file BookManagement.h.

◆ ~MboBboTracking()

~MboBboTracking ( )
default

Finalizes the tracking settings.

Member Function Documentation

◆ assignNoControl()

void assignNoControl ( const MboBboTracking & other)
inlineprotected

Re-initializes as a copy of the other instance without involving value assignment control services.

Definition at line 295 of file BookManagement.h.

◆ enabled()

bool enabled ( ) const
inlinenoexcept

Indicates whether any MBO BBO threshold is enabled.

Returns
True when price tracking is enabled.

Definition at line 251 of file BookManagement.h.

◆ exceeded()

bool exceeded ( const Order & previous,
const Order & current ) const
inline

Checks whether the configured MBO thresholds are exceeded.

Parameters
previousPrevious best order.
currentCurrent best order.
Returns
True when an enabled threshold is exceeded.

Definition at line 262 of file BookManagement.h.

◆ group()

const SettingGroup & group ( ) const
inlineprotected

Instance of the group of setting which the given set of settings belongs to.

Definition at line 288 of file BookManagement.h.

◆ operator=()

MboBboTracking & operator= ( const MboBboTracking & other)
inline

Copies MBO BBO tracking settings from another instance.

Parameters
otherSource settings.
Returns
Reference to this object.
Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 273 of file BookManagement.h.

◆ price() [1/2]

const BboThreshold & price ( ) const
inlinenoexcept

Returns read-only price tracking settings.

Returns
Price threshold settings.

Definition at line 233 of file BookManagement.h.

◆ price() [2/2]

BboThreshold & price ( )
inlinenoexcept

Returns mutable price tracking settings.

Returns
Price threshold settings.

Definition at line 242 of file BookManagement.h.

◆ BaseBookManagement

template<class>
friend class BaseBookManagement
friend

Lets grouping and value assignment control functioning.

Definition at line 283 of file BookManagement.h.