OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and API documentation
Loading...
Searching...
No Matches
OnixS::CME::MDH::Test Namespace Reference

Namespaces

namespace  details

Classes

class  DataFeed
struct  EventFlags
class  MessageHolder
class  MessageRecipe
class  MulticastDelivery
class  MulticastSender
class  MulticastTarget
struct  MulticastTargetOptions
class  PacketHolder

Typedefs

using MulticastFeed = DataFeed<MulticastDelivery>
using MulticastTargetPtr = std::unique_ptr<MulticastTarget>
using ByteSpan = std::span<const std::uint8_t>
using IncrementalRefreshBook = MessageHolder<Messaging::IncrementalRefreshBook46>
using IncrementalRefreshOrderBook = MessageHolder<Messaging::IncrementalRefreshOrderBook47>
using IncrementalRefreshSessionStatistics = MessageHolder<Messaging::IncrementalRefreshSessionStatistics51>
using IncrementalRefreshTradeSummary = MessageHolder<Messaging::IncrementalRefreshTradeSummary48>
using InstrumentDefinitionFuture = MessageHolder<Messaging::InstrumentDefinitionFuture54>
using QuoteRequest = MessageHolder<Messaging::QuoteRequest39>
using SecurityStatus = MessageHolder<Messaging::SecurityStatus30>
using SnapshotFullRefresh = MessageHolder<Messaging::SnapshotFullRefresh52>
using SnapshotFullRefreshOrderBook = MessageHolder<Messaging::SnapshotFullRefreshOrderBook53>

Functions

template<typename Holder, typename Factory>
auto operator| (Holder &message, details::DeferredMessageOperation< Factory > &&deferredOperation) -> typename std::enable_if< !details::IsMessageRecipe< typename std::decay< Holder >::type >::value, decltype(std::move(deferredOperation).materialize().apply(message), message)>::type
template<typename Holder, typename... Operations, typename Factory>
auto operator| (const MessageRecipe< Holder, Operations... > &recipe, details::DeferredMessageOperation< Factory > &&deferredOperation) -> decltype(recipe.append(std::move(deferredOperation).materialize()))
template<typename Holder, typename... Operations, typename Factory>
auto operator| (MessageRecipe< Holder, Operations... > &&recipe, details::DeferredMessageOperation< Factory > &&deferredOperation) -> decltype(std::move(recipe).append(std::move(deferredOperation).materialize()))
template<Messaging::UpdateAction::Enum Action, typename Holder, typename Range, typename Projection>
auto addEntries (Holder &message, Range &&range, Projection &&projection) -> decltype(details::addEntriesFromIterators< Action >(message, details::rangeBegin(range), details::rangeEnd(range), std::forward< Projection >(projection)))
template<Messaging::UpdateAction::Enum Action, typename Range, typename Projection>
auto entries (Range &&range, Projection &&projection) -> details::EntryRangeStage< Action, typename std::remove_reference< Range >::type, typename std::remove_reference< Projection >::type >
template<typename Holder, typename... Operations, Messaging::UpdateAction::Enum Action, typename Range, typename Projection>
auto operator| (const MessageRecipe< Holder, Operations... > &recipe, details::EntryRangeStage< Action, Range, Projection > &&stage) -> decltype(recipe.append(std::move(stage).materialize()))
template<typename Holder, typename... Operations, Messaging::UpdateAction::Enum Action, typename Range, typename Projection>
auto operator| (MessageRecipe< Holder, Operations... > &&recipe, details::EntryRangeStage< Action, Range, Projection > &&stage) -> decltype(std::move(recipe).append(std::move(stage).materialize()))
template<typename MessageType, size_t MaxMessageSize>
void toStr (std::string &str, const MessageHolder< MessageType, MaxMessageSize > &holder)
template<typename MessageType, size_t MaxMessageSize>
std::string toStr (const MessageHolder< MessageType, MaxMessageSize > &holder)
template<typename MessageType, size_t MaxMessageSize>
std::ostream & operator<< (std::ostream &stream, const MessageHolder< MessageType, MaxMessageSize > &rhs)
template<std::size_t Index, typename... MessageTypes>
auto get (PacketHolder< MessageTypes... > &holder) noexcept -> decltype(holder.template get< Index >())
template<std::size_t Index, typename... MessageTypes>
auto get (const PacketHolder< MessageTypes... > &holder) noexcept -> decltype(holder.template get< Index >())
template<typename... MessageTypes>
void toStr (std::string &str, const PacketHolder< MessageTypes... > &holder)
template<typename... MessageTypes>
std::string toStr (const PacketHolder< MessageTypes... > &holder)
template<typename... MessageTypes>
std::ostream & operator<< (std::ostream &stream, const PacketHolder< MessageTypes... > &holder)
void toStr (std::string &str, ByteSpan span)
std::string toStr (ByteSpan span)
void toStr (std::string &str, const ByteSpan spans[], size_t spansCount)
std::string toStr (const ByteSpan spans[], size_t spansCount)
std::string loopbackNetworkInterface ()
std::string generateConnectivityConfiguration (ChannelId channel=999)
FeedSettings generateFeedSettings (ChannelId channel=999)
template<typename Holder, details::IncrementalRefreshBookInitializationTag...>
auto initialize (Holder &message, EventFlags::Bits eventIndicator, Messaging::Timestamp transactTime=UtcWatch::now()) noexcept -> details::EnableIncrementalRefreshBook< Holder >
template<typename Holder, details::IncrementalRefreshBookInitializationTag...>
auto initialize (EventFlags::Bits eventIndicator, Messaging::Timestamp transactTime=UtcWatch::now()) -> decltype(details::makeInitializationRecipe< Holder, IncrementalRefreshBook >(eventIndicator, transactTime))
template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry (Holder &message, SecurityId securityId, Messaging::EntryTypeBook::Enum entryType, Messaging::UInt32 rptSeq, Messaging::UInt8 priceLevel) -> details::EnableDeleteMdEntry< Action, Holder >
template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry (Holder &message, SecurityId securityId, Messaging::EntryTypeBook::Enum entryType, Messaging::UInt32 rptSeq, Messaging::UInt8 priceLevel, Messaging::Decimal9 price, Messaging::Int32 quantity, Messaging::Int32 numberOfOrders) -> details::EnableValueMdEntry< Action, Holder >
template<Messaging::OrderUpdateAction::Enum Action, typename Holder>
auto addOrderIdEntry (Holder &message, OrderId orderId, OrderPriority orderPriority, DisplayQuantity quantity, Messaging::UInt8 referenceId) -> details::EnableOrderIdEntry< Action, Holder >
template<Messaging::OrderUpdateAction::Enum Action>
auto orderIdEntry (OrderId orderId, OrderPriority orderPriority, DisplayQuantity quantity, Messaging::UInt8 referenceId) -> typename std::enable_if< details::IsOrderIdEntryAction< Action >::value, decltype(details::makeMessageOperation< details::OrderIdEntryOperation< Action > >(orderId, orderPriority, quantity, referenceId))>::type
template<typename Holder, details::IncrementalRefreshOrderBookInitializationTag...>
auto initialize (Holder &message, EventFlags::Bits eventIndicator, Messaging::Timestamp transactTime=UtcWatch::now()) noexcept -> details::EnableIncrementalRefreshOrderBook< Holder >
template<typename Holder, details::IncrementalRefreshOrderBookInitializationTag...>
auto initialize (EventFlags::Bits eventIndicator, Messaging::Timestamp transactTime=UtcWatch::now()) -> decltype(details::makeInitializationRecipe< Holder, IncrementalRefreshOrderBook >(eventIndicator, transactTime))
template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry (Holder &message, SecurityId securityId, OrderId orderId, OrderPriority orderPriority, Messaging::Decimal9 price, DisplayQuantity quantity, Messaging::EntryTypeBook::Enum entryType) -> details::EnableOrderBookMdEntry< Action, Holder >
template<typename Holder, details::IncrementalRefreshSessionStatisticsInitializationTag...>
auto initialize (Holder &message, EventFlags::Bits eventIndicator, Messaging::Timestamp transactTime=UtcWatch::now()) noexcept -> details::EnableIncrementalRefreshSessionStatistics< Holder >
template<typename Holder, details::IncrementalRefreshSessionStatisticsInitializationTag...>
auto initialize (EventFlags::Bits eventIndicator, Messaging::Timestamp transactTime=UtcWatch::now()) -> decltype(details::makeInitializationRecipe< Holder, IncrementalRefreshSessionStatistics >(eventIndicator, transactTime))
template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry (Holder &message, SecurityId securityId, Messaging::EntryTypeStatistics::Enum entryType, Messaging::UInt32 rptSeq, Messaging::Decimal9 price) -> details::EnableSessionStatisticsEntry< Action, Holder >
template<typename Holder, details::IncrementalRefreshTradeSummaryInitializationTag...>
auto initialize (Holder &message, EventFlags::Bits eventIndicator, Messaging::Timestamp transactTime=UtcWatch::now()) noexcept -> details::EnableIncrementalRefreshTradeSummary< Holder >
template<typename Holder, details::IncrementalRefreshTradeSummaryInitializationTag...>
auto initialize (EventFlags::Bits eventIndicator, Messaging::Timestamp transactTime=UtcWatch::now()) -> decltype(details::makeInitializationRecipe< Holder, IncrementalRefreshTradeSummary >(eventIndicator, transactTime))
template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry (Holder &message, SecurityId securityId, Messaging::UInt32 rptSeq, Messaging::Decimal9 price, Messaging::Int32 quantity, Messaging::Int32 numberOfOrders) -> details::EnableTradeSummaryEntry< Action, Holder >
template<typename Holder>
auto addOrderIdEntry (Holder &message, OrderId orderId, Messaging::Int32 lastQuantity) -> details::EnableIncrementalRefreshTradeSummary< Holder >
auto tradeEntry (OrderId orderId, Messaging::Int32 lastQuantity) -> decltype(details::makeMessageOperation< details::TradeEntryOperation >(orderId, lastQuantity))
constexpr Messaging::StrRef DefaultInstrumentDefinitionFutureSymbol () noexcept
constexpr Messaging::StrRef DefaultInstrumentDefinitionFutureGroup () noexcept
constexpr Messaging::StrRef DefaultInstrumentDefinitionFutureAsset () noexcept
template<Messaging::SecurityUpdateAction::Enum Action, typename Holder, details::InstrumentDefinitionFutureInitializationTag...>
auto initialize (Holder &message, Messaging::UInt32 totNumReports, SecurityId securityId, Messaging::StrRef symbol=DefaultInstrumentDefinitionFutureSymbol(), Messaging::StrRef group=DefaultInstrumentDefinitionFutureGroup(), Messaging::StrRef asset=DefaultInstrumentDefinitionFutureAsset(), Messaging::Int8 realMarketDepth=DefaultInstrumentDefinitionFutureRealMarketDepth, Messaging::Int8 impliedMarketDepth=DefaultInstrumentDefinitionFutureImpliedMarketDepth, Messaging::Timestamp lastUpdateTime=UtcWatch::now()) -> details::EnableAddOrModifyInstrumentDefinition< Action, Holder >
template<typename Holder, Messaging::SecurityUpdateAction::Enum Action, details::InstrumentDefinitionFutureInitializationTag...>
auto initialize (Messaging::UInt32 totNumReports, SecurityId securityId, Messaging::StrRef symbol=DefaultInstrumentDefinitionFutureSymbol(), Messaging::StrRef group=DefaultInstrumentDefinitionFutureGroup(), Messaging::StrRef asset=DefaultInstrumentDefinitionFutureAsset(), Messaging::Int8 realMarketDepth=DefaultInstrumentDefinitionFutureRealMarketDepth, Messaging::Int8 impliedMarketDepth=DefaultInstrumentDefinitionFutureImpliedMarketDepth, Messaging::Timestamp lastUpdateTime=UtcWatch::now()) -> typename std::enable_if< details::IsAddOrModifyInstrumentDefinition< Action >::value &&details::IsMutableMessageHolder< InstrumentDefinitionFuture, Holder >::value, decltype(details::makeInitializationRecipe< Holder, InstrumentDefinitionFuture, details::AddOrModifyInstrumentDefinitionOperation< Action > >(totNumReports, securityId, symbol, group, asset, realMarketDepth, impliedMarketDepth, lastUpdateTime))>::type
template<Messaging::SecurityUpdateAction::Enum Action, typename Holder, details::InstrumentDefinitionFutureInitializationTag...>
auto initialize (Holder &message, Messaging::UInt32 totNumReports, SecurityId securityId, Messaging::Timestamp lastUpdateTime=UtcWatch::now()) -> details::EnableDeleteInstrumentDefinition< Action, Holder >
template<typename Holder, Messaging::SecurityUpdateAction::Enum Action, details::InstrumentDefinitionFutureInitializationTag...>
auto initialize (Messaging::UInt32 totNumReports, SecurityId securityId, Messaging::Timestamp lastUpdateTime=UtcWatch::now()) -> typename std::enable_if< details::IsDeleteInstrumentDefinition< Action >::value &&details::IsMutableMessageHolder< InstrumentDefinitionFuture, Holder >::value, decltype(details::makeInitializationRecipe< Holder, InstrumentDefinitionFuture, details::DeleteInstrumentDefinitionOperation< Action > >(totNumReports, securityId, lastUpdateTime))>::type
template<typename Holder, details::QuoteRequestInitializationTag...>
auto initialize (Holder &message, Messaging::StrRef quoteRequestId, EventFlags::Bits eventIndicator=EventFlags::None, Messaging::Timestamp transactTime=UtcWatch::now()) -> details::EnableQuoteRequest< Holder >
template<typename Holder, details::QuoteRequestInitializationTag...>
auto initialize (Messaging::StrRef quoteRequestId, EventFlags::Bits eventIndicator=EventFlags::None, Messaging::Timestamp transactTime=UtcWatch::now()) -> decltype(details::makeInitializationRecipe< Holder, QuoteRequest, details::QuoteRequestInitializationOperation >(quoteRequestId, eventIndicator, transactTime))
template<typename Holder>
auto addQuoteEntry (Holder &message, SecurityId securityId, Messaging::StrRef symbol, Messaging::Int8 quoteType, Messaging::Int32 orderQuantity, Messaging::Int8 side) -> details::EnableQuoteRequest< Holder >
auto quoteEntry (SecurityId securityId, Messaging::StrRef symbol, Messaging::Int8 quoteType, Messaging::Int32 orderQuantity, Messaging::Int8 side) -> decltype(details::makeMessageOperation< details::QuoteEntryOperation >(securityId, details::QuoteSymbol(symbol), quoteType, orderQuantity, side))
template<typename Holder, details::SecurityStatusInitializationTag...>
auto initialize (Holder &message, SecurityId securityId, Messaging::SecurityTradingStatus::Enum securityTradingStatus, EventFlags::Bits eventIndicator=EventFlags::None, Messaging::Timestamp transactTime=UtcWatch::now()) -> details::EnableSecurityStatus< Holder >
template<typename Holder, details::SecurityStatusInitializationTag...>
auto initialize (SecurityId securityId, Messaging::SecurityTradingStatus::Enum securityTradingStatus, EventFlags::Bits eventIndicator=EventFlags::None, Messaging::Timestamp transactTime=UtcWatch::now()) -> decltype(details::makeInitializationRecipe< Holder, SecurityStatus, details::SecurityStatusInitializationOperation >(securityId, securityTradingStatus, eventIndicator, transactTime))
template<typename Holder, details::SnapshotFullRefreshInitializationTag...>
auto initialize (Holder &message, Messaging::UInt32 totNumReports, SecurityId securityId, SequenceNumber lastMsgSeqNumProcessed, Messaging::UInt32 rptSeq, Messaging::Timestamp transactTime, Messaging::Timestamp updateTime) -> details::EnableSnapshotFullRefresh< Holder >
template<typename Holder, details::SnapshotFullRefreshInitializationTag...>
auto initialize (Holder &message, Messaging::UInt32 totNumReports, SecurityId securityId, SequenceNumber lastMsgSeqNumProcessed, Messaging::UInt32 rptSeq, Messaging::Timestamp timestamp=UtcWatch::now()) -> details::EnableSnapshotFullRefresh< Holder >
template<typename Holder, details::SnapshotFullRefreshInitializationTag...>
auto initialize (Messaging::UInt32 totNumReports, SecurityId securityId, SequenceNumber lastMsgSeqNumProcessed, Messaging::UInt32 rptSeq, Messaging::Timestamp transactTime, Messaging::Timestamp updateTime) -> decltype(details::makeInitializationRecipe< Holder, SnapshotFullRefresh, details::SnapshotFullRefreshInitializationOperation >(totNumReports, securityId, lastMsgSeqNumProcessed, rptSeq, transactTime, updateTime))
template<typename Holder, details::SnapshotFullRefreshInitializationTag...>
auto initialize (Messaging::UInt32 totNumReports, SecurityId securityId, SequenceNumber lastMsgSeqNumProcessed, Messaging::UInt32 rptSeq, Messaging::Timestamp timestamp=UtcWatch::now()) -> decltype(initialize< Holder >(totNumReports, securityId, lastMsgSeqNumProcessed, rptSeq, timestamp, timestamp))
template<typename Holder>
auto addEntry (Holder &message, Messaging::EntryType::Enum entryType, Messaging::Int8 priceLevel, Messaging::Decimal9 price, Messaging::Int32 quantity, Messaging::Int32 numberOfOrders) -> details::EnableSnapshotFullRefresh< Holder >
template<typename Holder, details::SnapshotFullRefreshOrderBookInitializationTag...>
auto initialize (Holder &message, Messaging::UInt32 totNumReports, SecurityId securityId, SequenceNumber lastMsgSeqNumProcessed, Messaging::UInt32 numberOfChunks, Messaging::UInt32 currentChunk, Messaging::Timestamp transactTime=UtcWatch::now()) -> details::EnableSnapshotFullRefreshOrderBook< Holder >
template<typename Holder, details::SnapshotFullRefreshOrderBookInitializationTag...>
auto initialize (Messaging::UInt32 totNumReports, SecurityId securityId, SequenceNumber lastMsgSeqNumProcessed, Messaging::UInt32 numberOfChunks, Messaging::UInt32 currentChunk, Messaging::Timestamp transactTime=UtcWatch::now()) -> decltype(details::makeInitializationRecipe< Holder, SnapshotFullRefreshOrderBook, details::SnapshotFullRefreshOrderBookInitializationOperation >(totNumReports, securityId, lastMsgSeqNumProcessed, numberOfChunks, currentChunk, transactTime))
template<typename Holder>
auto addEntry (Holder &message, OrderId orderId, OrderPriority orderPriority, Messaging::Decimal9 price, DisplayQuantity quantity, Messaging::EntryTypeBook::Enum entryType) -> details::EnableSnapshotFullRefreshOrderBook< Holder >
ByteSpan asSpan (const PacketHeader &header) noexcept
template<typename MessageType, size_t MaxMessageSize>
ByteSpan asSpan (MessageHolder< MessageType, MaxMessageSize > &holder) noexcept
template<typename MessageType, size_t MaxMessageSize>
ByteSpan asSpan (MessageHolder< MessageType, MaxMessageSize > &&holder) noexcept

Variables

constexpr const char *const MulticastEgressEnvironmentVariable = "ONIXS_CMEMDH_ALLOW_MULTICAST_EGRESS"
constexpr const char *const AllowAnyMulticastDestinationEnvironmentVariable = "ONIXS_CMEMDH_ALLOW_ANY_MULTICAST_DESTINATION"
constexpr Messaging::Int8 DefaultInstrumentDefinitionFutureRealMarketDepth = 5
constexpr Messaging::Int8 DefaultInstrumentDefinitionFutureImpliedMarketDepth = 2

Typedef Documentation

◆ ByteSpan

using ByteSpan = std::span<const std::uint8_t>

Provides a non-owning read-only view over contiguous byte storage.

This alias exposes the dynamic-extent specialization of std::span. Copying the view does not copy the bytes. The referenced storage must remain alive and must not move while the view or any of its iterators is in use.

Definition at line 44 of file ByteSpan.h.

◆ IncrementalRefreshBook

Owns storage for an incremental book refresh test message.

Definition at line 36 of file IncrementalRefreshBook.h.

◆ IncrementalRefreshOrderBook

Owns storage for an incremental order-book refresh test message.

Definition at line 36 of file IncrementalRefreshOrderBook.h.

◆ IncrementalRefreshSessionStatistics

Owns storage for an incremental session-statistics refresh test message.

Definition at line 35 of file IncrementalRefreshSessionStatistics.h.

◆ IncrementalRefreshTradeSummary

Owns storage for an incremental trade-summary refresh test message.

Definition at line 36 of file IncrementalRefreshTradeSummary.h.

◆ InstrumentDefinitionFuture

Owns storage for a futures instrument-definition test message.

Definition at line 35 of file InstrumentDefinitionFuture.h.

◆ MulticastFeed

Builds and sends CME MDP packets to a configured multicast feed type.

This specialization uses MulticastDelivery for multicast routing, synchronous primary delivery, optional delayed secondary delivery, completion events, and UDP failure reporting.

Definition at line 135 of file MulticastFeed.h.

◆ MulticastTargetPtr

using MulticastTargetPtr = std::unique_ptr<MulticastTarget>

Definition at line 528 of file MulticastSender.h.

◆ QuoteRequest

Owns storage for a quote-request test message.

Definition at line 40 of file QuoteRequest.h.

◆ SecurityStatus

Owns storage for a security-status test message.

Definition at line 35 of file SecurityStatus.h.

◆ SnapshotFullRefresh

Owns storage for a full snapshot refresh test message.

Definition at line 34 of file SnapshotFullRefresh.h.

◆ SnapshotFullRefreshOrderBook

Owns storage for a full order-book snapshot refresh test message.

Definition at line 35 of file SnapshotFullRefreshOrderBook.h.

Function Documentation

◆ addEntries()

template<Messaging::UpdateAction::Enum Action, typename Holder, typename Range, typename Projection>
auto addEntries ( Holder & message,
Range && range,
Projection && projection ) -> decltype(details::addEntriesFromIterators< Action >( message, details::rangeBegin(range), details::rangeEnd(range), std::forward< Projection >(projection)))

Appends entries projected from an input range.

Template Parameters
ActionUpdate action passed to the destination message's typed entry builder.
HolderMutable message-holder type accepted by that entry builder.
RangeInput range type.
ProjectionCallable mapping each input value to tuple-like entry arguments.
Parameters
messageDestination message holder.
rangeInput range consumed once in iteration order.
projectionCallable invoked once per consumed value.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf an existing entry builder cannot represent another entry.
Anyexception thrown while accessing the range, invoking projection, or constructing an entry.
Note
The projection result must support std::tuple_size and std::get; its elements are forwarded in order to the existing typed entry operation selected for Action and message.
Iterators, sentinels, and unconsumed input values must remain valid while the destination grows. Any references or views produced by projection must remain valid until construction of the corresponding entry finishes. The projection must not structurally modify message or invalidate the input range.
Warning
Inputs are not snapshotted. Growing an earlier repeating group can relocate later groups in the same message, so materialize owned input values before using such a group as the source.
Note
If an operation throws, no rollback is performed. Entries completed by preceding iterations and any partial effects of the failing existing entry operation remain in message.

Definition at line 282 of file MessageBuilder.h.

◆ addEntry() [1/7]

template<typename Holder>
auto addEntry ( Holder & message,
Messaging::EntryType::Enum entryType,
Messaging::Int8 priceLevel,
Messaging::Decimal9 price,
Messaging::Int32 quantity,
Messaging::Int32 numberOfOrders ) -> details::EnableSnapshotFullRefresh< Holder >

Appends an entry to a full snapshot refresh message.

Template Parameters
HolderA mutable full snapshot refresh holder type.
Parameters
messageThe message holder to update.
entryTypeThe market-data entry type.
priceLevelThe aggregate book position, or zero for non-book entries.
priceThe entry price.
quantityThe entry quantity.
numberOfOrdersThe aggregate number of orders at the price level.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further entries can be represented by the message.
Note
Sets the entry's open/close settlement flag to OpenCloseSettlFlag::DailyOpenPrice.

Definition at line 199 of file SnapshotFullRefresh.h.

◆ addEntry() [2/7]

template<typename Holder>
auto addEntry ( Holder & message,
OrderId orderId,
OrderPriority orderPriority,
Messaging::Decimal9 price,
DisplayQuantity quantity,
Messaging::EntryTypeBook::Enum entryType ) -> details::EnableSnapshotFullRefreshOrderBook< Holder >

Appends an entry to a full order-book snapshot refresh message.

Template Parameters
HolderA mutable full order-book snapshot refresh holder type.
Parameters
messageThe message holder to update.
orderIdThe exchange-assigned order identifier.
orderPriorityThe order's matching priority.
priceThe order price.
quantityThe displayed order quantity.
entryTypeThe entry's book side.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further entries can be represented by the message.

Definition at line 152 of file SnapshotFullRefreshOrderBook.h.

◆ addEntry() [3/7]

template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry ( Holder & message,
SecurityId securityId,
Messaging::EntryTypeBook::Enum entryType,
Messaging::UInt32 rptSeq,
Messaging::UInt8 priceLevel ) -> details::EnableDeleteMdEntry< Action, Holder >

Appends a market-data entry whose price, quantity, and order count are null.

Template Parameters
ActionA delete-style update action.
HolderA mutable incremental book refresh holder type.
Parameters
messageThe message holder to update.
securityIdThe entry's security identifier.
entryTypeThe entry's book side or type.
rptSeqThe entry's per-security report sequence number.
priceLevelThe entry's price level.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further entries can be represented by the message.

Definition at line 179 of file IncrementalRefreshBook.h.

◆ addEntry() [4/7]

template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry ( Holder & message,
SecurityId securityId,
Messaging::EntryTypeBook::Enum entryType,
Messaging::UInt32 rptSeq,
Messaging::UInt8 priceLevel,
Messaging::Decimal9 price,
Messaging::Int32 quantity,
Messaging::Int32 numberOfOrders ) -> details::EnableValueMdEntry< Action, Holder >

Appends a market-data entry containing price, quantity, and order-count values.

Template Parameters
ActionA value-bearing update action.
HolderA mutable incremental book refresh holder type.
Parameters
messageThe message holder to update.
securityIdThe entry's security identifier.
entryTypeThe entry's book side or type.
rptSeqThe entry's per-security report sequence number.
priceLevelThe entry's price level.
priceThe entry price.
quantityThe entry quantity.
numberOfOrdersThe number of orders represented by the entry.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further entries can be represented by the message.

Definition at line 202 of file IncrementalRefreshBook.h.

◆ addEntry() [5/7]

template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry ( Holder & message,
SecurityId securityId,
Messaging::EntryTypeStatistics::Enum entryType,
Messaging::UInt32 rptSeq,
Messaging::Decimal9 price ) -> details::EnableSessionStatisticsEntry< Action, Holder >

Appends an entry to an incremental session-statistics refresh message.

Template Parameters
ActionNew or Delete market-data update action to encode.
HolderA mutable incremental session-statistics refresh holder type.
Parameters
messageThe message holder to update.
securityIdThe entry's security identifier.
entryTypeThe session-statistics entry type.
rptSeqThe entry's per-security report sequence number.
priceThe statistics price.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further entries can be represented by the message.
Note
Sets the entry's open/close settlement flag to OpenCloseSettlFlag::DailyOpenPrice.

Definition at line 114 of file IncrementalRefreshSessionStatistics.h.

◆ addEntry() [6/7]

template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry ( Holder & message,
SecurityId securityId,
Messaging::UInt32 rptSeq,
Messaging::Decimal9 price,
Messaging::Int32 quantity,
Messaging::Int32 numberOfOrders ) -> details::EnableTradeSummaryEntry< Action, Holder >

Appends a summary entry to an incremental trade-summary refresh message.

Template Parameters
ActionNew, Change, or Delete market-data update action to encode.
HolderA mutable incremental trade-summary refresh holder type.
Parameters
messageThe message holder to update.
securityIdThe entry's security identifier.
rptSeqThe entry's per-security report sequence number.
priceThe consolidated trade price.
quantityThe consolidated trade quantity.
numberOfOrdersThe number of real orders participating in the match step.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further entries can be represented by the message.

Definition at line 131 of file IncrementalRefreshTradeSummary.h.

◆ addEntry() [7/7]

template<Messaging::UpdateAction::Enum Action, typename Holder>
auto addEntry ( Holder & message,
SecurityId securityId,
OrderId orderId,
OrderPriority orderPriority,
Messaging::Decimal9 price,
DisplayQuantity quantity,
Messaging::EntryTypeBook::Enum entryType ) -> details::EnableOrderBookMdEntry< Action, Holder >

Appends an order-book entry to an incremental order-book refresh message.

Template Parameters
ActionThe order-book update action to encode.
HolderA mutable incremental order-book refresh holder type.
Parameters
messageThe message holder to update.
securityIdThe entry's security identifier.
orderIdThe exchange-assigned order identifier.
orderPriorityThe order's matching priority.
priceThe order price.
quantityThe displayed order quantity.
entryTypeThe entry's book side.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further entries can be represented by the message.

Definition at line 119 of file IncrementalRefreshOrderBook.h.

◆ addOrderIdEntry() [1/2]

template<typename Holder>
auto addOrderIdEntry ( Holder & message,
OrderId orderId,
Messaging::Int32 lastQuantity ) -> details::EnableIncrementalRefreshTradeSummary< Holder >

Appends an order-ID entry to an incremental trade-summary refresh message.

Template Parameters
HolderA mutable incremental trade-summary refresh holder type.
Parameters
messageThe message holder to update.
orderIdThe exchange-assigned order identifier.
lastQuantityThe quantity bought or sold on the fill.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further order-ID entries can be represented by the message.

Definition at line 150 of file IncrementalRefreshTradeSummary.h.

◆ addOrderIdEntry() [2/2]

template<Messaging::OrderUpdateAction::Enum Action, typename Holder>
auto addOrderIdEntry ( Holder & message,
OrderId orderId,
OrderPriority orderPriority,
DisplayQuantity quantity,
Messaging::UInt8 referenceId ) -> details::EnableOrderIdEntry< Action, Holder >

Appends an order-ID entry to an incremental book refresh message.

Template Parameters
ActionThe order update action to encode.
HolderA mutable incremental book refresh holder type.
Parameters
messageThe message holder to update.
orderIdThe exchange-assigned order identifier.
orderPriorityThe order's matching priority.
quantityThe displayed order quantity.
referenceIdThe one-based index of the associated market-data entry.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further order-ID entries can be represented by the message.

Definition at line 224 of file IncrementalRefreshBook.h.

◆ addQuoteEntry()

template<typename Holder>
auto addQuoteEntry ( Holder & message,
SecurityId securityId,
Messaging::StrRef symbol,
Messaging::Int8 quoteType,
Messaging::Int32 orderQuantity,
Messaging::Int8 side ) -> details::EnableQuoteRequest< Holder >

Appends a related-symbol entry to a quote-request message.

Template Parameters
HolderA mutable quote-request holder type.
Parameters
messageThe message holder to update.
securityIdThe requested instrument's security identifier.
symbolThe requested instrument's symbol.
quoteTypeThe type of quote requested.
orderQuantityThe requested quantity, or the protocol null value.
sideThe requested side, or the protocol null value.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf no further entries can be represented by the message.

Definition at line 169 of file QuoteRequest.h.

◆ asSpan() [1/3]

ByteSpan asSpan ( const PacketHeader & header)
inlinenoexcept

Provides a read-only byte view of a packet header.

Parameters
headerPacket header whose object representation is exposed.
Returns
View spanning the complete object representation of header.
Note
The returned view remains valid only while header remains alive at the same address.

Definition at line 114 of file Utils.h.

◆ asSpan() [2/3]

template<typename MessageType, size_t MaxMessageSize>
ByteSpan asSpan ( MessageHolder< MessageType, MaxMessageSize > && holder)
inlinenoexcept

Commits a temporary held message and provides its network-ready byte view.

Template Parameters
MessageTypeMessage type stored by the holder.
MaxMessageSizeMaximum encoded message size, excluding the message prefix.
Parameters
holderTemporary holder whose message prefix is refreshed before creating the view.
Returns
Read-only view of the message prefix and encoded payload.
Precondition
The calculated payload size must not exceed MaxMessageSize.
Note
The returned view remains valid only until the end of the full expression containing this call.

Definition at line 143 of file Utils.h.

◆ asSpan() [3/3]

template<typename MessageType, size_t MaxMessageSize>
ByteSpan asSpan ( MessageHolder< MessageType, MaxMessageSize > & holder)
inlinenoexcept

Commits a held message and provides its network-ready byte view.

Template Parameters
MessageTypeMessage type stored by the holder.
MaxMessageSizeMaximum encoded message size, excluding the message prefix.
Parameters
holderHolder whose message prefix is refreshed before creating the view.
Returns
Read-only view of the message prefix and encoded payload.
Precondition
The calculated payload size must not exceed MaxMessageSize.
Note
The returned view remains valid only while holder remains alive at the same address.

Definition at line 129 of file Utils.h.

◆ DefaultInstrumentDefinitionFutureAsset()

Messaging::StrRef DefaultInstrumentDefinitionFutureAsset ( )
inlineconstexprnoexcept

Returns the default futures asset used by the test builder.

Returns
Default futures asset.

Definition at line 56 of file InstrumentDefinitionFuture.h.

◆ DefaultInstrumentDefinitionFutureGroup()

Messaging::StrRef DefaultInstrumentDefinitionFutureGroup ( )
inlineconstexprnoexcept

Returns the default futures security group used by the test builder.

Returns
Default futures security group.

Definition at line 48 of file InstrumentDefinitionFuture.h.

◆ DefaultInstrumentDefinitionFutureSymbol()

Messaging::StrRef DefaultInstrumentDefinitionFutureSymbol ( )
inlineconstexprnoexcept

Returns the default futures instrument symbol used by the test builder.

Returns
Default futures instrument symbol.

Definition at line 40 of file InstrumentDefinitionFuture.h.

◆ entries()

template<Messaging::UpdateAction::Enum Action, typename Range, typename Projection>
auto entries ( Range && range,
Projection && projection ) -> details::EntryRangeStage< Action, typename std::remove_reference< Range >::type, typename std::remove_reference< Projection >::type >

Creates a reusable-recipe stage from projected range values.

Template Parameters
ActionUpdate action passed to the destination message's typed entry builder.
RangeInput range type.
ProjectionCallable mapping each input value to tuple-like entry arguments.
Parameters
rangeInput range consumed once when the stage is appended to a recipe.
projectionCallable invoked once per consumed value while the stage is appended.
Returns
A single-use stage that can be appended to a MessageRecipe.
Note
The projection result follows addEntries() tuple-like expansion and typed-entry dispatch. Each projected element is decay-copied into the recipe; the projection result itself and its references are not retained.
The returned stage temporarily borrows range and projection. Append it to a MessageRecipe before either object's lifetime ends. Do not retain or reuse the stage.
Pointer-like, view-like, and std::reference_wrapper projected values remain explicit borrows. Their referenced storage must remain valid during every recipe application, including all destination mutations.
The stage cannot be applied to a holder directly and does not support % customization.

Definition at line 307 of file MessageBuilder.h.

◆ generateConnectivityConfiguration()

std::string generateConnectivityConfiguration ( ChannelId channel = 999)

Generates connectivity configuration XML for one testing channel.

Parameters
channelChannel identifier used in the channel and connection identifiers and multicast endpoints.
Returns
UTF-8 XML containing one historical replay connection and eight multicast connections.
Exceptions
std::bad_allocIf memory allocation fails.
std::length_errorIf the resulting XML exceeds the maximum string size.
Note
The generated multicast endpoints use administratively scoped addresses and are unique for every channel and connection across the complete ChannelId range. This function performs no file or network I/O.

◆ generateFeedSettings()

FeedSettings generateFeedSettings ( ChannelId channel = 999)

Generates feed settings for one testing channel.

Parameters
channelChannel identifier used to generate the connection settings.
Returns
Feed settings configured to use the loopback interface.
Exceptions
std::exceptionIf connection setting generation fails.

◆ get() [1/2]

template<std::size_t Index, typename... MessageTypes>
auto get ( const PacketHolder< MessageTypes... > & holder) -> decltype(holder.template get< Index >())
inlinenoexcept

Returns read-only tuple-style indexed access to a stored message holder.

Template Parameters
IndexZero-based message index.
MessageTypesMessage types stored by the packet holder.
Parameters
holderPacket holder to access.
Returns
Read-only reference to the selected holder.
Precondition
Index < PacketHolder<MessageTypes...>::MessageCount.
Note
The reference remains valid until holder is destroyed.

Definition at line 209 of file PacketHolder.h.

◆ get() [2/2]

template<std::size_t Index, typename... MessageTypes>
auto get ( PacketHolder< MessageTypes... > & holder) -> decltype(holder.template get< Index >())
inlinenoexcept

Returns mutable tuple-style indexed access to a stored message holder.

Template Parameters
IndexZero-based message index.
MessageTypesMessage types stored by the packet holder.
Parameters
holderPacket holder to access.
Returns
Mutable reference to the selected holder.
Precondition
Index < PacketHolder<MessageTypes...>::MessageCount.
Note
The reference remains valid until holder is destroyed.

Definition at line 196 of file PacketHolder.h.

◆ initialize() [1/22]

template<typename Holder, details::IncrementalRefreshBookInitializationTag...>
auto initialize ( EventFlags::Bits eventIndicator,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> decltype( details::makeInitializationRecipe< Holder, IncrementalRefreshBook >(eventIndicator, transactTime))

Creates a reusable recipe for an incremental book refresh message.

Template Parameters
HolderA mutable incremental book refresh holder type to materialize.
Parameters
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that owns its initialization parameters.

Definition at line 162 of file IncrementalRefreshBook.h.

◆ initialize() [2/22]

template<typename Holder, details::IncrementalRefreshOrderBookInitializationTag...>
auto initialize ( EventFlags::Bits eventIndicator,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> decltype( details::makeInitializationRecipe< Holder, IncrementalRefreshOrderBook >(eventIndicator, transactTime))

Creates a reusable recipe for an incremental order-book refresh message.

Template Parameters
HolderA mutable incremental order-book refresh holder type to materialize.
Parameters
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that owns its initialization parameters.

Definition at line 100 of file IncrementalRefreshOrderBook.h.

◆ initialize() [3/22]

template<typename Holder, details::IncrementalRefreshSessionStatisticsInitializationTag...>
auto initialize ( EventFlags::Bits eventIndicator,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> decltype( details::makeInitializationRecipe< Holder, IncrementalRefreshSessionStatistics >(eventIndicator, transactTime))

Creates a reusable recipe for an incremental session-statistics refresh message.

Template Parameters
HolderA mutable incremental session-statistics refresh holder type to materialize.
Parameters
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that owns its initialization parameters.

Definition at line 96 of file IncrementalRefreshSessionStatistics.h.

◆ initialize() [4/22]

template<typename Holder, details::IncrementalRefreshTradeSummaryInitializationTag...>
auto initialize ( EventFlags::Bits eventIndicator,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> decltype( details::makeInitializationRecipe< Holder, IncrementalRefreshTradeSummary >(eventIndicator, transactTime))

Creates a reusable recipe for an incremental trade-summary refresh message.

Template Parameters
HolderA mutable incremental trade-summary refresh holder type to materialize.
Parameters
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that owns its initialization parameters.

Definition at line 113 of file IncrementalRefreshTradeSummary.h.

◆ initialize() [5/22]

template<typename Holder, details::IncrementalRefreshBookInitializationTag...>
auto initialize ( Holder & message,
EventFlags::Bits eventIndicator,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> details::EnableIncrementalRefreshBook< Holder >
noexcept

Resets and initializes an incremental book refresh message.

Template Parameters
HolderA mutable incremental book refresh holder type.
Parameters
messageThe message holder to reset and initialize.
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp; defaults to the current UTC time.
Returns
The supplied holder.

Definition at line 149 of file IncrementalRefreshBook.h.

◆ initialize() [6/22]

template<typename Holder, details::IncrementalRefreshOrderBookInitializationTag...>
auto initialize ( Holder & message,
EventFlags::Bits eventIndicator,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> details::EnableIncrementalRefreshOrderBook< Holder >
noexcept

Resets and initializes an incremental order-book refresh message.

Template Parameters
HolderA mutable incremental order-book refresh holder type.
Parameters
messageThe message holder to reset and initialize.
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp; defaults to the current UTC time.
Returns
The supplied holder.

Definition at line 87 of file IncrementalRefreshOrderBook.h.

◆ initialize() [7/22]

template<typename Holder, details::IncrementalRefreshSessionStatisticsInitializationTag...>
auto initialize ( Holder & message,
EventFlags::Bits eventIndicator,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> details::EnableIncrementalRefreshSessionStatistics< Holder >
noexcept

Resets and initializes an incremental session-statistics refresh message.

Template Parameters
HolderA mutable incremental session-statistics refresh holder type.
Parameters
messageThe message holder to reset and initialize.
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp; defaults to the current UTC time.
Returns
The supplied holder.

Definition at line 83 of file IncrementalRefreshSessionStatistics.h.

◆ initialize() [8/22]

template<typename Holder, details::IncrementalRefreshTradeSummaryInitializationTag...>
auto initialize ( Holder & message,
EventFlags::Bits eventIndicator,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> details::EnableIncrementalRefreshTradeSummary< Holder >
noexcept

Resets and initializes an incremental trade-summary refresh message.

Template Parameters
HolderA mutable incremental trade-summary refresh holder type.
Parameters
messageThe message holder to reset and initialize.
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp; defaults to the current UTC time.
Returns
The supplied holder.

Definition at line 100 of file IncrementalRefreshTradeSummary.h.

◆ initialize() [9/22]

template<typename Holder, details::QuoteRequestInitializationTag...>
auto initialize ( Holder & message,
Messaging::StrRef quoteRequestId,
EventFlags::Bits eventIndicator = EventFlags::None,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> details::EnableQuoteRequest< Holder >

Resets and initializes a quote-request message.

Template Parameters
HolderA mutable quote-request holder type.
Parameters
messageThe message holder to reset and initialize.
quoteRequestIdThe exchange-defined quote-request identifier.
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp; defaults to the current UTC time.
Returns
The supplied holder.

Definition at line 118 of file QuoteRequest.h.

◆ initialize() [10/22]

Resets and initializes an Add or Modify futures instrument definition.

Template Parameters
ActionAdd or Modify.
HolderA mutable futures instrument-definition holder type.
Parameters
messageThe message holder to reset and initialize.
totNumReportsTotal number of definitions in the recovery loop.
securityIdThe instrument's security identifier.
symbolThe instrument symbol.
groupThe instrument security group.
assetThe instrument asset.
realMarketDepthThe real-book depth advertised through the GBX feed type.
impliedMarketDepthThe implied-book depth advertised through the GBI feed type.
lastUpdateTimeThe definition's last-update timestamp; defaults to the current UTC time.
Returns
The supplied holder.
Exceptions
std::runtime_errorIf the feed-type entries cannot be represented by the message.

Definition at line 178 of file InstrumentDefinitionFuture.h.

◆ initialize() [11/22]

template<Messaging::SecurityUpdateAction::Enum Action, typename Holder, details::InstrumentDefinitionFutureInitializationTag...>
auto initialize ( Holder & message,
Messaging::UInt32 totNumReports,
SecurityId securityId,
Messaging::Timestamp lastUpdateTime = UtcWatch::now() ) -> details::EnableDeleteInstrumentDefinition< Action, Holder >

Resets and initializes a Delete futures instrument definition.

Template Parameters
ActionDelete.
HolderA mutable futures instrument-definition holder type.
Parameters
messageThe message holder to reset and initialize.
totNumReportsTotal number of definitions in the recovery loop.
securityIdThe instrument's security identifier.
lastUpdateTimeThe definition's last-update timestamp; defaults to the current UTC time.
Returns
The supplied holder.

Definition at line 303 of file InstrumentDefinitionFuture.h.

◆ initialize() [12/22]

template<typename Holder, details::SnapshotFullRefreshOrderBookInitializationTag...>
auto initialize ( Holder & message,
Messaging::UInt32 totNumReports,
SecurityId securityId,
SequenceNumber lastMsgSeqNumProcessed,
Messaging::UInt32 numberOfChunks,
Messaging::UInt32 currentChunk,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> details::EnableSnapshotFullRefreshOrderBook< Holder >

Resets and initializes a full order-book snapshot refresh message.

Template Parameters
HolderA mutable full order-book snapshot refresh holder type.
Parameters
messageThe message holder to reset and initialize.
totNumReportsTotal number of messages in the snapshot loop.
securityIdThe security identifier represented by the snapshot.
lastMsgSeqNumProcessedLast incremental-feed packet included in the snapshot.
numberOfChunksTotal packets constituting the instrument order book.
currentChunkThe sequence number of this chunk.
transactTimeThe transaction timestamp; defaults to the current UTC time.
Returns
The supplied holder.

Definition at line 102 of file SnapshotFullRefreshOrderBook.h.

◆ initialize() [13/22]

template<typename Holder, details::SnapshotFullRefreshInitializationTag...>
auto initialize ( Holder & message,
Messaging::UInt32 totNumReports,
SecurityId securityId,
SequenceNumber lastMsgSeqNumProcessed,
Messaging::UInt32 rptSeq,
Messaging::Timestamp timestamp = UtcWatch::now() ) -> details::EnableSnapshotFullRefresh< Holder >

Resets and initializes a full snapshot refresh message with one timestamp.

Template Parameters
HolderA mutable full snapshot refresh holder type.
Parameters
messageThe message holder to reset and initialize.
totNumReportsTotal number of messages in the snapshot loop.
securityIdThe security identifier represented by the snapshot.
lastMsgSeqNumProcessedLast incremental-feed packet included in the snapshot.
rptSeqLast per-security market-data sequence included in the snapshot.
timestampThe transaction and update timestamp; defaults to the current UTC time.
Returns
The supplied holder.
Note
Sets the security trading status to SecurityTradingStatus::NewPriceIndication.

Definition at line 127 of file SnapshotFullRefresh.h.

◆ initialize() [14/22]

template<typename Holder, details::SnapshotFullRefreshInitializationTag...>
auto initialize ( Holder & message,
Messaging::UInt32 totNumReports,
SecurityId securityId,
SequenceNumber lastMsgSeqNumProcessed,
Messaging::UInt32 rptSeq,
Messaging::Timestamp transactTime,
Messaging::Timestamp updateTime ) -> details::EnableSnapshotFullRefresh< Holder >

Resets and initializes a full snapshot refresh message with explicit timestamps.

Template Parameters
HolderA mutable full snapshot refresh holder type.
Parameters
messageThe message holder to reset and initialize.
totNumReportsTotal number of messages in the snapshot loop.
securityIdThe security identifier represented by the snapshot.
lastMsgSeqNumProcessedLast incremental-feed packet included in the snapshot.
rptSeqLast per-security market-data sequence included in the snapshot.
transactTimeThe transaction timestamp.
updateTimeThe timestamp used for the last-update timestamp and trade date.
Returns
The supplied holder.
Note
Sets the security trading status to SecurityTradingStatus::NewPriceIndication.

Definition at line 106 of file SnapshotFullRefresh.h.

◆ initialize() [15/22]

template<typename Holder, details::SecurityStatusInitializationTag...>
auto initialize ( Holder & message,
SecurityId securityId,
Messaging::SecurityTradingStatus::Enum securityTradingStatus,
EventFlags::Bits eventIndicator = EventFlags::None,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> details::EnableSecurityStatus< Holder >

Resets and initializes a security-status message.

Template Parameters
HolderA mutable security-status holder type.
Parameters
messageThe message holder to reset and initialize.
securityIdThe instrument's security identifier.
securityTradingStatusThe trading status applicable to the instrument.
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp; defaults to the current UTC time.
Returns
The supplied holder.
Note
Sets the halt reason to HaltReason::MarketEvent and the security trading event to SecurityTradingEvent::NoEvent.

Definition at line 83 of file SecurityStatus.h.

◆ initialize() [16/22]

template<typename Holder, details::QuoteRequestInitializationTag...>
auto initialize ( Messaging::StrRef quoteRequestId,
EventFlags::Bits eventIndicator = EventFlags::None,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> decltype( details::makeInitializationRecipe< Holder, QuoteRequest, details::QuoteRequestInitializationOperation >( quoteRequestId, eventIndicator, transactTime))

Creates a reusable recipe for a quote-request message.

Template Parameters
HolderA mutable quote-request holder type to materialize.
Parameters
quoteRequestIdA non-owning view of the exchange-defined quote-request identifier.
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that borrows the character storage referenced by quoteRequestId and owns its other initialization parameters.
Warning
The character storage referenced by quoteRequestId must remain valid until every application of the returned recipe has completed.

Definition at line 138 of file QuoteRequest.h.

◆ initialize() [17/22]

template<typename Holder, Messaging::SecurityUpdateAction::Enum Action, details::InstrumentDefinitionFutureInitializationTag...>
auto initialize ( Messaging::UInt32 totNumReports,
SecurityId securityId,
Messaging::StrRef symbol = DefaultInstrumentDefinitionFutureSymbol(),
Messaging::StrRef group = DefaultInstrumentDefinitionFutureGroup(),
Messaging::StrRef asset = DefaultInstrumentDefinitionFutureAsset(),
Messaging::Int8 realMarketDepth = DefaultInstrumentDefinitionFutureRealMarketDepth,
Messaging::Int8 impliedMarketDepth = DefaultInstrumentDefinitionFutureImpliedMarketDepth,
Messaging::Timestamp lastUpdateTime = UtcWatch::now() ) -> typename std::enable_if< details::IsAddOrModifyInstrumentDefinition< Action >::value && details::IsMutableMessageHolder< InstrumentDefinitionFuture, Holder >::value, decltype(details::makeInitializationRecipe< Holder, InstrumentDefinitionFuture, details::AddOrModifyInstrumentDefinitionOperation< Action > >( totNumReports, securityId, symbol, group, asset, realMarketDepth, impliedMarketDepth, lastUpdateTime))>::type

Creates a reusable recipe for an Add or Modify futures instrument definition.

Template Parameters
HolderThe futures instrument-definition holder type to materialize.
ActionAdd or Modify.
Parameters
totNumReportsTotal number of definitions in the recovery loop.
securityIdThe instrument's security identifier.
symbolA non-owning view of the instrument symbol.
groupA non-owning view of the instrument security group.
assetA non-owning view of the instrument asset.
realMarketDepthThe real-book depth advertised through the GBX feed type.
impliedMarketDepthThe implied-book depth advertised through the GBI feed type.
lastUpdateTimeThe definition's last-update timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that borrows the character storage referenced by symbol, group, and asset and owns its other initialization parameters.
Note
The last-update timestamp is not refreshed when the recipe is applied.
Applying the returned recipe may throw std::runtime_error if the feed-type entries cannot be represented by the materialized message.
Warning
The character storage referenced by symbol, group, and asset must remain valid until every application of the returned recipe has completed.

Definition at line 217 of file InstrumentDefinitionFuture.h.

◆ initialize() [18/22]

template<typename Holder, Messaging::SecurityUpdateAction::Enum Action, details::InstrumentDefinitionFutureInitializationTag...>
auto initialize ( Messaging::UInt32 totNumReports,
SecurityId securityId,
Messaging::Timestamp lastUpdateTime = UtcWatch::now() ) -> typename std::enable_if< details::IsDeleteInstrumentDefinition< Action >::value && details::IsMutableMessageHolder< InstrumentDefinitionFuture, Holder >::value, decltype(details::makeInitializationRecipe< Holder, InstrumentDefinitionFuture, details::DeleteInstrumentDefinitionOperation< Action > >( totNumReports, securityId, lastUpdateTime))>::type

Creates a reusable recipe for a Delete futures instrument definition.

Template Parameters
HolderThe futures instrument-definition holder type to materialize.
ActionDelete.
Parameters
totNumReportsTotal number of definitions in the recovery loop.
securityIdThe instrument's security identifier.
lastUpdateTimeThe definition's last-update timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that owns its initialization parameters.
Note
The last-update timestamp is not refreshed when the recipe is applied.

Definition at line 326 of file InstrumentDefinitionFuture.h.

◆ initialize() [19/22]

template<typename Holder, details::SnapshotFullRefreshOrderBookInitializationTag...>
auto initialize ( Messaging::UInt32 totNumReports,
SecurityId securityId,
SequenceNumber lastMsgSeqNumProcessed,
Messaging::UInt32 numberOfChunks,
Messaging::UInt32 currentChunk,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> decltype( details::makeInitializationRecipe< Holder, SnapshotFullRefreshOrderBook, details::SnapshotFullRefreshOrderBookInitializationOperation >( totNumReports, securityId, lastMsgSeqNumProcessed, numberOfChunks, currentChunk, transactTime))

Creates a reusable recipe for a full order-book snapshot refresh message.

Template Parameters
HolderA mutable full order-book snapshot refresh holder type to materialize.
Parameters
totNumReportsTotal number of messages in the snapshot loop.
securityIdThe security identifier represented by the snapshot.
lastMsgSeqNumProcessedLast incremental-feed packet included in the snapshot.
numberOfChunksTotal packets constituting the instrument order book.
currentChunkThe sequence number of this chunk.
transactTimeThe transaction timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that owns its initialization parameters.

Definition at line 124 of file SnapshotFullRefreshOrderBook.h.

◆ initialize() [20/22]

template<typename Holder, details::SnapshotFullRefreshInitializationTag...>
auto initialize ( Messaging::UInt32 totNumReports,
SecurityId securityId,
SequenceNumber lastMsgSeqNumProcessed,
Messaging::UInt32 rptSeq,
Messaging::Timestamp timestamp = UtcWatch::now() ) -> decltype( initialize< Holder >( totNumReports, securityId, lastMsgSeqNumProcessed, rptSeq, timestamp, timestamp))

Creates a reusable recipe for a full snapshot refresh message with one timestamp.

Template Parameters
HolderA mutable full snapshot refresh holder type to materialize.
Parameters
totNumReportsTotal number of messages in the snapshot loop.
securityIdThe security identifier represented by the snapshot.
lastMsgSeqNumProcessedLast incremental-feed packet included in the snapshot.
rptSeqLast per-security market-data sequence included in the snapshot.
timestampThe transaction and update timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that owns its initialization parameters.
Note
Sets the security trading status to SecurityTradingStatus::NewPriceIndication when applied.
The timestamp is not refreshed when the recipe is applied.

Definition at line 177 of file SnapshotFullRefresh.h.

◆ initialize() [21/22]

template<typename Holder, details::SnapshotFullRefreshInitializationTag...>
auto initialize ( Messaging::UInt32 totNumReports,
SecurityId securityId,
SequenceNumber lastMsgSeqNumProcessed,
Messaging::UInt32 rptSeq,
Messaging::Timestamp transactTime,
Messaging::Timestamp updateTime ) -> decltype( details::makeInitializationRecipe< Holder, SnapshotFullRefresh, details::SnapshotFullRefreshInitializationOperation >( totNumReports, securityId, lastMsgSeqNumProcessed, rptSeq, transactTime, updateTime))

Creates a reusable recipe for a full snapshot refresh message with explicit timestamps.

Template Parameters
HolderA mutable full snapshot refresh holder type to materialize.
Parameters
totNumReportsTotal number of messages in the snapshot loop.
securityIdThe security identifier represented by the snapshot.
lastMsgSeqNumProcessedLast incremental-feed packet included in the snapshot.
rptSeqLast per-security market-data sequence included in the snapshot.
transactTimeThe transaction timestamp captured by the recipe.
updateTimeThe last-update timestamp and trade date captured by the recipe.
Returns
An allocation-free recipe that owns its initialization parameters.
Note
Sets the security trading status to SecurityTradingStatus::NewPriceIndication when applied.
The timestamps are not refreshed when the recipe is applied.

Definition at line 149 of file SnapshotFullRefresh.h.

◆ initialize() [22/22]

template<typename Holder, details::SecurityStatusInitializationTag...>
auto initialize ( SecurityId securityId,
Messaging::SecurityTradingStatus::Enum securityTradingStatus,
EventFlags::Bits eventIndicator = EventFlags::None,
Messaging::Timestamp transactTime = UtcWatch::now() ) -> decltype( details::makeInitializationRecipe< Holder, SecurityStatus, details::SecurityStatusInitializationOperation >( securityId, securityTradingStatus, eventIndicator, transactTime))

Creates a reusable recipe for a security-status message.

Template Parameters
HolderA mutable security-status holder type to materialize.
Parameters
securityIdThe instrument's security identifier.
securityTradingStatusThe trading status applicable to the instrument.
eventIndicatorThe event flags to encode in the match-event indicator.
transactTimeThe transaction timestamp captured by the recipe; defaults to the current UTC time.
Returns
An allocation-free recipe that owns its initialization parameters.
Note
Sets the halt reason to HaltReason::MarketEvent and the security trading event to SecurityTradingEvent::NoEvent when applied.

Definition at line 104 of file SecurityStatus.h.

◆ loopbackNetworkInterface()

std::string loopbackNetworkInterface ( )

Returns the platform-specific loopback network interface.

Returns
Loopback network interface name.

◆ operator<<() [1/2]

template<typename MessageType, size_t MaxMessageSize>
std::ostream & operator<< ( std::ostream & stream,
const MessageHolder< MessageType, MaxMessageSize > & rhs )

Writes the holder's capacity, prefix, and message to a stream.

Template Parameters
MessageTypeMessage type stored by the holder.
MaxMessageSizeMaximum encoded message size, excluding the message prefix.
Parameters
streamStream that receives the representation.
rhsHolder to represent.
Returns
Reference to stream.
Exceptions
Anyexception thrown while formatting the holder or writing to stream.

Definition at line 399 of file MessageHolder.h.

◆ operator<<() [2/2]

template<typename... MessageTypes>
std::ostream & operator<< ( std::ostream & stream,
const PacketHolder< MessageTypes... > & holder )
inline

Writes a human-readable representation of the held messages.

Template Parameters
MessageTypesMessage types stored by the packet holder.
Parameters
streamStream that receives the representation.
holderPacket holder to represent.
Returns
Reference to stream.
Exceptions
Anyexception thrown while formatting the holder or writing to stream.

Definition at line 270 of file PacketHolder.h.

◆ operator|() [1/5]

template<typename Holder, typename... Operations, typename Factory>
auto operator| ( const MessageRecipe< Holder, Operations... > & recipe,
details::DeferredMessageOperation< Factory > && deferredOperation ) -> decltype( recipe.append(std::move(deferredOperation).materialize()))

Materializes and appends a deferred operation to a reusable message recipe.

Template Parameters
HolderHolder type materialized by the recipe.
OperationsOperations already owned by the recipe.
FactoryFactory for the message operation to append.
Parameters
recipeRecipe to extend.
deferredOperationDeferred operation factory to materialize and append.
Returns
Extended owning recipe.
Note
Deferred factories are materialized in pipeline order. Materialization occurs while constructing the recipe, not when applying it to a holder.
This operation consumes deferredOperation. Reuse the returned MessageRecipe rather than appending the same deferred stage again.
Exceptions
Anyexception thrown while materializing, copying, or moving the operation.

Definition at line 513 of file MessageOperation.h.

◆ operator|() [2/5]

template<typename Holder, typename... Operations, Messaging::UpdateAction::Enum Action, typename Range, typename Projection>
auto operator| ( const MessageRecipe< Holder, Operations... > & recipe,
details::EntryRangeStage< Action, Range, Projection > && stage ) -> decltype(recipe.append(std::move(stage).materialize()))

Materializes and appends a projected range stage to a reusable message recipe.

Template Parameters
HolderHolder type materialized by the recipe.
OperationsOperations already owned by the recipe.
ActionUpdate action passed to the destination message's typed entry builder.
RangeBorrowed input range type.
ProjectionBorrowed projection type.
Parameters
recipeRecipe to extend.
stageSingle-use projected range stage to materialize and append.
Returns
Extended recipe owning decay-copied arguments for every projected entry.
Note
Range traversal and projection occur in pipeline order while the recipe is constructed, not when it is applied. The original recipe remains unchanged if materialization throws.
Exceptions
Anyexception thrown while materializing, copying, or moving the operation.

Definition at line 327 of file MessageBuilder.h.

◆ operator|() [3/5]

template<typename Holder, typename Factory>
auto operator| ( Holder & message,
details::DeferredMessageOperation< Factory > && deferredOperation ) -> typename std::enable_if< !details::IsMessageRecipe< typename std::decay< Holder >::type >::value, decltype(std::move(deferredOperation).materialize().apply(message), message)>::type

Materializes and applies a deferred message operation to a named holder.

Template Parameters
HolderA compatible mutable message holder type.
FactoryFactory for an operation created by a testing message builder.
Parameters
messageThe message holder to update.
deferredOperationDeferred operation factory to materialize and apply.
Returns
The supplied holder.
Note
Deferred factories are materialized in pipeline order.
This operation consumes deferredOperation. Do not materialize the same deferred stage again; construct and reuse a MessageRecipe instead.
Exceptions
Anyexception thrown while materializing or applying the operation.

Definition at line 491 of file MessageOperation.h.

◆ operator|() [4/5]

template<typename Holder, typename... Operations, typename Factory>
auto operator| ( MessageRecipe< Holder, Operations... > && recipe,
details::DeferredMessageOperation< Factory > && deferredOperation ) -> decltype( std::move(recipe).append(std::move(deferredOperation).materialize()))

Materializes and appends a deferred operation to a temporary message recipe.

Template Parameters
HolderHolder type materialized by the recipe.
OperationsOperations already owned by the recipe.
FactoryFactory for the message operation to append.
Parameters
recipeRecipe whose operations are moved into the result.
deferredOperationDeferred operation factory to materialize and append.
Returns
Extended owning recipe.
Note
Deferred factories are materialized in pipeline order. Materialization occurs while constructing the recipe, not when applying it to a holder.
This operation consumes deferredOperation. Reuse the returned MessageRecipe rather than appending the same deferred stage again.
Exceptions
Anyexception thrown while materializing or moving the operation.

Definition at line 535 of file MessageOperation.h.

◆ operator|() [5/5]

template<typename Holder, typename... Operations, Messaging::UpdateAction::Enum Action, typename Range, typename Projection>
auto operator| ( MessageRecipe< Holder, Operations... > && recipe,
details::EntryRangeStage< Action, Range, Projection > && stage ) -> decltype(std::move(recipe).append(std::move(stage).materialize()))

Materializes and appends a projected range stage to a temporary reusable recipe.

Template Parameters
HolderHolder type materialized by the recipe.
OperationsOperations already owned by the recipe.
ActionUpdate action passed to the destination message's typed entry builder.
RangeBorrowed input range type.
ProjectionBorrowed projection type.
Parameters
recipeRecipe whose operations are moved into the result.
stageSingle-use projected range stage to materialize and append.
Returns
Extended recipe owning decay-copied arguments for every projected entry.
Note
Range traversal and projection occur in pipeline order while the recipe is constructed, not when it is applied.
Exceptions
Anyexception thrown while materializing or moving the operation.

Definition at line 347 of file MessageBuilder.h.

◆ orderIdEntry()

auto orderIdEntry ( OrderId orderId,
OrderPriority orderPriority,
DisplayQuantity quantity,
Messaging::UInt8 referenceId ) -> typename std::enable_if< details::IsOrderIdEntryAction< Action >::value, decltype(details::makeMessageOperation< details::OrderIdEntryOperation< Action > >( orderId, orderPriority, quantity, referenceId))>::type

Creates a pipeline operation that appends an order-ID entry.

Template Parameters
ActionThe order update action to encode.
Parameters
orderIdThe exchange-assigned order identifier.
orderPriorityThe order's matching priority.
quantityThe displayed order quantity.
referenceIdThe one-based index of the associated market-data entry.
Returns
An operation materialized by ONIXS_CMEMDH_ORDER_ID_ENTRY() for a deferred pipeline stage.

Definition at line 283 of file IncrementalRefreshBook.h.

◆ quoteEntry()

auto quoteEntry ( SecurityId securityId,
Messaging::StrRef symbol,
Messaging::Int8 quoteType,
Messaging::Int32 orderQuantity,
Messaging::Int8 side ) -> decltype( details::makeMessageOperation< details::QuoteEntryOperation >( securityId, details::QuoteSymbol(symbol), quoteType, orderQuantity, side))
inline

Creates a pipeline operation that appends a quote-request entry.

Parameters
securityIdThe requested instrument's security identifier.
symbolThe requested instrument's symbol, copied into the operation.
quoteTypeThe type of quote requested.
orderQuantityThe requested quantity, or the protocol null value.
sideThe requested side, or the protocol null value.
Returns
An operation that owns its symbol and is materialized by ONIXS_CMEMDH_QUOTE_ENTRY() for a deferred pipeline stage.

Definition at line 202 of file QuoteRequest.h.

◆ toStr() [1/8]

std::string toStr ( ByteSpan span)
inline

Returns a concise description of a byte span.

Parameters
spanByte span whose size is described.
Returns
Appends a human-readable formatted serialization.

Definition at line 445 of file ByteSpan.h.

◆ toStr() [2/8]

std::string toStr ( const ByteSpan spans[],
size_t spansCount )
inline

Returns concise descriptions of a sequence of byte spans.

Parameters
spansByte spans whose sizes are described, or nullptr when spansCount is zero.
spansCountNumber of elements in spans.
Returns
Bracketed, comma-separated ByteSpan[size=N] descriptions.

Definition at line 467 of file ByteSpan.h.

◆ toStr() [3/8]

template<typename MessageType, size_t MaxMessageSize>
std::string toStr ( const MessageHolder< MessageType, MaxMessageSize > & holder)
inline

Creates a string containing the holder's capacity, prefix, and message.

Template Parameters
MessageTypeMessage type stored by the holder.
MaxMessageSizeMaximum encoded message size, excluding the message prefix.
Parameters
holderHolder to represent.
Returns
Human-readable representation of holder.
Exceptions
Anyexception thrown while allocating or formatting the result.

Definition at line 382 of file MessageHolder.h.

◆ toStr() [4/8]

template<typename... MessageTypes>
std::string toStr ( const PacketHolder< MessageTypes... > & holder)
inline

Creates a human-readable representation of the held messages.

Template Parameters
MessageTypesMessage types stored by the packet holder.
Parameters
holderPacket holder to represent.
Returns
Human-readable representation of holder.
Exceptions
Anyexception thrown while allocating or formatting the result.

Definition at line 256 of file PacketHolder.h.

◆ toStr() [5/8]

void toStr ( std::string & str,
ByteSpan span )

Appends a concise description of a byte span.

Parameters
strString to which ByteSpan[size=N] is appended.
spanByte span whose size is described.

◆ toStr() [6/8]

void toStr ( std::string & str,
const ByteSpan spans[],
size_t spansCount )

Appends concise descriptions of a sequence of byte spans.

Parameters
strString to which the bracketed span descriptions are appended.
spansByte spans whose sizes are described, or nullptr when spansCount is zero.
spansCountNumber of elements in spans.

◆ toStr() [7/8]

template<typename MessageType, size_t MaxMessageSize>
void toStr ( std::string & str,
const MessageHolder< MessageType, MaxMessageSize > & holder )
inline

Appends the holder's capacity, prefix, and message to a string.

Template Parameters
MessageTypeMessage type stored by the holder.
MaxMessageSizeMaximum encoded message size, excluding the message prefix.
Parameters
strString to which the representation is appended.
holderHolder to represent.
Exceptions
Anyexception thrown while appending to str or formatting the stored message.

Definition at line 107 of file MessageHolder.h.

◆ toStr() [8/8]

template<typename... MessageTypes>
void toStr ( std::string & str,
const PacketHolder< MessageTypes... > & holder )
inline

Appends a human-readable representation of the held messages.

Template Parameters
MessageTypesMessage types stored by the packet holder.
Parameters
strString to which the representation is appended.
holderPacket holder to represent.
Exceptions
Anyexception thrown while appending to str or formatting a held message.

Definition at line 243 of file PacketHolder.h.

◆ tradeEntry()

auto tradeEntry ( OrderId orderId,
Messaging::Int32 lastQuantity ) -> decltype( details::makeMessageOperation< details::TradeEntryOperation >(orderId, lastQuantity))
inline

Creates a pipeline operation that appends an order-level fill entry.

Parameters
orderIdThe exchange-assigned order identifier.
lastQuantityThe quantity bought or sold on the fill.
Returns
An operation materialized by ONIXS_CMEMDH_TRADE_ENTRY() for a deferred pipeline stage.

Definition at line 203 of file IncrementalRefreshTradeSummary.h.

Variable Documentation

◆ AllowAnyMulticastDestinationEnvironmentVariable

const char* const AllowAnyMulticastDestinationEnvironmentVariable = "ONIXS_CMEMDH_ALLOW_ANY_MULTICAST_DESTINATION"
constexpr

Environment variable authorizing outgoing multicast destinations outside 239.0.0.0/8.

Definition at line 41 of file MulticastSender.h.

◆ DefaultInstrumentDefinitionFutureImpliedMarketDepth

Messaging::Int8 DefaultInstrumentDefinitionFutureImpliedMarketDepth = 2
constexpr

Default implied-book depth used by the test builder.

Definition at line 65 of file InstrumentDefinitionFuture.h.

◆ DefaultInstrumentDefinitionFutureRealMarketDepth

Messaging::Int8 DefaultInstrumentDefinitionFutureRealMarketDepth = 5
constexpr

Default real-book depth used by the test builder.

Definition at line 62 of file InstrumentDefinitionFuture.h.

◆ MulticastEgressEnvironmentVariable

const char* const MulticastEgressEnvironmentVariable = "ONIXS_CMEMDH_ALLOW_MULTICAST_EGRESS"
constexpr

Environment variable authorizing multicast traffic beyond the local host.

Definition at line 38 of file MulticastSender.h.