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

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

Public Member Functions

 TradeOrderDetails () noexcept=default
template<class Entry>
 TradeOrderDetails (const Entry &entry)
 TradeOrderDetails (OrderId orderId, Messaging::Int32 lastQty) noexcept
OrderId orderId () const noexcept
Messaging::Int32 lastQty () const noexcept

Detailed Description

Definition at line 34 of file TradeOrderIds.h.

Constructor & Destructor Documentation

◆ TradeOrderDetails() [1/3]

TradeOrderDetails ( )
defaultnoexcept

Constructs details with a zero order identifier and quantity.

◆ TradeOrderDetails() [2/3]

template<class Entry>
TradeOrderDetails ( const Entry & entry)
inlineexplicit

Constructs details from an order-related market data entry.

Template Parameters
EntryMarket data entry type providing orderId() and lastQty().
Parameters
entryEntry whose order identifier and executed quantity are copied.
Exceptions
Anyexception thrown while obtaining or converting the entry attributes.

Definition at line 45 of file TradeOrderIds.h.

◆ TradeOrderDetails() [3/3]

TradeOrderDetails ( OrderId orderId,
Messaging::Int32 lastQty )
inlinenoexcept

Constructs details with the specified order identifier and executed quantity.

Parameters
orderIdIdentifier of the order involved in the trade.
lastQtyQuantity executed for the order by the trade.

Definition at line 54 of file TradeOrderIds.h.

Member Function Documentation

◆ lastQty()

Messaging::Int32 lastQty ( ) const
inlinenoexcept

Gets the quantity executed for the order by the trade.

Returns
Executed quantity, or zero for default-constructed details.

Definition at line 71 of file TradeOrderIds.h.

◆ orderId()

OrderId orderId ( ) const
inlinenoexcept

Gets the identifier of the order involved in the trade.

Returns
Order identifier, or zero for default-constructed details.

Definition at line 63 of file TradeOrderIds.h.