43 return 18446744073709551615ul;
49 return 18446744073709551615ul;
55 return 9223372036854775807l;
61 return (price.
mantissa() == nullPriceMantissa());
114 priority_ = priority;
138 quantity_ = quantity;
void price(const Decimal &price)
Updates order price.
static bool nullPrice(const Decimal &price)
Returns mantissa of the null price.
Order(OrderId id, OrderPriority priority, const Decimal &price, DisplayQuantity quantity)
Initializes instance according to given values.
void quantity(DisplayQuantity quantity)
Updates display quantity.
Order()
Initializes blank/null instance.
DisplayQuantity quantity_
Order as the member of the Market By Order (MBO) book.
Some basic traits for the order.
#define ONIXS_CMEMDH_LTWT
const Decimal & price() const
Order price.
Int32 DisplayQuantity
Presents display quantity.
Mantissa mantissa() const
Returns mantissa of given decimal.
OrderPriority priority() const
Order priority.
static OrderPriority nullPriority()
Returns null order priority.
void priority(OrderPriority priority)
Updates order priority.
A real number with floating exponent.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
OrderId id() const
Order identifier.
#define ONIXS_CMEMDH_EXPORTED
static OrderId nullId()
Returns null order id.
std::string toStr(const Order &order)
Returns string representation of the order.
static DisplayQuantity nullQuantity()
Returns null display quantity.
UInt64 OrderId
Type for order identification.
static Int64 nullPriceMantissa()
Returns mantissa of the null price.
void id(OrderId id)
Updates order identifier.
UInt64 OrderPriority
Type for order priority.
DisplayQuantity quantity() const
Display quantity.
#define ONIXS_CMEMDH_NAMESPACE_END