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

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

Public Member Functions

 DirectBboTracking (const SettingGroup *group=nullptr)
 DirectBboTracking (const DirectBboTracking &other)
 ~DirectBboTracking ()=default
const BboThreshold & numberOfOrders () const noexcept
BboThreshold & numberOfOrders () noexcept
bool enabled () const noexcept
bool exceeded (const DirectPriceLevel &previous, const DirectPriceLevel &current) const
DirectBboTracking & operator= (const DirectBboTracking &other)
Public Member Functions inherited from ImpliedBboTracking
 ImpliedBboTracking (const SettingGroup *group=nullptr)
 ImpliedBboTracking (const ImpliedBboTracking &other)
 ~ImpliedBboTracking ()=default
const BboThreshold & price () const noexcept
BboThreshold & price () noexcept
const BboThreshold & quantity () const noexcept
BboThreshold & quantity () noexcept
bool enabled () const noexcept
bool exceeded (const ImpliedPriceLevel &previous, const ImpliedPriceLevel &current) const
ImpliedBboTracking & operator= (const ImpliedBboTracking &other)

Protected Member Functions

void assignNoControl (const DirectBboTracking &other)
Protected Member Functions inherited from ImpliedBboTracking
const SettingGroup & group () const
void assignNoControl (const ImpliedBboTracking &other)

Friends

template<class>
class BaseBookManagement

Detailed Description

Definition at line 474 of file BookManagement.h.

Constructor & Destructor Documentation

◆ DirectBboTracking() [1/2]

DirectBboTracking ( const SettingGroup * group = nullptr)
inline

Initializes disabled direct-book BBO tracking.

Parameters
groupOptional settings group used to validate and control assignments.

Definition at line 481 of file BookManagement.h.

◆ DirectBboTracking() [2/2]

DirectBboTracking ( const DirectBboTracking & other)
inline

Copies direct-book BBO tracking settings from another instance.

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

Definition at line 492 of file BookManagement.h.

◆ ~DirectBboTracking()

~DirectBboTracking ( )
default

Finalizes the tracking settings.

Member Function Documentation

◆ assignNoControl()

void assignNoControl ( const DirectBboTracking & other)
inlineprotected

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

Definition at line 567 of file BookManagement.h.

◆ enabled()

bool enabled ( ) const
inlinenoexcept

Indicates whether any direct-book BBO threshold is enabled.

Returns
True when price, quantity, or number-of-orders tracking is enabled.

Definition at line 524 of file BookManagement.h.

◆ exceeded()

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

Checks whether the configured direct-book thresholds are exceeded.

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

Definition at line 535 of file BookManagement.h.

◆ numberOfOrders() [1/2]

const BboThreshold & numberOfOrders ( ) const
inlinenoexcept

Returns read-only order-count tracking settings.

Returns
Number-of-orders threshold settings.

Definition at line 505 of file BookManagement.h.

◆ numberOfOrders() [2/2]

BboThreshold & numberOfOrders ( )
inlinenoexcept

Returns mutable order-count tracking settings.

Returns
Number-of-orders threshold settings.

Definition at line 514 of file BookManagement.h.

◆ operator=()

DirectBboTracking & operator= ( const DirectBboTracking & other)
inline

Copies direct-book BBO tracking settings from another instance.

Parameters
otherSource settings.
Returns
Reference to this object.
Note
Assignment-control state is not copied; only setting values are copied.
Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 552 of file BookManagement.h.

◆ BaseBookManagement

template<class>
friend class BaseBookManagement
friend

Lets grouping and value assignment control functioning.

Definition at line 563 of file BookManagement.h.