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

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

Public Member Functions

constexpr ImpliedPriceLevel () noexcept=default
constexpr ImpliedPriceLevel (const ImpliedPriceLevel &other) noexcept=default
constexpr ImpliedPriceLevel (ImpliedPriceLevel &&other) noexcept=default
constexpr ImpliedPriceLevel (const Messaging::Decimal &price, MbpBookQuantity qty) noexcept
 ~ImpliedPriceLevel ()=default
constexpr bool exist () const noexcept
bool & exist () noexcept
constexpr const Messaging::Decimal & price () const noexcept
Messaging::Decimal & price () noexcept
constexpr MbpBookQuantity quantity () const noexcept
MbpBookQuantity & quantity () noexcept
ImpliedPriceLevel & operator= (const ImpliedPriceLevel &other) noexcept=default
ImpliedPriceLevel & operator= (ImpliedPriceLevel &&other) noexcept=default

Detailed Description

Stores the presence flag, price, and aggregate quantity for a single implied bid or ask level.

Definition at line 34 of file ImpliedPriceLevel.h.

Constructor & Destructor Documentation

◆ ImpliedPriceLevel() [1/4]

ImpliedPriceLevel ( )
constexprdefaultnoexcept

Constructs an absent price level.

◆ ImpliedPriceLevel() [2/4]

ImpliedPriceLevel ( const ImpliedPriceLevel & other)
constexprdefaultnoexcept

Constructs a price level as a copy of another instance.

Parameters
otherPrice level whose state is copied.

◆ ImpliedPriceLevel() [3/4]

ImpliedPriceLevel ( ImpliedPriceLevel && other)
constexprdefaultnoexcept

Constructs a price level by moving another instance.

Parameters
otherPrice level whose state is moved.

◆ ImpliedPriceLevel() [4/4]

ImpliedPriceLevel ( const Messaging::Decimal & price,
MbpBookQuantity qty )
inlineconstexprnoexcept

Constructs a present price level with the specified attributes.

Parameters
pricePrice value for the level.
qtyAggregate quantity available at the level.

Definition at line 51 of file ImpliedPriceLevel.h.

◆ ~ImpliedPriceLevel()

~ImpliedPriceLevel ( )
default

Destroys the price level.

Member Function Documentation

◆ exist() [1/2]

bool exist ( ) const
inlineconstexprnoexcept

Checks whether the price level is present in the book.

Returns
true if the level contains valid book data; otherwise false.

Definition at line 64 of file ImpliedPriceLevel.h.

◆ exist() [2/2]

bool & exist ( )
inlinenoexcept

Provides mutable access to the presence flag.

Returns
Reference to the presence flag.

Definition at line 72 of file ImpliedPriceLevel.h.

◆ operator=() [1/2]

ImpliedPriceLevel & operator= ( const ImpliedPriceLevel & other)
defaultnoexcept

Replaces this price level with a copy of another instance.

Parameters
otherPrice level whose state is copied.
Returns
Reference to this price level.

◆ operator=() [2/2]

ImpliedPriceLevel & operator= ( ImpliedPriceLevel && other)
defaultnoexcept

Replaces this price level by moving another instance.

Parameters
otherPrice level whose state is moved.
Returns
Reference to this price level.

◆ price() [1/2]

const Messaging::Decimal & price ( ) const
inlineconstexprnoexcept

Gets the price value.

Returns
Price value stored for the level.
Note
The returned value is meaningful as book data only when exist() returns true. Absent levels retain a stored/default value.
For CME Globex channels (market data groups), a present level has a present price value. For CME Partner Exchanges channels such as BVMF, the price value can be NULL even when the price level exists.
See also
Messaging::NullPRICE9.

Definition at line 88 of file ImpliedPriceLevel.h.

◆ price() [2/2]

Messaging::Decimal & price ( )
inlinenoexcept

Provides mutable access to the price value.

Returns
Reference to the price value stored for the level.
Note
Changing the price does not change the presence flag returned by exist(). If the level is absent, the modified value remains stored but is not meaningful as book data until the level is marked present.

Definition at line 99 of file ImpliedPriceLevel.h.

◆ quantity() [1/2]

MbpBookQuantity quantity ( ) const
inlineconstexprnoexcept

Gets the aggregate quantity at the price level.

Returns
Quantity available at the level.
Note
The returned value is meaningful as book data only when exist() returns true. Absent levels retain a stored/default value.

Definition at line 110 of file ImpliedPriceLevel.h.

◆ quantity() [2/2]

MbpBookQuantity & quantity ( )
inlinenoexcept

Provides mutable access to the aggregate quantity.

Returns
Reference to the quantity stored for the level.
Note
Changing the quantity does not change the presence flag returned by exist(). If the level is absent, the modified value remains stored but is not meaningful as book data until the level is marked present.

Definition at line 121 of file ImpliedPriceLevel.h.