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

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

Static Public Member Functions

static constexpr OrderId nullId () noexcept
static constexpr OrderPriority nullPriority () noexcept
static constexpr Messaging::Int64 nullPriceMantissa () noexcept
static bool nullPrice (const Messaging::Decimal &price) noexcept
static constexpr DisplayQuantity nullQuantity () noexcept

Detailed Description

Definition at line 41 of file Order.h.

Member Function Documentation

◆ nullId()

constexpr OrderId nullId ( )
inlinestaticconstexprnoexcept

Gets the null order identifier.

Returns
Value representing an absent order identifier.

Definition at line 46 of file Order.h.

◆ nullPrice()

bool nullPrice ( const Messaging::Decimal & price)
inlinestaticnoexcept

Checks whether a price has the null-price mantissa.

Parameters
pricePrice to inspect.
Returns
true if the price mantissa represents a null price; otherwise false.
Note
The price exponent is not considered.

Definition at line 73 of file Order.h.

◆ nullPriceMantissa()

constexpr Messaging::Int64 nullPriceMantissa ( )
inlinestaticconstexprnoexcept

Gets the mantissa used to represent a null price.

Returns
Mantissa representing an absent price.

Definition at line 62 of file Order.h.

◆ nullPriority()

constexpr OrderPriority nullPriority ( )
inlinestaticconstexprnoexcept

Gets the null order priority.

Returns
Value representing an absent order priority.

Definition at line 54 of file Order.h.

◆ nullQuantity()

constexpr DisplayQuantity nullQuantity ( )
inlinestaticconstexprnoexcept

Gets the null displayed quantity.

Returns
Value representing an absent displayed quantity.

Definition at line 81 of file Order.h.