diff --git a/linux/include/OnixS/CME/MDH/BinaryMessage.h b/linux/include/OnixS/CME/MDH/BinaryMessage.h index c0c8ca870..825627d03 100644 --- a/linux/include/OnixS/CME/MDH/BinaryMessage.h +++ b/linux/include/OnixS/CME/MDH/BinaryMessage.h @@ -240,6 +240,90 @@ protected: ); } + /// Returns value of a field by its + /// offset converted into a decimal. + template + < + class FieldValue + > + Decimal + decimal( + BlockSize offset) const + { + return Decimal + ( + ordinary + + (offset) + ); + } + + /// Provides access to a value of + /// an optional field by its offset. + /// The result is converted into decimal. + /// + /// Returned result indicates whether field is + /// present in given field block and its value + /// was copied into a given parameter-variable. + template + < + class NullValue + > + bool + decimal( + Decimal& value, + BlockSize offset, + const NullValue& null) const + { + typedef + typename + NullValue::Value + FieldValue; + + const FieldValue& fieldValue = + ordinary(offset); + + if (null != fieldValue) + { + value = fieldValue; + + return true; + } + + return false; + } + + /// Provides access to a value of + /// an optional field by its offset. + /// The result is converted into decimal. + /// + /// Returned result indicates whether field is + /// present in given field block and its value + /// was copied into a given parameter-variable. + /// + /// Field may not be present in earlier versions + /// of binary message and thus its value may not be + /// available. For this reason, parameter indicating + /// version of data assumed is required to access + /// the field. + template + < + class NullValue + > + bool + decimal( + Decimal& value, + BlockSize offset, + const NullValue& null, + SchemaVersion since) const + { + return ( + since <= block().version() + && + decimal(value, offset, null) + ); + } + /// Provides access to string field by its offset. /// /// Given function serves as specialization diff --git a/linux/include/OnixS/CME/MDH/BookManagement.h b/linux/include/OnixS/CME/MDH/BookManagement.h index 4e4f93dcf..1190d14d4 100644 --- a/linux/include/OnixS/CME/MDH/BookManagement.h +++ b/linux/include/OnixS/CME/MDH/BookManagement.h @@ -22,7 +22,7 @@ #include -#include +#include #include @@ -46,17 +46,17 @@ throwBadBboThreshold() /// Defines tracking attributes for a particular BBO parameter. ONIXS_CMEMDH_LTWT_CLASS BboThreshold { + // Actual threshold value. + Decimal threshold_; + // Indicates whether threshold must be used. bool enabled_; - // Actual threshold value. - FLOAT threshold_; - public: /// Initializes parameter tracking. BboThreshold() - : enabled_(false) - , threshold_() + : threshold_() + , enabled_(false) { } @@ -73,7 +73,7 @@ public: } /// Defines value threshold for parameter being tracked. - const FLOAT& threshold() const + const Decimal& threshold() const { return threshold_; } @@ -81,7 +81,7 @@ public: /// Defines value threshold for parameter being tracked. void threshold( - const FLOAT& threshold) + const Decimal& threshold) { if (0 > threshold.mantissa()) throwBadBboThreshold(); @@ -95,16 +95,16 @@ public: ONIXS_CMEMDH_EXPORTED bool thresholdExceeded( - const FLOAT&, - const PRICE&, - const PRICE&); + const Decimal&, + const Decimal&, + const Decimal&); /// Checks whether new value exceeds given /// threshold in compare to the old value. ONIXS_CMEMDH_EXPORTED bool thresholdExceeded( - const FLOAT&, + const Decimal&, Int32, Int32); diff --git a/linux/include/OnixS/CME/MDH/Composites.h b/linux/include/OnixS/CME/MDH/Composites.h index 5efb17686..42ec3a177 100644 --- a/linux/include/OnixS/CME/MDH/Composites.h +++ b/linux/include/OnixS/CME/MDH/Composites.h @@ -27,6 +27,48 @@ ONIXS_CMEMDH_NAMESPACE_BEGIN ONIXS_CMEMDH_DATA_PACKING_BEGIN(1) +/// Decimal with constant exponent -9. +typedef +FixedPointDecimal +< + Int64, + IntegralConstant +> +Decimal9; + + +/// Null values definition for optional Decimal9 field. +ONIXS_CMEMDH_LTWT_STRUCT NullDecimal9 +{ + /// Aliases the type whose null value + /// traits are exposed by the given class. + typedef Decimal9 Value; + + /// Null value for optional Mantissa field. + typedef + IntegralConstant + NullMantissa; + + /// Compares encoded data to NULL. + bool + operator ==( + const Value& other) const + { + return ( + NullMantissa() == + other.mantissa() + ); + } + + /// Compares encoded data to NULL. + bool + operator !=( + const Value& other) const + { + return !(*this == other); + } +}; + /// A number representing quantity. /// /// FIX type: Qty. @@ -42,6 +84,10 @@ DecimalQty; /// Null values definition for optional DecimalQty field. ONIXS_CMEMDH_LTWT_STRUCT NullDecimalQty { + /// Aliases the type whose null value + /// traits are exposed by the given class. + typedef DecimalQty Value; + /// Null value for optional Mantissa field. typedef IntegralConstant @@ -50,7 +96,7 @@ ONIXS_CMEMDH_LTWT_STRUCT NullDecimalQty /// Compares encoded data to NULL. bool operator ==( - const DecimalQty& other) const + const Value& other) const { return ( NullMantissa() == @@ -61,7 +107,7 @@ ONIXS_CMEMDH_LTWT_STRUCT NullDecimalQty /// Compares encoded data to NULL. bool operator !=( - const DecimalQty& other) const + const Value& other) const { return !(*this == other); } @@ -118,12 +164,14 @@ public: IntegralConstant NullWeek; - /// Initializes a blank instance. + /// Default constructor. + /// + /// Initializes fields with appropriate null values. MaturityMonthYear() - : year_(NullYear::value()) - , month_(NullMonth::value()) - , day_(NullDay::value()) - , week_(NullWeek::value()) + : year_(NullYear::value()), + month_(NullMonth::value()), + day_(NullDay::value()), + week_(NullWeek::value()) { } @@ -174,10 +222,14 @@ private: /// Null values definition for optional MaturityMonthYear field. ONIXS_CMEMDH_LTWT_STRUCT NullMaturityMonthYear { + /// Aliases the type whose null value + /// traits are exposed by the given class. + typedef MaturityMonthYear Value; + /// Compares encoded data to NULL. bool operator ==( - const MaturityMonthYear& other) const + const Value& other) const { return ( MaturityMonthYear::NullYear() == @@ -188,7 +240,7 @@ ONIXS_CMEMDH_LTWT_STRUCT NullMaturityMonthYear /// Compares encoded data to NULL. bool operator !=( - const MaturityMonthYear& other) const + const Value& other) const { return !(*this == other); } @@ -207,6 +259,10 @@ PRICE; /// Null values definition for optional PRICE field. ONIXS_CMEMDH_LTWT_STRUCT NullPRICE { + /// Aliases the type whose null value + /// traits are exposed by the given class. + typedef PRICE Value; + /// Null value for optional Mantissa field. typedef IntegralConstant @@ -215,7 +271,7 @@ ONIXS_CMEMDH_LTWT_STRUCT NullPRICE /// Compares encoded data to NULL. bool operator ==( - const PRICE& other) const + const Value& other) const { return ( NullMantissa() == @@ -226,7 +282,49 @@ ONIXS_CMEMDH_LTWT_STRUCT NullPRICE /// Compares encoded data to NULL. bool operator !=( - const PRICE& other) const + const Value& other) const + { + return !(*this == other); + } +}; + +/// Price with constant exponent -9. +typedef +FixedPointDecimal +< + Int64, + IntegralConstant +> +PRICE9; + + +/// Null values definition for optional PRICE9 field. +ONIXS_CMEMDH_LTWT_STRUCT NullPRICE9 +{ + /// Aliases the type whose null value + /// traits are exposed by the given class. + typedef PRICE9 Value; + + /// Null value for optional Mantissa field. + typedef + IntegralConstant + NullMantissa; + + /// Compares encoded data to NULL. + bool + operator ==( + const Value& other) const + { + return ( + NullMantissa() == + other.mantissa() + ); + } + + /// Compares encoded data to NULL. + bool + operator !=( + const Value& other) const { return !(*this == other); } @@ -247,10 +345,12 @@ public: /// numInGroup type. typedef UInt8 NumInGroup; - /// Initializes a blank instance. + /// Default constructor. + /// + /// Initializes fields with zero values. GroupSize() - : blockLength_() - , numInGroup_() + : blockLength_(0), + numInGroup_(0) { } @@ -287,10 +387,12 @@ public: /// NumInGroup. typedef UInt8 NumInGroup; - /// Initializes a blank instance. + /// Default constructor. + /// + /// Initializes fields with zero values. GroupSize8Byte() - : blockLength_() - , numInGroup_() + : blockLength_(0), + numInGroup_(0) { } @@ -330,10 +432,12 @@ public: /// FIX type: NumInGroup. typedef UInt16 NumInGroup; - /// Initializes a blank instance. + /// Default constructor. + /// + /// Initializes fields with zero values. GroupSizeEncoding() - : blockLength_() - , numInGroup_() + : blockLength_(0), + numInGroup_(0) { } @@ -378,12 +482,14 @@ public: /// version type. typedef UInt16 Version; - /// Initializes a blank instance. + /// Default constructor. + /// + /// Initializes fields with zero values. MessageHeader() - : blockLength_() - , templateId_() - , schemaId_() - , version_() + : blockLength_(0), + templateId_(0), + schemaId_(0), + version_(0) { } diff --git a/linux/include/OnixS/CME/MDH/ConsolidatedPriceLevel.h b/linux/include/OnixS/CME/MDH/ConsolidatedPriceLevel.h index e8c620735..7a96785d6 100644 --- a/linux/include/OnixS/CME/MDH/ConsolidatedPriceLevel.h +++ b/linux/include/OnixS/CME/MDH/ConsolidatedPriceLevel.h @@ -32,8 +32,7 @@ ONIXS_CMEMDH_NAMESPACE_BEGIN /// level data as well as provides references /// to price level from direct and implied order /// books which comply consolidated price level. -ONIXS_CMEMDH_LTWT_CLASS -ConsolidatedPriceLevel +ONIXS_CMEMDH_LTWT_CLASS ConsolidatedPriceLevel { // Direct price level component. const DirectPriceLevel* direct_; @@ -110,7 +109,7 @@ public: } /// Price component. - const PRICE& price() const + const Decimal& price() const { return ( direct_->exist() diff --git a/linux/include/OnixS/CME/MDH/Decimal.h b/linux/include/OnixS/CME/MDH/Decimal.h index d0509eb20..0e8c792ea 100644 --- a/linux/include/OnixS/CME/MDH/Decimal.h +++ b/linux/include/OnixS/CME/MDH/Decimal.h @@ -96,7 +96,8 @@ public: } /// Re-initializes instance as copy of the other one. - FixedPointDecimal& operator =( + FixedPointDecimal& + operator =( const FixedPointDecimal& other) { mantissa_ = other.mantissa_; @@ -113,8 +114,12 @@ template > bool operator ==( - const FixedPointDecimal& left, - const FixedPointDecimal& right) + const + FixedPointDecimal + & left, + const + FixedPointDecimal + & right) { return left.mantissa() == right.mantissa(); } @@ -127,8 +132,12 @@ template > bool operator !=( - const FixedPointDecimal& left, - const FixedPointDecimal& right) + const + FixedPointDecimal + & left, + const + FixedPointDecimal + & right) { return left.mantissa() != right.mantissa(); } @@ -141,8 +150,12 @@ template > bool operator <( - const FixedPointDecimal& left, - const FixedPointDecimal& right) + const + FixedPointDecimal + & left, + const + FixedPointDecimal + & right) { return left.mantissa() < right.mantissa(); } @@ -155,8 +168,12 @@ template > bool operator >( - const FixedPointDecimal& left, - const FixedPointDecimal& right) + const + FixedPointDecimal + & left, + const + FixedPointDecimal + & right) { return left.mantissa() > right.mantissa(); } @@ -169,8 +186,12 @@ template > bool operator <=( - const FixedPointDecimal& left, - const FixedPointDecimal& right) + const + FixedPointDecimal + & left, + const + FixedPointDecimal + & right) { return left.mantissa() <= right.mantissa(); } @@ -183,23 +204,311 @@ template > bool operator >=( - const FixedPointDecimal& left, - const FixedPointDecimal& right) + const + FixedPointDecimal + & left, + const + FixedPointDecimal + & right) { return left.mantissa() >= right.mantissa(); } // +/// A real number with floating exponent. +ONIXS_CMEMDH_LTWT_CLASS Decimal +{ +public: + /// Aliases mantissa component type. + typedef Int64 Mantissa; + + /// Aliases exponent component type. + typedef Int32 Exponent; + + /// Default (zero) initialization. + Decimal() + : mantissa_(0) + , exponent_(0) + { + } + + /// Explicitly initializes instance from its mantissa value. + Decimal( + Mantissa mantissa, + Exponent exponent) + : mantissa_(mantissa) + , exponent_(exponent) + { + } + + /// Initializes instance as copy of the other one. + Decimal( + const Decimal& other) + : mantissa_(other.mantissa_) + , exponent_(other.exponent_) + { + } + + /// Initializes instance from + /// the fixed point decimal. + template + < + class OtherMantissa, + class OtherExponent + > + Decimal( + const FixedPointDecimal + & other) + : mantissa_(other.mantissa()) + , exponent_(other.exponent()) + { + } + + /// Returns mantissa of given decimal. + Mantissa mantissa() const + { + return mantissa_; + } + + /// Returns exponent of given decimal. + Exponent exponent() const + { + return exponent_; + } + + /// Re-initializes instance as copy of the other one. + Decimal& + operator =( + const Decimal& other) + { + mantissa_ = other.mantissa_; + exponent_ = other.exponent_; + + return *this; + } + + /// Re-initializes instance as a + /// copy of the fixed point value. + template + < + class OtherMantissa, + class OtherExponent + > + Decimal& + operator =( + const FixedPointDecimal + & other) + { + mantissa_ = other.mantissa(); + exponent_ = other.exponent(); + + return *this; + } + +private: + Mantissa mantissa_; + Exponent exponent_; +}; + +// + +ONIXS_CMEMDH_EXPORTED +bool +operator ==( + const Decimal& left, + const Decimal& right); + +ONIXS_CMEMDH_EXPORTED +bool +operator !=( + const Decimal& left, + const Decimal& right); + +template +< + class Mantissa, + class Exponent +> +inline +bool +operator ==( + const Decimal& left, + const + FixedPointDecimal + & right) +{ + return (left == Decimal(right)); +} + +template +< + class Mantissa, + class Exponent +> +inline +bool +operator ==( + const + FixedPointDecimal + & left, + const Decimal& right) +{ + return (Decimal(left) == right); +} + +template +< + class Mantissa, + class Exponent +> +inline +bool +operator !=( + const Decimal& left, + const + FixedPointDecimal + & right) +{ + return (left != Decimal(right)); +} + +template +< + class Mantissa, + class Exponent +> +inline +bool +operator !=( + const + FixedPointDecimal + & left, + const Decimal& right) +{ + return (Decimal(left) != right); +} + +ONIXS_CMEMDH_EXPORTED +bool +operator <( + const Decimal& left, + const Decimal& right); + +ONIXS_CMEMDH_EXPORTED +bool +operator <=( + const Decimal& left, + const Decimal& right); + +inline +bool +operator >( + const Decimal& left, + const Decimal& right) +{ + return (right < left); +} + +template +< + class Mantissa, + class Exponent +> +inline +bool +operator <( + const Decimal& left, + const + FixedPointDecimal + & right) +{ + return (left < Decimal(right)); +} + +template +< + class Mantissa, + class Exponent +> +inline +bool +operator <( + const + FixedPointDecimal + & left, + const Decimal& right) +{ + return (Decimal(left) < right); +} + +template +< + class Mantissa, + class Exponent +> +inline +bool +operator >( + const Decimal& left, + const + FixedPointDecimal + & right) +{ + return (left > Decimal(right)); +} + +template +< + class Mantissa, + class Exponent +> +inline +bool +operator >( + const + FixedPointDecimal + & left, + const Decimal& right) +{ + return (Decimal(left) > right); +} + /// Serializes decimal presented by /// mantissa and exponent into a string. ONIXS_CMEMDH_EXPORTED void decimalToStr( std::string&, - Int64, + Int64, Int32); +inline +void +toStr( + std::string& str, + const Decimal& number) +{ + decimalToStr + ( + str, + number.mantissa(), + number.exponent() + ); +} + +inline +std::string +toStr( + const Decimal& number) +{ + std::string str; + + toStr(str, number); + + return str; +} + /// Serializes fixed-point decimal into a string. template < @@ -214,10 +523,9 @@ toStr( FixedPointDecimal & number) { - decimalToStr( + toStr( str, - number.mantissa(), - static_cast(number.exponent())); + Decimal(number)); } /// Serializes fixed-point decimal into a string. diff --git a/linux/include/OnixS/CME/MDH/DirectPriceLevel.h b/linux/include/OnixS/CME/MDH/DirectPriceLevel.h index 284f5a194..b75606c40 100644 --- a/linux/include/OnixS/CME/MDH/DirectPriceLevel.h +++ b/linux/include/OnixS/CME/MDH/DirectPriceLevel.h @@ -54,7 +54,7 @@ public: /// Initializes defined level /// according to specified attributes. DirectPriceLevel( - const PRICE& price, + const Decimal& price, Int32 qty, Int32 ordersQty) : ImpliedPriceLevel(price, qty) diff --git a/linux/include/OnixS/CME/MDH/FeedSettings.h b/linux/include/OnixS/CME/MDH/FeedSettings.h index 65e723843..dd21acc76 100644 --- a/linux/include/OnixS/CME/MDH/FeedSettings.h +++ b/linux/include/OnixS/CME/MDH/FeedSettings.h @@ -26,6 +26,112 @@ ONIXS_CMEMDH_NAMESPACE_BEGIN +/// Collection of parameters common for all types of feeds. +template +< + typename Layout +> +class FeedSettingsBase +{ + Layout layout_; + UInt32 heartbeatInterval_; + + std::string feedANetworkInterfaces_; + std::string feedBNetworkInterfaces_; + +protected: + /// Initializes instance with default values. + FeedSettingsBase( + Layout layout, + UInt32 heartbeat) + : layout_(layout) + , heartbeatInterval_(heartbeat) + { + } + +public: + /// Defines feed layout for a feed group. + Layout layout() const + { + return layout_; + } + + /// Defines feed layout for recovery feed group. + void layout(Layout value) + { + layout_ = value; + } + + /// Specifies maximal time interval between two + /// network packets. If no data is received during + /// specified time frame, corresponding event is raised + /// and further behavior is defined by feed layout. + /// + /// Interval is measured in seconds. + UInt32 heartbeatInterval() const + { + return heartbeatInterval_; + } + + /// Specifies maximal time interval between two packets. + void heartbeatInterval(UInt32 value) + { + heartbeatInterval_ = value; + } + + /// Specifies one or more network interfaces to use for + /// "A" feeds while joining the multicast group; use + /// semi-colon delimited list if more than one. + /// + /// @note On Linux the network interface is specified + /// by its name, on Windows - by IP address. + /// + /// @note If the value is empty or absent then the + /// Settings::networkInterface value is used. + const + std::string& + feedANetworkInterfaces() const + { + return feedANetworkInterfaces_; + } + + /// Specifies one or more network interfaces to use for + /// "A" feeds while joining the multicast group; use + /// semi-colon delimited list if more than one. + void + feedANetworkInterfaces( + const std::string& interfaces) + { + feedANetworkInterfaces_ = interfaces; + } + + /// Specifies one or more network interfaces to use for "B" + /// feeds while joining the multicast group; use semi-colon + /// delimited list if more than one. + /// + /// @note On Linux the network interface is specified by + /// its name, on Windows - by IP address. + /// + /// @note If the value is empty or absent then the + /// Settings::networkInterface value is used. + const + std::string& + feedBNetworkInterfaces() const + { + return feedBNetworkInterfaces_; + } + + /// Specifies one or more network interfaces to use for + /// "B" feeds while joining the multicast group; use + /// semi-colon delimited list if more than one. + void + feedBNetworkInterfaces( + const std::string& interfaces) + { + feedBNetworkInterfaces_ = interfaces; + } +}; + /// Defines feed layout alternates available for /// recovery feeds like instrument and snapshot. ONIXS_CMEMDH_LTWT_STRUCT RecoveryFeedLayout @@ -82,54 +188,26 @@ toStr( } /// Collection of parameters affecting recovery feeds behavior. -ONIXS_CMEMDH_LTWT_CLASS RecoveryFeedSettings +ONIXS_CMEMDH_LTWT_CLASS +RecoveryFeedSettings +: public FeedSettingsBase + < + RecoveryFeedLayout::Enum + > { - RecoveryFeedLayout::Enum layout_; - UInt32 heartbeatInterval_; - public: /// Initializes instance with default values. + /// + /// By default, feed A is used as the primary source + /// of market recovery data with fail-over to the feed B. + /// Heartbeats are expected within 30 seconds periodicy. RecoveryFeedSettings() - : layout_( - RecoveryFeedLayout:: - FeedAWithFailoverToFeedB) - , heartbeatInterval_(30) + : FeedSettingsBase( + RecoveryFeedLayout:: + FeedAWithFailoverToFeedB, + 30) { } - - /// Defines feed layout for recovery feed group. - /// - /// @note By default, feed A is used as primary - /// source for market data with failover to feed B. - RecoveryFeedLayout::Enum layout() const - { - return layout_; - } - - /// Defines feed layout for recovery feed group. - void layout(RecoveryFeedLayout::Enum value) - { - layout_ = value; - } - - /// Specifies maximal time interval between two - /// network packets. If no data is received during - /// specified time frame, corresponding event is raised - /// and further behavior is defined by feed layout. - /// - /// Interval is measured in seconds. - /// - /// @note The default value is '30'. - UInt32 heartbeatInterval() const - { - return heartbeatInterval_; - } - - /// Specifies maximal time interval between two packets. - void heartbeatInterval(UInt32 value) - { - heartbeatInterval_ = value; - } }; /// Serializes feed settings into string. @@ -211,59 +289,31 @@ toStr( } /// Collection of parameters affecting real-time feeds behavior. -ONIXS_CMEMDH_LTWT_CLASS RealtimeFeedSettings +ONIXS_CMEMDH_LTWT_CLASS +RealtimeFeedSettings +: public FeedSettingsBase + < + RealtimeFeedLayout::Enum + > { - RealtimeFeedLayout::Enum layout_; - UInt32 heartbeatInterval_; - UInt32 outOfOrderPacketMaxInterval_; UInt32 lostPacketWaitTime_; public: /// Initializes instance with default values. + /// + /// By default, arbitrage between feeds A and B is done. + /// Heartbeats are expected within 30 seconds periodicy. RealtimeFeedSettings() - : layout_( + : FeedSettingsBase( RealtimeFeedLayout:: - BothFeedsWithArbitrage) - , heartbeatInterval_(30) + BothFeedsWithArbitrage, + 30) , outOfOrderPacketMaxInterval_(3) , lostPacketWaitTime_(100000) { } - /// Defines feed layout for real-time feed group. - /// - /// @note By default, arbitrage between feeds A and B is done. - RealtimeFeedLayout::Enum layout() const - { - return layout_; - } - - /// Defines feed layout for real-time feed group. - void layout(RealtimeFeedLayout::Enum value) - { - layout_ = value; - } - - /// Specifies maximal time interval between two - /// network packets. If no data is received during - /// specified time frame, corresponding event is raised - /// and further behavior is defined by feed layout. - /// - /// Interval is measured in seconds. - /// - /// @note The default value is '30'. - UInt32 heartbeatInterval() const - { - return heartbeatInterval_; - } - - /// Specifies maximal time interval between two network packets. - void heartbeatInterval(UInt32 value) - { - heartbeatInterval_ = value; - } - /// Defines value of threshold used by Handler to differ /// out-of-order packets from gaps. /// @@ -361,9 +411,6 @@ ONIXS_CMEMDH_LTWT_CLASS FeedSettings { std::string connectivityConfigurationFile_; - std::string feedANetworkInterfaces_; - std::string feedBNetworkInterfaces_; - UInt16 maxPacketSize_; RecoveryFeedSettings instrumentFeeds_; @@ -395,22 +442,6 @@ public: connectivityConfigurationFile_ = configurationFile; } - /// Specifies one or more network interfaces to use for - /// "A" feeds while joining the multicast group; use - /// semi-colon delimited list if more than one. - /// - /// @note On Linux the network interface is specified - /// by its name, on Windows - by IP address. - /// - /// @note If the value is empty or absent then the - /// Settings::networkInterface value is used. - const - std::string& - feedANetworkInterfaces() const - { - return feedANetworkInterfaces_; - } - /// Specifies one or more network interfaces to use for /// "A" feeds while joining the multicast group; use /// semi-colon delimited list if more than one. @@ -418,23 +449,21 @@ public: feedANetworkInterfaces( const std::string& interfaces) { - feedANetworkInterfaces_ = interfaces; - } + instrumentFeeds_. + feedANetworkInterfaces + (interfaces); - /// Specifies one or more network interfaces to use for "B" - /// feeds while joining the multicast group; use semi-colon - /// delimited list if more than one. - /// - /// @note On Linux the network interface is specified by - /// its name, on Windows - by IP address. - /// - /// @note If the value is empty or absent then the - /// Settings::networkInterface value is used. - const - std::string& - feedBNetworkInterfaces() const - { - return feedBNetworkInterfaces_; + incrementalFeeds_. + feedANetworkInterfaces + (interfaces); + + snapshotFeeds_. + feedANetworkInterfaces + (interfaces); + + mboSnapshotFeeds_. + feedANetworkInterfaces + (interfaces); } /// Specifies one or more network interfaces to use for @@ -444,7 +473,21 @@ public: feedBNetworkInterfaces( const std::string& interfaces) { - feedBNetworkInterfaces_ = interfaces; + instrumentFeeds_. + feedBNetworkInterfaces + (interfaces); + + incrementalFeeds_. + feedBNetworkInterfaces + (interfaces); + + snapshotFeeds_. + feedBNetworkInterfaces + (interfaces); + + mboSnapshotFeeds_. + feedBNetworkInterfaces + (interfaces); } /// Max size for network packet transmitted by MDP. diff --git a/linux/include/OnixS/CME/MDH/Fields.h b/linux/include/OnixS/CME/MDH/Fields.h index edbf90aad..56044e655 100644 --- a/linux/include/OnixS/CME/MDH/Fields.h +++ b/linux/include/OnixS/CME/MDH/Fields.h @@ -691,6 +691,18 @@ public: return 0 != (bits_ & 0x80000); } + /// Indicates whether TriangulationEligible bit is set. + bool triangulationEligible() const + { + return 0 != (bits_ & 0x100000); + } + + /// Indicates whether VariableCabEligible bit is set. + bool variableCabEligible() const + { + return 0 != (bits_ & 0x200000); + } + /// Returns elements as they packed in the set. inline Bits bits() const { @@ -773,8 +785,8 @@ public: /// are used to indicate flag presence. typedef UInt8 Bits; - /// Indicates whether Final bit is set. - bool final() const + /// Indicates whether FinalDaily bit is set. + bool finalDaily() const { return 0 != (bits_ & 0x1); } diff --git a/linux/include/OnixS/CME/MDH/Handler.h b/linux/include/OnixS/CME/MDH/Handler.h index 1963510f2..3d004102d 100644 --- a/linux/include/OnixS/CME/MDH/Handler.h +++ b/linux/include/OnixS/CME/MDH/Handler.h @@ -55,7 +55,7 @@ ONIXS_CMEMDH_EXPORTED_CLASS Handler public: /// Initializes instance according to given settings. - Handler( + explicit Handler( const HandlerSettings&); /// Finalizes instance usage. diff --git a/linux/include/OnixS/CME/MDH/ImpliedPriceLevel.h b/linux/include/OnixS/CME/MDH/ImpliedPriceLevel.h index 385900ce7..af7ac4692 100644 --- a/linux/include/OnixS/CME/MDH/ImpliedPriceLevel.h +++ b/linux/include/OnixS/CME/MDH/ImpliedPriceLevel.h @@ -22,8 +22,7 @@ #include -#include -#include +#include ONIXS_CMEMDH_NAMESPACE_BEGIN @@ -34,7 +33,7 @@ ONIXS_CMEMDH_LTWT_CLASS ImpliedPriceLevel bool exist_; // Price value for the level. - PRICE price_; + Decimal price_; // Quantity component. Int32 qty_; @@ -60,7 +59,7 @@ public: /// Initializes defined level /// according to specified attributes. ImpliedPriceLevel( - const PRICE& price, Int32 qty) + const Decimal& price, Int32 qty) : exist_(true), price_(price), qty_(qty) { } @@ -90,13 +89,13 @@ public: /// may be NULL in a valid (existent) price level. /// /// @see NullPRICE. - const PRICE& price() const + const Decimal& price() const { return price_; } /// Price value. - PRICE& price() + Decimal& price() { return price_; } diff --git a/linux/include/OnixS/CME/MDH/MarketDataListener.h b/linux/include/OnixS/CME/MDH/MarketDataListener.h index 1e5fe45c5..808bd2f58 100644 --- a/linux/include/OnixS/CME/MDH/MarketDataListener.h +++ b/linux/include/OnixS/CME/MDH/MarketDataListener.h @@ -77,118 +77,178 @@ private: }; /// MessageArgs template instantiation -/// for ChannelReset message type. +/// for InstrumentDefinitionFuture27 message type. typedef -MessageArgs -ChannelResetArgs; +MessageArgs +InstrumentDefinitionFuture27Args; /// MessageArgs template instantiation -/// for AdminHeartbeat message type. +/// for InstrumentDefinitionSpread29 message type. typedef -MessageArgs -AdminHeartbeatArgs; +MessageArgs +InstrumentDefinitionSpread29Args; /// MessageArgs template instantiation -/// for AdminLogin message type. +/// for IncrementalRefreshBook32 message type. typedef -MessageArgs -AdminLoginArgs; +MessageArgs +IncrementalRefreshBook32Args; /// MessageArgs template instantiation -/// for AdminLogout message type. +/// for IncrementalRefreshDailyStatistics33 message type. typedef -MessageArgs -AdminLogoutArgs; +MessageArgs +IncrementalRefreshDailyStatistics33Args; /// MessageArgs template instantiation -/// for InstrumentDefinitionFuture message type. +/// for IncrementalRefreshLimitsBanding34 message type. typedef -MessageArgs -InstrumentDefinitionFutureArgs; +MessageArgs +IncrementalRefreshLimitsBanding34Args; /// MessageArgs template instantiation -/// for InstrumentDefinitionSpread message type. +/// for IncrementalRefreshSessionStatistics35 message type. typedef -MessageArgs -InstrumentDefinitionSpreadArgs; +MessageArgs +IncrementalRefreshSessionStatistics35Args; /// MessageArgs template instantiation -/// for SecurityStatus message type. +/// for SnapshotFullRefresh38 message type. typedef -MessageArgs -SecurityStatusArgs; +MessageArgs +SnapshotFullRefresh38Args; /// MessageArgs template instantiation -/// for IncrementalRefreshBook message type. +/// for InstrumentDefinitionOption41 message type. typedef -MessageArgs -IncrementalRefreshBookArgs; +MessageArgs +InstrumentDefinitionOption41Args; /// MessageArgs template instantiation -/// for IncrementalRefreshDailyStatistics message type. +/// for IncrementalRefreshTradeSummary42 message type. typedef -MessageArgs -IncrementalRefreshDailyStatisticsArgs; +MessageArgs +IncrementalRefreshTradeSummary42Args; /// MessageArgs template instantiation -/// for IncrementalRefreshLimitsBanding message type. +/// for IncrementalRefreshOrderBook43 message type. typedef -MessageArgs -IncrementalRefreshLimitsBandingArgs; +MessageArgs +IncrementalRefreshOrderBook43Args; /// MessageArgs template instantiation -/// for IncrementalRefreshSessionStatistics message type. +/// for SnapshotFullRefreshOrderBook44 message type. typedef -MessageArgs -IncrementalRefreshSessionStatisticsArgs; +MessageArgs +SnapshotFullRefreshOrderBook44Args; /// MessageArgs template instantiation -/// for IncrementalRefreshTrade message type. +/// for ChannelReset4 message type. typedef -MessageArgs -IncrementalRefreshTradeArgs; +MessageArgs +ChannelReset4Args; /// MessageArgs template instantiation -/// for IncrementalRefreshVolume message type. +/// for AdminHeartbeat12 message type. typedef -MessageArgs -IncrementalRefreshVolumeArgs; +MessageArgs +AdminHeartbeat12Args; /// MessageArgs template instantiation -/// for SnapshotFullRefresh message type. +/// for AdminLogin15 message type. typedef -MessageArgs -SnapshotFullRefreshArgs; +MessageArgs +AdminLogin15Args; /// MessageArgs template instantiation -/// for QuoteRequest message type. +/// for AdminLogout16 message type. typedef -MessageArgs -QuoteRequestArgs; +MessageArgs +AdminLogout16Args; /// MessageArgs template instantiation -/// for InstrumentDefinitionOption message type. +/// for InstrumentDefinitionFuture54 message type. typedef -MessageArgs -InstrumentDefinitionOptionArgs; +MessageArgs +InstrumentDefinitionFuture54Args; /// MessageArgs template instantiation -/// for IncrementalRefreshTradeSummary message type. +/// for InstrumentDefinitionSpread56 message type. typedef -MessageArgs -IncrementalRefreshTradeSummaryArgs; +MessageArgs +InstrumentDefinitionSpread56Args; /// MessageArgs template instantiation -/// for IncrementalRefreshOrderBook message type. +/// for SecurityStatus30 message type. typedef -MessageArgs -IncrementalRefreshOrderBookArgs; +MessageArgs +SecurityStatus30Args; /// MessageArgs template instantiation -/// for SnapshotFullRefreshOrderBook message type. +/// for IncrementalRefreshBook46 message type. typedef -MessageArgs -SnapshotFullRefreshOrderBookArgs; +MessageArgs +IncrementalRefreshBook46Args; + +/// MessageArgs template instantiation +/// for IncrementalRefreshDailyStatistics49 message type. +typedef +MessageArgs +IncrementalRefreshDailyStatistics49Args; + +/// MessageArgs template instantiation +/// for IncrementalRefreshLimitsBanding50 message type. +typedef +MessageArgs +IncrementalRefreshLimitsBanding50Args; + +/// MessageArgs template instantiation +/// for IncrementalRefreshSessionStatistics51 message type. +typedef +MessageArgs +IncrementalRefreshSessionStatistics51Args; + +/// MessageArgs template instantiation +/// for IncrementalRefreshVolume37 message type. +typedef +MessageArgs +IncrementalRefreshVolume37Args; + +/// MessageArgs template instantiation +/// for SnapshotFullRefresh52 message type. +typedef +MessageArgs +SnapshotFullRefresh52Args; + +/// MessageArgs template instantiation +/// for QuoteRequest39 message type. +typedef +MessageArgs +QuoteRequest39Args; + +/// MessageArgs template instantiation +/// for InstrumentDefinitionOption55 message type. +typedef +MessageArgs +InstrumentDefinitionOption55Args; + +/// MessageArgs template instantiation +/// for IncrementalRefreshTradeSummary48 message type. +typedef +MessageArgs +IncrementalRefreshTradeSummary48Args; + +/// MessageArgs template instantiation +/// for IncrementalRefreshOrderBook47 message type. +typedef +MessageArgs +IncrementalRefreshOrderBook47Args; + +/// MessageArgs template instantiation +/// for SnapshotFullRefreshOrderBook53 message type. +typedef +MessageArgs +SnapshotFullRefreshOrderBook53Args; /// Callbacks invoked by Handler during market data /// processing to reflect various stages of processing. @@ -214,382 +274,582 @@ MarketDataListener } /// Invoked when processing of - /// ChannelReset message has begun. + /// InstrumentDefinitionFuture27 message has begun. virtual void onMessage( Handler&, - const ChannelResetArgs&) + const InstrumentDefinitionFuture27Args&) { } /// Invoked when processing of message of - /// ChannelReset message has ended. + /// InstrumentDefinitionFuture27 message has ended. virtual void onEndOfMessage( Handler&, - const ChannelResetArgs&) + const InstrumentDefinitionFuture27Args&) { } /// Invoked when processing of - /// AdminHeartbeat message has begun. + /// InstrumentDefinitionSpread29 message has begun. virtual void onMessage( Handler&, - const AdminHeartbeatArgs&) + const InstrumentDefinitionSpread29Args&) { } /// Invoked when processing of message of - /// AdminHeartbeat message has ended. + /// InstrumentDefinitionSpread29 message has ended. virtual void onEndOfMessage( Handler&, - const AdminHeartbeatArgs&) + const InstrumentDefinitionSpread29Args&) { } /// Invoked when processing of - /// AdminLogin message has begun. + /// IncrementalRefreshBook32 message has begun. virtual void onMessage( Handler&, - const AdminLoginArgs&) + const IncrementalRefreshBook32Args&) { } /// Invoked when processing of message of - /// AdminLogin message has ended. + /// IncrementalRefreshBook32 message has ended. virtual void onEndOfMessage( Handler&, - const AdminLoginArgs&) + const IncrementalRefreshBook32Args&) { } /// Invoked when processing of - /// AdminLogout message has begun. + /// IncrementalRefreshDailyStatistics33 message has begun. virtual void onMessage( Handler&, - const AdminLogoutArgs&) + const IncrementalRefreshDailyStatistics33Args&) { } /// Invoked when processing of message of - /// AdminLogout message has ended. + /// IncrementalRefreshDailyStatistics33 message has ended. virtual void onEndOfMessage( Handler&, - const AdminLogoutArgs&) + const IncrementalRefreshDailyStatistics33Args&) { } /// Invoked when processing of - /// InstrumentDefinitionFuture message has begun. + /// IncrementalRefreshLimitsBanding34 message has begun. virtual void onMessage( Handler&, - const InstrumentDefinitionFutureArgs&) + const IncrementalRefreshLimitsBanding34Args&) { } /// Invoked when processing of message of - /// InstrumentDefinitionFuture message has ended. + /// IncrementalRefreshLimitsBanding34 message has ended. virtual void onEndOfMessage( Handler&, - const InstrumentDefinitionFutureArgs&) + const IncrementalRefreshLimitsBanding34Args&) { } /// Invoked when processing of - /// InstrumentDefinitionSpread message has begun. + /// IncrementalRefreshSessionStatistics35 message has begun. virtual void onMessage( Handler&, - const InstrumentDefinitionSpreadArgs&) + const IncrementalRefreshSessionStatistics35Args&) { } /// Invoked when processing of message of - /// InstrumentDefinitionSpread message has ended. + /// IncrementalRefreshSessionStatistics35 message has ended. virtual void onEndOfMessage( Handler&, - const InstrumentDefinitionSpreadArgs&) + const IncrementalRefreshSessionStatistics35Args&) { } /// Invoked when processing of - /// SecurityStatus message has begun. + /// SnapshotFullRefresh38 message has begun. virtual void onMessage( Handler&, - const SecurityStatusArgs&) + const SnapshotFullRefresh38Args&) { } /// Invoked when processing of message of - /// SecurityStatus message has ended. + /// SnapshotFullRefresh38 message has ended. virtual void onEndOfMessage( Handler&, - const SecurityStatusArgs&) + const SnapshotFullRefresh38Args&) { } /// Invoked when processing of - /// IncrementalRefreshBook message has begun. + /// InstrumentDefinitionOption41 message has begun. virtual void onMessage( Handler&, - const IncrementalRefreshBookArgs&) + const InstrumentDefinitionOption41Args&) { } /// Invoked when processing of message of - /// IncrementalRefreshBook message has ended. + /// InstrumentDefinitionOption41 message has ended. virtual void onEndOfMessage( Handler&, - const IncrementalRefreshBookArgs&) + const InstrumentDefinitionOption41Args&) { } /// Invoked when processing of - /// IncrementalRefreshDailyStatistics message has begun. + /// IncrementalRefreshTradeSummary42 message has begun. virtual void onMessage( Handler&, - const IncrementalRefreshDailyStatisticsArgs&) + const IncrementalRefreshTradeSummary42Args&) { } /// Invoked when processing of message of - /// IncrementalRefreshDailyStatistics message has ended. + /// IncrementalRefreshTradeSummary42 message has ended. virtual void onEndOfMessage( Handler&, - const IncrementalRefreshDailyStatisticsArgs&) + const IncrementalRefreshTradeSummary42Args&) { } /// Invoked when processing of - /// IncrementalRefreshLimitsBanding message has begun. + /// IncrementalRefreshOrderBook43 message has begun. virtual void onMessage( Handler&, - const IncrementalRefreshLimitsBandingArgs&) + const IncrementalRefreshOrderBook43Args&) { } /// Invoked when processing of message of - /// IncrementalRefreshLimitsBanding message has ended. + /// IncrementalRefreshOrderBook43 message has ended. virtual void onEndOfMessage( Handler&, - const IncrementalRefreshLimitsBandingArgs&) + const IncrementalRefreshOrderBook43Args&) { } /// Invoked when processing of - /// IncrementalRefreshSessionStatistics message has begun. + /// SnapshotFullRefreshOrderBook44 message has begun. virtual void onMessage( Handler&, - const IncrementalRefreshSessionStatisticsArgs&) + const SnapshotFullRefreshOrderBook44Args&) { } /// Invoked when processing of message of - /// IncrementalRefreshSessionStatistics message has ended. + /// SnapshotFullRefreshOrderBook44 message has ended. virtual void onEndOfMessage( Handler&, - const IncrementalRefreshSessionStatisticsArgs&) + const SnapshotFullRefreshOrderBook44Args&) { } /// Invoked when processing of - /// IncrementalRefreshTrade message has begun. + /// ChannelReset4 message has begun. virtual void onMessage( Handler&, - const IncrementalRefreshTradeArgs&) + const ChannelReset4Args&) { } /// Invoked when processing of message of - /// IncrementalRefreshTrade message has ended. + /// ChannelReset4 message has ended. virtual void onEndOfMessage( Handler&, - const IncrementalRefreshTradeArgs&) + const ChannelReset4Args&) { } /// Invoked when processing of - /// IncrementalRefreshVolume message has begun. + /// AdminHeartbeat12 message has begun. virtual void onMessage( Handler&, - const IncrementalRefreshVolumeArgs&) + const AdminHeartbeat12Args&) { } /// Invoked when processing of message of - /// IncrementalRefreshVolume message has ended. + /// AdminHeartbeat12 message has ended. virtual void onEndOfMessage( Handler&, - const IncrementalRefreshVolumeArgs&) + const AdminHeartbeat12Args&) { } /// Invoked when processing of - /// SnapshotFullRefresh message has begun. + /// AdminLogin15 message has begun. virtual void onMessage( Handler&, - const SnapshotFullRefreshArgs&) + const AdminLogin15Args&) { } /// Invoked when processing of message of - /// SnapshotFullRefresh message has ended. + /// AdminLogin15 message has ended. virtual void onEndOfMessage( Handler&, - const SnapshotFullRefreshArgs&) + const AdminLogin15Args&) { } /// Invoked when processing of - /// QuoteRequest message has begun. + /// AdminLogout16 message has begun. virtual void onMessage( Handler&, - const QuoteRequestArgs&) + const AdminLogout16Args&) { } /// Invoked when processing of message of - /// QuoteRequest message has ended. + /// AdminLogout16 message has ended. virtual void onEndOfMessage( Handler&, - const QuoteRequestArgs&) + const AdminLogout16Args&) { } /// Invoked when processing of - /// InstrumentDefinitionOption message has begun. + /// InstrumentDefinitionFuture54 message has begun. virtual void onMessage( Handler&, - const InstrumentDefinitionOptionArgs&) + const InstrumentDefinitionFuture54Args&) { } /// Invoked when processing of message of - /// InstrumentDefinitionOption message has ended. + /// InstrumentDefinitionFuture54 message has ended. virtual void onEndOfMessage( Handler&, - const InstrumentDefinitionOptionArgs&) + const InstrumentDefinitionFuture54Args&) { } /// Invoked when processing of - /// IncrementalRefreshTradeSummary message has begun. + /// InstrumentDefinitionSpread56 message has begun. virtual void onMessage( Handler&, - const IncrementalRefreshTradeSummaryArgs&) + const InstrumentDefinitionSpread56Args&) { } /// Invoked when processing of message of - /// IncrementalRefreshTradeSummary message has ended. + /// InstrumentDefinitionSpread56 message has ended. virtual void onEndOfMessage( Handler&, - const IncrementalRefreshTradeSummaryArgs&) + const InstrumentDefinitionSpread56Args&) { } /// Invoked when processing of - /// IncrementalRefreshOrderBook message has begun. + /// SecurityStatus30 message has begun. virtual void onMessage( Handler&, - const IncrementalRefreshOrderBookArgs&) + const SecurityStatus30Args&) { } /// Invoked when processing of message of - /// IncrementalRefreshOrderBook message has ended. + /// SecurityStatus30 message has ended. virtual void onEndOfMessage( Handler&, - const IncrementalRefreshOrderBookArgs&) + const SecurityStatus30Args&) { } /// Invoked when processing of - /// SnapshotFullRefreshOrderBook message has begun. + /// IncrementalRefreshBook46 message has begun. virtual void onMessage( Handler&, - const SnapshotFullRefreshOrderBookArgs&) + const IncrementalRefreshBook46Args&) { } /// Invoked when processing of message of - /// SnapshotFullRefreshOrderBook message has ended. + /// IncrementalRefreshBook46 message has ended. virtual void onEndOfMessage( Handler&, - const SnapshotFullRefreshOrderBookArgs&) + const IncrementalRefreshBook46Args&) + { + } + + /// Invoked when processing of + /// IncrementalRefreshDailyStatistics49 message has begun. + virtual + void + onMessage( + Handler&, + const IncrementalRefreshDailyStatistics49Args&) + { + } + + /// Invoked when processing of message of + /// IncrementalRefreshDailyStatistics49 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const IncrementalRefreshDailyStatistics49Args&) + { + } + + /// Invoked when processing of + /// IncrementalRefreshLimitsBanding50 message has begun. + virtual + void + onMessage( + Handler&, + const IncrementalRefreshLimitsBanding50Args&) + { + } + + /// Invoked when processing of message of + /// IncrementalRefreshLimitsBanding50 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const IncrementalRefreshLimitsBanding50Args&) + { + } + + /// Invoked when processing of + /// IncrementalRefreshSessionStatistics51 message has begun. + virtual + void + onMessage( + Handler&, + const IncrementalRefreshSessionStatistics51Args&) + { + } + + /// Invoked when processing of message of + /// IncrementalRefreshSessionStatistics51 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const IncrementalRefreshSessionStatistics51Args&) + { + } + + /// Invoked when processing of + /// IncrementalRefreshVolume37 message has begun. + virtual + void + onMessage( + Handler&, + const IncrementalRefreshVolume37Args&) + { + } + + /// Invoked when processing of message of + /// IncrementalRefreshVolume37 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const IncrementalRefreshVolume37Args&) + { + } + + /// Invoked when processing of + /// SnapshotFullRefresh52 message has begun. + virtual + void + onMessage( + Handler&, + const SnapshotFullRefresh52Args&) + { + } + + /// Invoked when processing of message of + /// SnapshotFullRefresh52 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const SnapshotFullRefresh52Args&) + { + } + + /// Invoked when processing of + /// QuoteRequest39 message has begun. + virtual + void + onMessage( + Handler&, + const QuoteRequest39Args&) + { + } + + /// Invoked when processing of message of + /// QuoteRequest39 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const QuoteRequest39Args&) + { + } + + /// Invoked when processing of + /// InstrumentDefinitionOption55 message has begun. + virtual + void + onMessage( + Handler&, + const InstrumentDefinitionOption55Args&) + { + } + + /// Invoked when processing of message of + /// InstrumentDefinitionOption55 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const InstrumentDefinitionOption55Args&) + { + } + + /// Invoked when processing of + /// IncrementalRefreshTradeSummary48 message has begun. + virtual + void + onMessage( + Handler&, + const IncrementalRefreshTradeSummary48Args&) + { + } + + /// Invoked when processing of message of + /// IncrementalRefreshTradeSummary48 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const IncrementalRefreshTradeSummary48Args&) + { + } + + /// Invoked when processing of + /// IncrementalRefreshOrderBook47 message has begun. + virtual + void + onMessage( + Handler&, + const IncrementalRefreshOrderBook47Args&) + { + } + + /// Invoked when processing of message of + /// IncrementalRefreshOrderBook47 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const IncrementalRefreshOrderBook47Args&) + { + } + + /// Invoked when processing of + /// SnapshotFullRefreshOrderBook53 message has begun. + virtual + void + onMessage( + Handler&, + const SnapshotFullRefreshOrderBook53Args&) + { + } + + /// Invoked when processing of message of + /// SnapshotFullRefreshOrderBook53 message has ended. + virtual + void + onEndOfMessage( + Handler&, + const SnapshotFullRefreshOrderBook53Args&) { } diff --git a/linux/include/OnixS/CME/MDH/MemoryPool.h b/linux/include/OnixS/CME/MDH/MemoryPool.h index 00aed8408..fc964afde 100644 --- a/linux/include/OnixS/CME/MDH/MemoryPool.h +++ b/linux/include/OnixS/CME/MDH/MemoryPool.h @@ -197,7 +197,8 @@ public: destroy( pointer obj) { - obj->~value_type(); + obj->~value_type(); + (void) obj; } size_type max_size() const diff --git a/linux/include/OnixS/CME/MDH/MessageSupplements.h b/linux/include/OnixS/CME/MDH/MessageSupplements.h index ba32acad6..9f88b02f5 100644 --- a/linux/include/OnixS/CME/MDH/MessageSupplements.h +++ b/linux/include/OnixS/CME/MDH/MessageSupplements.h @@ -29,23 +29,21 @@ ONIXS_CMEMDH_NAMESPACE_BEGIN /// Data for MBO book atomic update gathered /// from IncrementalRefreshBook message containing /// atomic updates for all types of books. -ONIXS_CMEMDH_LTWT_CLASS +template +< + class Order, + class Price +> +class IncrementalRefreshBookCombinedEntry { + Order order_; + Price price_; + public: - /// Aliases order details for given update. - typedef - IncrementalRefreshBook::OrderIDEntries::Entry - OrderEntry; - - /// Aliases price details for given update. - typedef - IncrementalRefreshBook::Entries::Entry - PriceEntry; - /// Initializes instance from order and price components. IncrementalRefreshBookCombinedEntry( - const OrderEntry& order, const PriceEntry& price) + const Order& order, const Price& price) : order_(order), price_(price) { } @@ -64,26 +62,32 @@ public: } /// Type of market data entry. - EntryTypeBook::Enum entryType() const + EntryTypeBook::Enum + entryType() const { return price_.entryType(); } /// Indicates action of atomic book update. - OrderUpdateAction::Enum updateAction() const + OrderUpdateAction::Enum + updateAction() const { return order_.orderUpdateAction(); } /// Order identifier. - OrderId id() const + bool + orderId( + OrderId& id) const { - return order_.orderId(); + id = order_.orderId(); + + return true; } /// Order priority. bool - priority( + orderPriority( OrderPriority& priority) const { return order_.orderPriority(priority); @@ -91,15 +95,15 @@ public: /// Price value. bool - price( - PRICE& price) const + entryPx( + Decimal& price) const { return price_.entryPx(price); } /// Display quantity. bool - quantity( + displayQty( DisplayQuantity& quantity) const { return order_.displayQty(quantity); @@ -116,10 +120,30 @@ public: return *this; } - -private: - OrderEntry order_; - PriceEntry price_; }; +// + +/// Data for MBO book atomic update gathered +/// from IncrementalRefreshBook46 message containing +/// atomic updates for all types of books. +typedef +IncrementalRefreshBookCombinedEntry +< + IncrementalRefreshBook46::OrderIDEntry, + IncrementalRefreshBook46::Entry +> +IncrementalRefreshBook46CombinedEntry; + +/// Data for MBO book atomic update gathered +/// from IncrementalRefreshBook32 message containing +/// atomic updates for all types of books. +typedef +IncrementalRefreshBookCombinedEntry +< + IncrementalRefreshBook32::OrderIDEntry, + IncrementalRefreshBook32::Entry +> +IncrementalRefreshBook32CombinedEntry; + ONIXS_CMEMDH_NAMESPACE_END diff --git a/linux/include/OnixS/CME/MDH/Messages.h b/linux/include/OnixS/CME/MDH/Messages.h index 54b42942a..c36f142b1 100644 --- a/linux/include/OnixS/CME/MDH/Messages.h +++ b/linux/include/OnixS/CME/MDH/Messages.h @@ -28,317 +28,9 @@ ONIXS_CMEMDH_NAMESPACE_BEGIN -/// ChannelReset. -ONIXS_CMEMDH_LTWT_STRUCT -ChannelReset -: BinaryMessage -{ - /// Message template ID from SBE schema. - enum { TemplateId = 4 }; - - /// Number of entries in Market Data message. - /// Entry of Entry repeating group. - ONIXS_CMEMDH_LTWT_STRUCT - Entry : BinaryGroupEntry - < - GroupSize::BlockLength - > - { - /// Aliases base class type. - typedef - BinaryGroupEntry - < - GroupSize::BlockLength - > - Base; - - /// Initializes blank instance. - Entry() - { - } - - /// Initializes instance of given - /// version over given memory block. - Entry( - const void* data, - BodySize size, - SchemaVersion version) - : Base(data, size, version) - { - if (size < bodySize(version)) - throwBadBinaryData(className()); - } - - /// Market Data update action. - UpdateTypeNew updateAction() const - { - return UpdateTypeNew(); - } - - /// Market Data entry type. - EntryTypeChannelReset entryType() const - { - return EntryTypeChannelReset(); - } - - /// Indicates the channel ID as defined in the XML - /// configuration file. - Int16 applId() const - { - const BodySize offset = 0; - - return ordinary(offset); - } - - /// Returns size of entry body in bytes - /// for given version of message template. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 2; - } - - /// Entity class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "ChannelReset.Entry"; - } - }; - - /// Repeating group containing Entry entries. - typedef - BinaryGroup - Entries; - - /// Initializes blank instance. - ChannelReset() - { - } - - /// Initializes instance over given memory block. - ChannelReset( - const void* data, - MessageSize size) - : BinaryMessage(data, size) - { - assert(TemplateId == templateId()); - - if (size < bodySize(version())) - throwBadBinaryData(className()); - } - - /// Start of event processing time in number of nanoseconds - /// since Unix epoch. - Timestamp transactTime() const - { - const BodySize offset = 0; - - return ordinary(offset); - } - - /// Bitmap field of eight Boolean type indicators reflecting - /// the end of updates for a given Globex event. - const MatchEventIndicator& - matchEventIndicator() const - { - const BodySize offset = 8; - - return ordinary(offset); - } - - /// Returns instance of Entries repeating group. - Entries entries() const - { - return - groups(). - head(); - } - - /// Size of message body in bytes. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 9; - } - - /// Returns class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "ChannelReset"; - } - - /// FIX message type. - ONIXS_CMEMDH_LTWT_EXPORTED - static StrRef fixType() - { - return toStrRef("X"); - } -}; - -/// AdminHeartbeat. -ONIXS_CMEMDH_LTWT_STRUCT -AdminHeartbeat -: BinaryMessage -{ - /// Message template ID from SBE schema. - enum { TemplateId = 12 }; - - /// Initializes blank instance. - AdminHeartbeat() - { - } - - /// Initializes instance over given memory block. - AdminHeartbeat( - const void* data, - MessageSize size) - : BinaryMessage(data, size) - { - assert(TemplateId == templateId()); - - if (size < bodySize(version())) - throwBadBinaryData(className()); - } - - /// Size of message body in bytes. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 0; - } - - /// Returns class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "AdminHeartbeat"; - } - - /// FIX message type. - ONIXS_CMEMDH_LTWT_EXPORTED - static StrRef fixType() - { - return toStrRef("0"); - } -}; - -/// AdminLogin. -ONIXS_CMEMDH_LTWT_STRUCT -AdminLogin -: BinaryMessage -{ - /// Message template ID from SBE schema. - enum { TemplateId = 15 }; - - /// Initializes blank instance. - AdminLogin() - { - } - - /// Initializes instance over given memory block. - AdminLogin( - const void* data, - MessageSize size) - : BinaryMessage(data, size) - { - assert(TemplateId == templateId()); - - if (size < bodySize(version())) - throwBadBinaryData(className()); - } - - /// Heartbeat interval (seconds). - Int8 heartBtInt() const - { - const BodySize offset = 0; - - return ordinary(offset); - } - - /// Size of message body in bytes. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 1; - } - - /// Returns class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "AdminLogin"; - } - - /// FIX message type. - ONIXS_CMEMDH_LTWT_EXPORTED - static StrRef fixType() - { - return toStrRef("A"); - } -}; - -/// AdminLogout. -ONIXS_CMEMDH_LTWT_STRUCT -AdminLogout -: BinaryMessage -{ - /// Message template ID from SBE schema. - enum { TemplateId = 16 }; - - /// Initializes blank instance. - AdminLogout() - { - } - - /// Initializes instance over given memory block. - AdminLogout( - const void* data, - MessageSize size) - : BinaryMessage(data, size) - { - assert(TemplateId == templateId()); - - if (size < bodySize(version())) - throwBadBinaryData(className()); - } - - /// Free format text string. May include logout confirmation - /// or reason for logout. - StrRef text() const - { - const BodySize offset = 0; - const BodySize length = 180; - - return fixedStr(offset); - } - - /// Size of message body in bytes. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 180; - } - - /// Returns class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "AdminLogout"; - } - - /// FIX message type. - ONIXS_CMEMDH_LTWT_EXPORTED - static StrRef fixType() - { - return toStrRef("5"); - } -}; - /// MDInstrumentDefinitionFuture. ONIXS_CMEMDH_LTWT_STRUCT -InstrumentDefinitionFuture +InstrumentDefinitionFuture27 : BinaryMessage { /// Message template ID from SBE schema. @@ -371,7 +63,7 @@ InstrumentDefinitionFuture const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -406,7 +98,7 @@ InstrumentDefinitionFuture ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionFuture.EventsEntry"; + return "InstrumentDefinitionFuture27.EventsEntry"; } }; @@ -442,7 +134,7 @@ InstrumentDefinitionFuture const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -478,7 +170,7 @@ InstrumentDefinitionFuture ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionFuture.FeedTypesEntry"; + return "InstrumentDefinitionFuture27.FeedTypesEntry"; } }; @@ -514,7 +206,7 @@ InstrumentDefinitionFuture const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -547,7 +239,7 @@ InstrumentDefinitionFuture ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionFuture.InstAttribEntry"; + return "InstrumentDefinitionFuture27.InstAttribEntry"; } }; @@ -583,7 +275,7 @@ InstrumentDefinitionFuture const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -602,13 +294,13 @@ InstrumentDefinitionFuture /// 1093-LotType=4, this value is the minimum quantity for /// order entry expressed in the applicable units, specified /// in tag 996-UnitOfMeasure, e.g. megawatts. - bool minLotSize(DecimalQty& value) const + bool minLotSize(Decimal& value) const { typedef NullDecimalQty Null; const BodySize offset = 1; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Returns size of entry body in bytes @@ -623,7 +315,7 @@ InstrumentDefinitionFuture ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionFuture.LotTypeRulesEntry"; + return "InstrumentDefinitionFuture27.LotTypeRulesEntry"; } }; @@ -633,15 +325,15 @@ InstrumentDefinitionFuture LotTypeRules; /// Initializes blank instance. - InstrumentDefinitionFuture() + InstrumentDefinitionFuture27() { } /// Initializes instance over given memory block. - InstrumentDefinitionFuture( + InstrumentDefinitionFuture27( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -853,20 +545,20 @@ InstrumentDefinitionFuture /// Minimum constant tick for the instrument, sent only if /// instrument is non-VTT (Variable Tick table) eligible. - PRICE minPriceIncrement() const + Decimal minPriceIncrement() const { const BodySize offset = 91; - return ordinary(offset); + return decimal(offset); } /// Contains the multiplier to convert the CME Globex display /// price to the conventional price. - FLOAT displayFactor() const + Decimal displayFactor() const { const BodySize offset = 99; - return ordinary(offset); + return decimal(offset); } /// Price Denominator of Main Fraction. @@ -912,25 +604,25 @@ InstrumentDefinitionFuture /// This field contains the contract size for each instrument. /// Used in combination with tag 996-UnitofMeasure. - bool unitOfMeasureQty(PRICE& value) const + bool unitOfMeasureQty(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 140; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Reference price for prelisted instruments or the last /// calculated Settlement whether it be Theoretical, /// Preliminary or a Final Settle of the session. - bool tradingReferencePrice(PRICE& value) const + bool tradingReferencePrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 148; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Bitmap field of eight Boolean type indicators representing @@ -965,33 +657,33 @@ InstrumentDefinitionFuture } /// Allowable high limit price for the trading day. - bool highLimitPrice(PRICE& value) const + bool highLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 165; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Allowable low limit price for the trading day. - bool lowLimitPrice(PRICE& value) const + bool lowLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 173; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Differential value for price banding. - bool maxPriceVariation(PRICE& value) const + bool maxPriceVariation(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 181; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Indicates the quantity that a contract will decay daily by @@ -1073,13 +765,13 @@ InstrumentDefinitionFuture } /// Monetary value equivalent to the minimum price fluctuation. - bool minPriceIncrementAmount(PRICE& value) const + bool minPriceIncrementAmount(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 205; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// User-defined instruments flag. @@ -1098,11 +790,10 @@ InstrumentDefinitionFuture typedef LocalMktDate FieldValue; const BodySize offset = 214; - const SchemaVersion since = 6; FieldValue fieldValue; - if (ordinary(fieldValue, offset, Null(), since)) + if (ordinary(fieldValue, offset, Null())) { value = localMktDateToTimestamp(fieldValue); return true; @@ -1150,19 +841,16 @@ InstrumentDefinitionFuture /// Size of message body in bytes. ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion version) + static BodySize bodySize(SchemaVersion) { - if (version >= 6) - return 216; - - return 214; + return 216; } /// Returns class name. ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionFuture"; + return "InstrumentDefinitionFuture27"; } /// FIX message type. @@ -1175,7 +863,7 @@ InstrumentDefinitionFuture /// MDInstrumentDefinitionSpread. ONIXS_CMEMDH_LTWT_STRUCT -InstrumentDefinitionSpread +InstrumentDefinitionSpread29 : BinaryMessage { /// Message template ID from SBE schema. @@ -1208,7 +896,7 @@ InstrumentDefinitionSpread const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -1243,7 +931,7 @@ InstrumentDefinitionSpread ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionSpread.EventsEntry"; + return "InstrumentDefinitionSpread29.EventsEntry"; } }; @@ -1279,7 +967,7 @@ InstrumentDefinitionSpread const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -1315,7 +1003,7 @@ InstrumentDefinitionSpread ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionSpread.FeedTypesEntry"; + return "InstrumentDefinitionSpread29.FeedTypesEntry"; } }; @@ -1351,7 +1039,7 @@ InstrumentDefinitionSpread const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -1384,7 +1072,7 @@ InstrumentDefinitionSpread ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionSpread.InstAttribEntry"; + return "InstrumentDefinitionSpread29.InstAttribEntry"; } }; @@ -1420,7 +1108,7 @@ InstrumentDefinitionSpread const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -1439,13 +1127,13 @@ InstrumentDefinitionSpread /// 1093-LotType=4, this value is the minimum quantity for /// order entry expressed in the applicable units, specified /// in tag 996-UnitOfMeasure, e.g. megawatts. - bool minLotSize(DecimalQty& value) const + bool minLotSize(Decimal& value) const { typedef NullDecimalQty Null; const BodySize offset = 1; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Returns size of entry body in bytes @@ -1460,7 +1148,7 @@ InstrumentDefinitionSpread ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionSpread.LotTypeRulesEntry"; + return "InstrumentDefinitionSpread29.LotTypeRulesEntry"; } }; @@ -1496,7 +1184,7 @@ InstrumentDefinitionSpread const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -1534,24 +1222,24 @@ InstrumentDefinitionSpread } /// Price for the future leg of a UDS Covered instrument. - bool legPrice(PRICE& value) const + bool legPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 6; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Delta used to calculate the quantity of futures used to /// cover the option or option strategy. - bool legOptionDelta(DecimalQty& value) const + bool legOptionDelta(Decimal& value) const { typedef NullDecimalQty Null; const BodySize offset = 14; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Returns size of entry body in bytes @@ -1566,7 +1254,7 @@ InstrumentDefinitionSpread ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionSpread.LegsEntry"; + return "InstrumentDefinitionSpread29.LegsEntry"; } }; @@ -1576,15 +1264,15 @@ InstrumentDefinitionSpread Legs; /// Initializes blank instance. - InstrumentDefinitionSpread() + InstrumentDefinitionSpread29() { } /// Initializes instance over given memory block. - InstrumentDefinitionSpread( + InstrumentDefinitionSpread29( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -1805,20 +1493,20 @@ InstrumentDefinitionSpread /// Minimum constant tick for the instrument, sent only if /// instrument is non-VTT (Variable Tick table) eligible. - PRICE minPriceIncrement() const + Decimal minPriceIncrement() const { const BodySize offset = 94; - return ordinary(offset); + return decimal(offset); } /// Contains the multiplier to convert the CME Globex display /// price to the conventional price. - FLOAT displayFactor() const + Decimal displayFactor() const { const BodySize offset = 102; - return ordinary(offset); + return decimal(offset); } /// Number of decimals in fractional display price. @@ -1832,13 +1520,13 @@ InstrumentDefinitionSpread } /// Used for price calculation in spread and leg pricing. - bool priceRatio(PRICE& value) const + bool priceRatio(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 111; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Tick Rule. @@ -1863,13 +1551,13 @@ InstrumentDefinitionSpread /// Reference price - the most recently available Settlement /// whether it be Theoretical, Preliminary or a Final Settle /// of the session. - bool tradingReferencePrice(PRICE& value) const + bool tradingReferencePrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 150; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Bitmap field of eight Boolean type indicators representing @@ -1904,33 +1592,33 @@ InstrumentDefinitionSpread } /// Allowable high limit price for the trading day. - bool highLimitPrice(PRICE& value) const + bool highLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 167; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Allowable low limit price for the trading day. - bool lowLimitPrice(PRICE& value) const + bool lowLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 175; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Differential value for price banding. - bool maxPriceVariation(PRICE& value) const + bool maxPriceVariation(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 183; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Price Denominator of Main Fraction. @@ -1961,11 +1649,10 @@ InstrumentDefinitionSpread typedef LocalMktDate FieldValue; const BodySize offset = 193; - const SchemaVersion since = 6; FieldValue fieldValue; - if (ordinary(fieldValue, offset, Null(), since)) + if (ordinary(fieldValue, offset, Null())) { value = localMktDateToTimestamp(fieldValue); return true; @@ -2025,19 +1712,16 @@ InstrumentDefinitionSpread /// Size of message body in bytes. ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion version) + static BodySize bodySize(SchemaVersion) { - if (version >= 6) - return 195; - - return 193; + return 195; } /// Returns class name. ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionSpread"; + return "InstrumentDefinitionSpread29"; } /// FIX message type. @@ -2048,153 +1732,9 @@ InstrumentDefinitionSpread } }; -/// SecurityStatus. -ONIXS_CMEMDH_LTWT_STRUCT -SecurityStatus -: BinaryMessage -{ - /// Message template ID from SBE schema. - enum { TemplateId = 30 }; - - /// Initializes blank instance. - SecurityStatus() - { - } - - /// Initializes instance over given memory block. - SecurityStatus( - const void* data, - MessageSize size) - : BinaryMessage(data, size) - { - assert(TemplateId == templateId()); - - if (size < bodySize(version())) - throwBadBinaryData(className()); - } - - /// Start of event processing time in number of nanoseconds - /// since Unix epoch. - Timestamp transactTime() const - { - const BodySize offset = 0; - - return ordinary(offset); - } - - /// Security Group. - StrRef securityGroup() const - { - const BodySize offset = 8; - const BodySize length = 6; - - return fixedStr(offset); - } - - /// Product Code within Security Group specified. - StrRef asset() const - { - const BodySize offset = 14; - const BodySize length = 6; - - return fixedStr(offset); - } - - /// If this tag is present, 35=f message is sent for the - /// instrument. - bool securityId(Int32& value) const - { - typedef NullInt32 Null; - - const BodySize offset = 20; - - return ordinary(value, offset, Null()); - } - - /// Trade Session Date. - bool tradeDate(Timestamp& value) const - { - typedef NullLocalMktDate Null; - typedef LocalMktDate FieldValue; - - const BodySize offset = 24; - - FieldValue fieldValue; - - if (ordinary(fieldValue, offset, Null())) - { - value = localMktDateToTimestamp(fieldValue); - return true; - } - return false; - } - - /// Bitmap field of eight Boolean type indicators reflecting - /// the end of updates for a given Globex event. - const MatchEventIndicator& - matchEventIndicator() const - { - const BodySize offset = 26; - - return ordinary(offset); - } - - /// Identifies the trading status applicable to the instrument - /// or Security Group. - bool - securityTradingStatus( - SecurityTradingStatus::Enum& value) const - { - typedef NullUInt8 Null; - - const BodySize offset = 27; - - return enumeration(value, offset, Null()); - } - - /// Identifies the reason for the status change. - HaltReason::Enum haltReason() const - { - const BodySize offset = 28; - - return enumeration(offset); - } - - /// Identifies an additional event or a rule related to the - /// status. - SecurityTradingEvent::Enum - securityTradingEvent() const - { - const BodySize offset = 29; - - return enumeration(offset); - } - - /// Size of message body in bytes. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 30; - } - - /// Returns class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "SecurityStatus"; - } - - /// FIX message type. - ONIXS_CMEMDH_LTWT_EXPORTED - static StrRef fixType() - { - return toStrRef("f"); - } -}; - /// MDIncrementalRefreshBook. ONIXS_CMEMDH_LTWT_STRUCT -IncrementalRefreshBook +IncrementalRefreshBook32 : BinaryMessage { /// Message template ID from SBE schema. @@ -2227,20 +1767,20 @@ IncrementalRefreshBook const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); } /// Market Data entry price. - bool entryPx(PRICE& value) const + bool entryPx(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 0; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Market Data entry size. @@ -2316,7 +1856,7 @@ IncrementalRefreshBook ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshBook.Entry"; + return "IncrementalRefreshBook32.Entry"; } }; @@ -2352,7 +1892,7 @@ IncrementalRefreshBook const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -2372,9 +1912,8 @@ IncrementalRefreshBook typedef NullUInt64 Null; const BodySize offset = 8; - const SchemaVersion since = 7; - return ordinary(value, offset, Null(), since); + return ordinary(value, offset, Null()); } /// Visible qty of order. @@ -2410,19 +1949,16 @@ IncrementalRefreshBook /// Returns size of entry body in bytes /// for given version of message template. ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion version) + static BodySize bodySize(SchemaVersion) { - if (version >= 7) - return 22; - - return 8; + return 22; } /// Entity class name. ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshBook.OrderIDEntry"; + return "IncrementalRefreshBook32.OrderIDEntry"; } }; @@ -2432,15 +1968,15 @@ IncrementalRefreshBook OrderIDEntries; /// Initializes blank instance. - IncrementalRefreshBook() + IncrementalRefreshBook32() { } /// Initializes instance over given memory block. - IncrementalRefreshBook( + IncrementalRefreshBook32( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -2478,11 +2014,6 @@ IncrementalRefreshBook /// Returns instance of OrderIDEntries repeating group. OrderIDEntries orderIdEntries() const { - const SchemaVersion since = 7; - - if (version() < since) - return OrderIDEntries(); - return groups(). tail(). @@ -2500,7 +2031,7 @@ IncrementalRefreshBook ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshBook"; + return "IncrementalRefreshBook32"; } /// FIX message type. @@ -2513,7 +2044,7 @@ IncrementalRefreshBook /// MDIncrementalRefreshDailyStatistics. ONIXS_CMEMDH_LTWT_STRUCT -IncrementalRefreshDailyStatistics +IncrementalRefreshDailyStatistics33 : BinaryMessage { /// Message template ID from SBE schema. @@ -2546,20 +2077,20 @@ IncrementalRefreshDailyStatistics const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); } /// Market Data entry price. - bool entryPx(PRICE& value) const + bool entryPx(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 0; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Market Data entry size. @@ -2645,7 +2176,7 @@ IncrementalRefreshDailyStatistics ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshDailyStatistics.Entry"; + return "IncrementalRefreshDailyStatistics33.Entry"; } }; @@ -2655,15 +2186,15 @@ IncrementalRefreshDailyStatistics Entries; /// Initializes blank instance. - IncrementalRefreshDailyStatistics() + IncrementalRefreshDailyStatistics33() { } /// Initializes instance over given memory block. - IncrementalRefreshDailyStatistics( + IncrementalRefreshDailyStatistics33( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -2709,7 +2240,7 @@ IncrementalRefreshDailyStatistics ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshDailyStatistics"; + return "IncrementalRefreshDailyStatistics33"; } /// FIX message type. @@ -2722,7 +2253,7 @@ IncrementalRefreshDailyStatistics /// MDIncrementalRefreshLimitsBanding. ONIXS_CMEMDH_LTWT_STRUCT -IncrementalRefreshLimitsBanding +IncrementalRefreshLimitsBanding34 : BinaryMessage { /// Message template ID from SBE schema. @@ -2755,40 +2286,40 @@ IncrementalRefreshLimitsBanding const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); } /// Upper price threshold for the instrument. - bool highLimitPrice(PRICE& value) const + bool highLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 0; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Lower price threshold for the instrument. - bool lowLimitPrice(PRICE& value) const + bool lowLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 8; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Differential static value for price banding. - bool maxPriceVariation(PRICE& value) const + bool maxPriceVariation(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 16; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Security ID. @@ -2833,7 +2364,7 @@ IncrementalRefreshLimitsBanding ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshLimitsBanding.Entry"; + return "IncrementalRefreshLimitsBanding34.Entry"; } }; @@ -2843,15 +2374,15 @@ IncrementalRefreshLimitsBanding Entries; /// Initializes blank instance. - IncrementalRefreshLimitsBanding() + IncrementalRefreshLimitsBanding34() { } /// Initializes instance over given memory block. - IncrementalRefreshLimitsBanding( + IncrementalRefreshLimitsBanding34( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -2897,7 +2428,7 @@ IncrementalRefreshLimitsBanding ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshLimitsBanding"; + return "IncrementalRefreshLimitsBanding34"; } /// FIX message type. @@ -2910,7 +2441,7 @@ IncrementalRefreshLimitsBanding /// MDIncrementalRefreshSessionStatistics. ONIXS_CMEMDH_LTWT_STRUCT -IncrementalRefreshSessionStatistics +IncrementalRefreshSessionStatistics35 : BinaryMessage { /// Message template ID from SBE schema. @@ -2943,18 +2474,18 @@ IncrementalRefreshSessionStatistics const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); } /// Market Data entry price. - PRICE entryPx() const + Decimal entryPx() const { const BodySize offset = 0; - return ordinary(offset); + return decimal(offset); } /// Security ID. @@ -3008,233 +2539,23 @@ IncrementalRefreshSessionStatistics typedef NullInt32 Null; const BodySize offset = 19; - const SchemaVersion since = 8; - - return ordinary(value, offset, Null(), since); - } - - /// Returns size of entry body in bytes - /// for given version of message template. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion version) - { - if (version >= 8) - return 23; - - return 19; - } - - /// Entity class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "IncrementalRefreshSessionStatistics.Entry"; - } - }; - - /// Repeating group containing Entry entries. - typedef - BinaryGroup - Entries; - - /// Initializes blank instance. - IncrementalRefreshSessionStatistics() - { - } - - /// Initializes instance over given memory block. - IncrementalRefreshSessionStatistics( - const void* data, - MessageSize size) - : BinaryMessage(data, size) - { - assert(TemplateId == templateId()); - - if (size < bodySize(version())) - throwBadBinaryData(className()); - } - - /// Start of event processing time in number of nanoseconds - /// since Unix epoch. - Timestamp transactTime() const - { - const BodySize offset = 0; - - return ordinary(offset); - } - - /// Bitmap field of eight Boolean type indicators reflecting - /// the end of updates for a given Globex event. - const MatchEventIndicator& - matchEventIndicator() const - { - const BodySize offset = 8; - - return ordinary(offset); - } - - /// Returns instance of Entries repeating group. - Entries entries() const - { - return - groups(). - head(); - } - - /// Size of message body in bytes. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 9; - } - - /// Returns class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "IncrementalRefreshSessionStatistics"; - } - - /// FIX message type. - ONIXS_CMEMDH_LTWT_EXPORTED - static StrRef fixType() - { - return toStrRef("X"); - } -}; - -/// MDIncrementalRefreshTrade. -ONIXS_CMEMDH_LTWT_STRUCT -IncrementalRefreshTrade -: BinaryMessage -{ - /// Message template ID from SBE schema. - enum { TemplateId = 36 }; - - /// Number of entries in Market Data message. - /// Entry of Entry repeating group. - ONIXS_CMEMDH_LTWT_STRUCT - Entry : BinaryGroupEntry - < - GroupSize::BlockLength - > - { - /// Aliases base class type. - typedef - BinaryGroupEntry - < - GroupSize::BlockLength - > - Base; - - /// Initializes blank instance. - Entry() - { - } - - /// Initializes instance of given - /// version over given memory block. - Entry( - const void* data, - BodySize size, - SchemaVersion version) - : Base(data, size, version) - { - if (size < bodySize(version)) - throwBadBinaryData(className()); - } - - /// Trade price. - PRICE entryPx() const - { - const BodySize offset = 0; - - return ordinary(offset); - } - - /// Trade quantity. - Int32 entrySize() const - { - const BodySize offset = 8; - - return ordinary(offset); - } - - /// Security ID. - Int32 securityId() const - { - const BodySize offset = 12; - - return ordinary(offset); - } - - /// Market Data entry sequence number per instrument update. - UInt32 rptSeq() const - { - const BodySize offset = 16; - - return ordinary(offset); - } - - /// Total number of real orders per instrument that - /// participated in the trade. - bool numberOfOrders(Int32& value) const - { - typedef NullInt32 Null; - - const BodySize offset = 20; return ordinary(value, offset, Null()); } - /// Unique Trade ID per instrument and Trading Date. - Int32 tradeId() const - { - const BodySize offset = 24; - - return ordinary(offset); - } - - /// Indicates aggressor side in the trade, if value is 0 then - /// there is no aggressor. - bool - aggressorSide( - AggressorSide::Enum& value) const - { - typedef NullUInt8 Null; - - const BodySize offset = 28; - - return enumeration(value, offset, Null()); - } - - /// Market Data update action. - UpdateAction::Enum updateAction() const - { - const BodySize offset = 29; - - return enumeration(offset); - } - - /// Market Data entry type. - EntryTypeTrade entryType() const - { - return EntryTypeTrade(); - } - /// Returns size of entry body in bytes /// for given version of message template. ONIXS_CMEMDH_LTWT_EXPORTED static BodySize bodySize(SchemaVersion) { - return 30; + return 23; } /// Entity class name. ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshTrade.Entry"; + return "IncrementalRefreshSessionStatistics35.Entry"; } }; @@ -3244,15 +2565,15 @@ IncrementalRefreshTrade Entries; /// Initializes blank instance. - IncrementalRefreshTrade() + IncrementalRefreshSessionStatistics35() { } /// Initializes instance over given memory block. - IncrementalRefreshTrade( + IncrementalRefreshSessionStatistics35( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -3298,174 +2619,7 @@ IncrementalRefreshTrade ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshTrade"; - } - - /// FIX message type. - ONIXS_CMEMDH_LTWT_EXPORTED - static StrRef fixType() - { - return toStrRef("X"); - } -}; - -/// MDIncrementalRefreshVolume. -ONIXS_CMEMDH_LTWT_STRUCT -IncrementalRefreshVolume -: BinaryMessage -{ - /// Message template ID from SBE schema. - enum { TemplateId = 37 }; - - /// Number of entries in Market Data message. - /// Entry of Entry repeating group. - ONIXS_CMEMDH_LTWT_STRUCT - Entry : BinaryGroupEntry - < - GroupSize::BlockLength - > - { - /// Aliases base class type. - typedef - BinaryGroupEntry - < - GroupSize::BlockLength - > - Base; - - /// Initializes blank instance. - Entry() - { - } - - /// Initializes instance of given - /// version over given memory block. - Entry( - const void* data, - BodySize size, - SchemaVersion version) - : Base(data, size, version) - { - if (size < bodySize(version)) - throwBadBinaryData(className()); - } - - /// Cumulative traded volume. - Int32 entrySize() const - { - const BodySize offset = 0; - - return ordinary(offset); - } - - /// Security ID. - Int32 securityId() const - { - const BodySize offset = 4; - - return ordinary(offset); - } - - /// Market Data entry sequence number per instrument update. - UInt32 rptSeq() const - { - const BodySize offset = 8; - - return ordinary(offset); - } - - /// Market Data update action. - UpdateAction::Enum updateAction() const - { - const BodySize offset = 12; - - return enumeration(offset); - } - - /// Electronic Volume entry provides cumulative session trade - /// volume updated with the event. - EntryTypeVol entryType() const - { - return EntryTypeVol(); - } - - /// Returns size of entry body in bytes - /// for given version of message template. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 13; - } - - /// Entity class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "IncrementalRefreshVolume.Entry"; - } - }; - - /// Repeating group containing Entry entries. - typedef - BinaryGroup - Entries; - - /// Initializes blank instance. - IncrementalRefreshVolume() - { - } - - /// Initializes instance over given memory block. - IncrementalRefreshVolume( - const void* data, - MessageSize size) - : BinaryMessage(data, size) - { - assert(TemplateId == templateId()); - - if (size < bodySize(version())) - throwBadBinaryData(className()); - } - - /// Start of event processing time in number of nanoseconds - /// since Unix epoch. - Timestamp transactTime() const - { - const BodySize offset = 0; - - return ordinary(offset); - } - - /// Bitmap field of eight Boolean type indicators reflecting - /// the end of updates for a given Globex event. - const MatchEventIndicator& - matchEventIndicator() const - { - const BodySize offset = 8; - - return ordinary(offset); - } - - /// Returns instance of Entries repeating group. - Entries entries() const - { - return - groups(). - head(); - } - - /// Size of message body in bytes. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 9; - } - - /// Returns class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "IncrementalRefreshVolume"; + return "IncrementalRefreshSessionStatistics35"; } /// FIX message type. @@ -3478,7 +2632,7 @@ IncrementalRefreshVolume /// SnapshotFullRefresh. ONIXS_CMEMDH_LTWT_STRUCT -SnapshotFullRefresh +SnapshotFullRefresh38 : BinaryMessage { /// Message template ID from SBE schema. @@ -3511,20 +2665,20 @@ SnapshotFullRefresh const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); } /// Market Data entry price. - bool entryPx(PRICE& value) const + bool entryPx(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 0; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Market Data entry quantity. @@ -3617,7 +2771,7 @@ SnapshotFullRefresh ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "SnapshotFullRefresh.Entry"; + return "SnapshotFullRefresh38.Entry"; } }; @@ -3627,15 +2781,15 @@ SnapshotFullRefresh Entries; /// Initializes blank instance. - SnapshotFullRefresh() + SnapshotFullRefresh38() { } /// Initializes instance over given memory block. - SnapshotFullRefresh( + SnapshotFullRefresh38( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -3727,33 +2881,33 @@ SnapshotFullRefresh } /// Upper price threshold for the instrument. - bool highLimitPrice(PRICE& value) const + bool highLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 35; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Lower price threshold for the instrument. - bool lowLimitPrice(PRICE& value) const + bool lowLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 43; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Differential value for price banding. - bool maxPriceVariation(PRICE& value) const + bool maxPriceVariation(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 51; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Returns instance of Entries repeating group. @@ -3775,7 +2929,7 @@ SnapshotFullRefresh ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "SnapshotFullRefresh"; + return "SnapshotFullRefresh38"; } /// FIX message type. @@ -3786,191 +2940,9 @@ SnapshotFullRefresh } }; -/// QuoteRequest. -ONIXS_CMEMDH_LTWT_STRUCT -QuoteRequest -: BinaryMessage -{ - /// Message template ID from SBE schema. - enum { TemplateId = 39 }; - - /// Indicates the number of repeating symbols specified. - /// Entry of RelatedSymEntry repeating group. - ONIXS_CMEMDH_LTWT_STRUCT - RelatedSymEntry : BinaryGroupEntry - < - GroupSize::BlockLength - > - { - /// Aliases base class type. - typedef - BinaryGroupEntry - < - GroupSize::BlockLength - > - Base; - - /// Initializes blank instance. - RelatedSymEntry() - { - } - - /// Initializes instance of given - /// version over given memory block. - RelatedSymEntry( - const void* data, - BodySize size, - SchemaVersion version) - : Base(data, size, version) - { - if (size < bodySize(version)) - throwBadBinaryData(className()); - } - - /// Instrument Name or Symbol. - StrRef symbol() const - { - const BodySize offset = 0; - const BodySize length = 20; - - return fixedStr(offset); - } - - /// Security ID. - Int32 securityId() const - { - const BodySize offset = 20; - - return ordinary(offset); - } - - /// Quantity requested. - bool orderQty(Int32& value) const - { - typedef NullInt32 Null; - - const BodySize offset = 24; - - return ordinary(value, offset, Null()); - } - - /// Type of quote requested. - Int8 quoteType() const - { - const BodySize offset = 28; - - return ordinary(offset); - } - - /// Side requested. - bool side(Int8& value) const - { - typedef NullInt8 Null; - - const BodySize offset = 29; - - return ordinary(value, offset, Null()); - } - - /// Returns size of entry body in bytes - /// for given version of message template. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 30; - } - - /// Entity class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "QuoteRequest.RelatedSymEntry"; - } - }; - - /// Repeating group containing RelatedSymEntry entries. - typedef - BinaryGroup - RelatedSym; - - /// Initializes blank instance. - QuoteRequest() - { - } - - /// Initializes instance over given memory block. - QuoteRequest( - const void* data, - MessageSize size) - : BinaryMessage(data, size) - { - assert(TemplateId == templateId()); - - if (size < bodySize(version())) - throwBadBinaryData(className()); - } - - /// Start of event processing time in number of nanoseconds - /// since Unix epoch. - Timestamp transactTime() const - { - const BodySize offset = 0; - - return ordinary(offset); - } - - /// Quote Request ID defined by the exchange. - StrRef quoteReqId() const - { - const BodySize offset = 8; - const BodySize length = 23; - - return fixedStr(offset); - } - - /// Bitmap field of eight Boolean type indicators reflecting - /// the end of updates for a given Globex event. - const MatchEventIndicator& - matchEventIndicator() const - { - const BodySize offset = 31; - - return ordinary(offset); - } - - /// Returns instance of RelatedSym repeating group. - RelatedSym relatedSym() const - { - return - groups(). - head(); - } - - /// Size of message body in bytes. - ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion) - { - return 32; - } - - /// Returns class name. - ONIXS_CMEMDH_LTWT_EXPORTED - static const Char* className() - { - return "QuoteRequest"; - } - - /// FIX message type. - ONIXS_CMEMDH_LTWT_EXPORTED - static StrRef fixType() - { - return toStrRef("R"); - } -}; - /// MDInstrumentDefinitionOption. ONIXS_CMEMDH_LTWT_STRUCT -InstrumentDefinitionOption +InstrumentDefinitionOption41 : BinaryMessage { /// Message template ID from SBE schema. @@ -4003,7 +2975,7 @@ InstrumentDefinitionOption const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -4038,7 +3010,7 @@ InstrumentDefinitionOption ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionOption.EventsEntry"; + return "InstrumentDefinitionOption41.EventsEntry"; } }; @@ -4074,7 +3046,7 @@ InstrumentDefinitionOption const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -4110,7 +3082,7 @@ InstrumentDefinitionOption ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionOption.FeedTypesEntry"; + return "InstrumentDefinitionOption41.FeedTypesEntry"; } }; @@ -4146,7 +3118,7 @@ InstrumentDefinitionOption const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -4179,7 +3151,7 @@ InstrumentDefinitionOption ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionOption.InstAttribEntry"; + return "InstrumentDefinitionOption41.InstAttribEntry"; } }; @@ -4215,7 +3187,7 @@ InstrumentDefinitionOption const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -4234,13 +3206,13 @@ InstrumentDefinitionOption /// 1093-LotType=4, this value is the minimum quantity for /// order entry expressed in the applicable units, specified /// in tag 996-UnitOfMeasure, e.g. megawatts. - bool minLotSize(DecimalQty& value) const + bool minLotSize(Decimal& value) const { typedef NullDecimalQty Null; const BodySize offset = 1; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Returns size of entry body in bytes @@ -4255,7 +3227,7 @@ InstrumentDefinitionOption ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionOption.LotTypeRulesEntry"; + return "InstrumentDefinitionOption41.LotTypeRulesEntry"; } }; @@ -4291,7 +3263,7 @@ InstrumentDefinitionOption const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -4333,7 +3305,7 @@ InstrumentDefinitionOption ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionOption.UnderlyingsEntry"; + return "InstrumentDefinitionOption41.UnderlyingsEntry"; } }; @@ -4369,7 +3341,7 @@ InstrumentDefinitionOption const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -4410,7 +3382,7 @@ InstrumentDefinitionOption ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionOption.RelatedInstrumentsEntry"; + return "InstrumentDefinitionOption41.RelatedInstrumentsEntry"; } }; @@ -4420,15 +3392,15 @@ InstrumentDefinitionOption RelatedInstruments; /// Initializes blank instance. - InstrumentDefinitionOption() + InstrumentDefinitionOption41() { } /// Initializes instance over given memory block. - InstrumentDefinitionOption( + InstrumentDefinitionOption41( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -4613,13 +3585,13 @@ InstrumentDefinitionOption } /// Strike Price for an option instrument. - bool strikePrice(PRICE& value) const + bool strikePrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 80; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Currency in which the StrikePrice is denominated. @@ -4642,13 +3614,13 @@ InstrumentDefinitionOption } /// Defines cabinet price for outright options products. - bool minCabPrice(PRICE& value) const + bool minCabPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 94; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Matching algorithm. @@ -4676,32 +3648,32 @@ InstrumentDefinitionOption } /// Minimum constant tick for the instrument. - bool minPriceIncrement(PRICE& value) const + bool minPriceIncrement(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 111; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Monetary value equivalent to the minimum price fluctuation. - bool minPriceIncrementAmount(PRICE& value) const + bool minPriceIncrementAmount(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 119; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Contains the multiplier to convert the CME Globex display /// price to the conventional price. - FLOAT displayFactor() const + Decimal displayFactor() const { const BodySize offset = 127; - return ordinary(offset); + return decimal(offset); } /// VTT code referencing variable tick table. @@ -4757,25 +3729,25 @@ InstrumentDefinitionOption /// This field contains the contract size for each instrument. /// Used in combination with tag 996-UnitofMeasure. - bool unitOfMeasureQty(PRICE& value) const + bool unitOfMeasureQty(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 169; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Reference price - the most recently available Settlement /// whether it be Theoretical, Preliminary or a Final Settle /// of the session. - bool tradingReferencePrice(PRICE& value) const + bool tradingReferencePrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 177; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Bitmap field of eight Boolean type indicators representing @@ -4810,23 +3782,23 @@ InstrumentDefinitionOption } /// Allowable low limit price for the trading day. - bool lowLimitPrice(PRICE& value) const + bool lowLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 194; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Allowable high limit price for the trading day. - bool highLimitPrice(PRICE& value) const + bool highLimitPrice(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 202; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// User-defined instruments flag. @@ -4845,11 +3817,10 @@ InstrumentDefinitionOption typedef LocalMktDate FieldValue; const BodySize offset = 211; - const SchemaVersion since = 6; FieldValue fieldValue; - if (ordinary(fieldValue, offset, Null(), since)) + if (ordinary(fieldValue, offset, Null())) { value = localMktDateToTimestamp(fieldValue); return true; @@ -4910,11 +3881,6 @@ InstrumentDefinitionOption /// Returns instance of RelatedInstruments repeating group. RelatedInstruments relatedInstruments() const { - const SchemaVersion since = 7; - - if (version() < since) - return RelatedInstruments(); - return groups(). tail(). @@ -4927,19 +3893,16 @@ InstrumentDefinitionOption /// Size of message body in bytes. ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion version) + static BodySize bodySize(SchemaVersion) { - if (version >= 6) - return 213; - - return 211; + return 213; } /// Returns class name. ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "InstrumentDefinitionOption"; + return "InstrumentDefinitionOption41"; } /// FIX message type. @@ -4952,7 +3915,7 @@ InstrumentDefinitionOption /// MDIncrementalRefreshTradeSummary. ONIXS_CMEMDH_LTWT_STRUCT -IncrementalRefreshTradeSummary +IncrementalRefreshTradeSummary42 : BinaryMessage { /// Message template ID from SBE schema. @@ -4985,18 +3948,18 @@ IncrementalRefreshTradeSummary const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); } /// Trade price. - PRICE entryPx() const + Decimal entryPx() const { const BodySize offset = 0; - return ordinary(offset); + return decimal(offset); } /// Consolidated trade quantity. @@ -5067,27 +4030,23 @@ IncrementalRefreshTradeSummary typedef NullUInt32 Null; const BodySize offset = 26; - const SchemaVersion since = 7; - return ordinary(value, offset, Null(), since); + return ordinary(value, offset, Null()); } /// Returns size of entry body in bytes /// for given version of message template. ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion version) + static BodySize bodySize(SchemaVersion) { - if (version >= 7) - return 30; - - return 26; + return 30; } /// Entity class name. ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshTradeSummary.Entry"; + return "IncrementalRefreshTradeSummary42.Entry"; } }; @@ -5123,7 +4082,7 @@ IncrementalRefreshTradeSummary const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -5157,7 +4116,7 @@ IncrementalRefreshTradeSummary ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshTradeSummary.OrderIDEntry"; + return "IncrementalRefreshTradeSummary42.OrderIDEntry"; } }; @@ -5167,15 +4126,15 @@ IncrementalRefreshTradeSummary OrderIDEntries; /// Initializes blank instance. - IncrementalRefreshTradeSummary() + IncrementalRefreshTradeSummary42() { } /// Initializes instance over given memory block. - IncrementalRefreshTradeSummary( + IncrementalRefreshTradeSummary42( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -5230,7 +4189,7 @@ IncrementalRefreshTradeSummary ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshTradeSummary"; + return "IncrementalRefreshTradeSummary42"; } /// FIX message type. @@ -5243,7 +4202,7 @@ IncrementalRefreshTradeSummary /// MDIncrementalRefreshOrderBook. ONIXS_CMEMDH_LTWT_STRUCT -IncrementalRefreshOrderBook +IncrementalRefreshOrderBook43 : BinaryMessage { /// Message template ID from SBE schema. @@ -5276,7 +4235,7 @@ IncrementalRefreshOrderBook const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -5288,9 +4247,8 @@ IncrementalRefreshOrderBook typedef NullUInt64 Null; const BodySize offset = 0; - const SchemaVersion since = 7; - return ordinary(value, offset, Null(), since); + return ordinary(value, offset, Null()); } /// Order priority for execution on the order book. @@ -5299,19 +4257,18 @@ IncrementalRefreshOrderBook typedef NullUInt64 Null; const BodySize offset = 8; - const SchemaVersion since = 7; - return ordinary(value, offset, Null(), since); + return ordinary(value, offset, Null()); } /// Order price. - bool entryPx(PRICE& value) const + bool entryPx(Decimal& value) const { typedef NullPRICE Null; const BodySize offset = 16; - return ordinary(value, offset, Null()); + return decimal(value, offset, Null()); } /// Visible order qty. @@ -5352,19 +4309,16 @@ IncrementalRefreshOrderBook /// Returns size of entry body in bytes /// for given version of message template. ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion version) + static BodySize bodySize(SchemaVersion) { - if (version >= 7) - return 34; - - return 0; + return 34; } /// Entity class name. ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshOrderBook.Entry"; + return "IncrementalRefreshOrderBook43.Entry"; } }; @@ -5374,15 +4328,15 @@ IncrementalRefreshOrderBook Entries; /// Initializes blank instance. - IncrementalRefreshOrderBook() + IncrementalRefreshOrderBook43() { } /// Initializes instance over given memory block. - IncrementalRefreshOrderBook( + IncrementalRefreshOrderBook43( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -5428,7 +4382,7 @@ IncrementalRefreshOrderBook ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "IncrementalRefreshOrderBook"; + return "IncrementalRefreshOrderBook43"; } /// FIX message type. @@ -5441,7 +4395,7 @@ IncrementalRefreshOrderBook /// SnapshotFullRefreshOrderBook. ONIXS_CMEMDH_LTWT_STRUCT -SnapshotFullRefreshOrderBook +SnapshotFullRefreshOrderBook44 : BinaryMessage { /// Message template ID from SBE schema. @@ -5474,7 +4428,7 @@ SnapshotFullRefreshOrderBook const void* data, BodySize size, SchemaVersion version) - : Base(data, size, version) + : Base(data, size, version) { if (size < bodySize(version)) throwBadBinaryData(className()); @@ -5494,17 +4448,16 @@ SnapshotFullRefreshOrderBook typedef NullUInt64 Null; const BodySize offset = 8; - const SchemaVersion since = 7; - return ordinary(value, offset, Null(), since); + return ordinary(value, offset, Null()); } /// Order Price. - PRICE entryPx() const + Decimal entryPx() const { const BodySize offset = 16; - return ordinary(offset); + return decimal(offset); } /// Visible order qty. @@ -5526,19 +4479,16 @@ SnapshotFullRefreshOrderBook /// Returns size of entry body in bytes /// for given version of message template. ONIXS_CMEMDH_LTWT_EXPORTED - static BodySize bodySize(SchemaVersion version) + static BodySize bodySize(SchemaVersion) { - if (version >= 7) - return 29; - - return 8; + return 29; } /// Entity class name. ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "SnapshotFullRefreshOrderBook.Entry"; + return "SnapshotFullRefreshOrderBook44.Entry"; } }; @@ -5548,15 +4498,15 @@ SnapshotFullRefreshOrderBook Entries; /// Initializes blank instance. - SnapshotFullRefreshOrderBook() + SnapshotFullRefreshOrderBook44() { } /// Initializes instance over given memory block. - SnapshotFullRefreshOrderBook( + SnapshotFullRefreshOrderBook44( const void* data, MessageSize size) - : BinaryMessage(data, size) + : BinaryMessage(data, size) { assert(TemplateId == templateId()); @@ -5635,7 +4585,5376 @@ SnapshotFullRefreshOrderBook ONIXS_CMEMDH_LTWT_EXPORTED static const Char* className() { - return "SnapshotFullRefreshOrderBook"; + return "SnapshotFullRefreshOrderBook44"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("W"); + } +}; + +/// ChannelReset. +ONIXS_CMEMDH_LTWT_STRUCT +ChannelReset4 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 4 }; + + /// Number of entries in Market Data message. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Market Data update action. + UpdateTypeNew updateAction() const + { + return UpdateTypeNew(); + } + + /// Market Data entry type. + EntryTypeChannelReset entryType() const + { + return EntryTypeChannelReset(); + } + + /// Indicates the channel ID as defined in the XML + /// configuration file. + Int16 applId() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 2; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "ChannelReset4.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Initializes blank instance. + ChannelReset4() + { + } + + /// Initializes instance over given memory block. + ChannelReset4( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "ChannelReset4"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("X"); + } +}; + +/// AdminHeartbeat. +ONIXS_CMEMDH_LTWT_STRUCT +AdminHeartbeat12 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 12 }; + + /// Initializes blank instance. + AdminHeartbeat12() + { + } + + /// Initializes instance over given memory block. + AdminHeartbeat12( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 0; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "AdminHeartbeat12"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("0"); + } +}; + +/// AdminLogin. +ONIXS_CMEMDH_LTWT_STRUCT +AdminLogin15 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 15 }; + + /// Initializes blank instance. + AdminLogin15() + { + } + + /// Initializes instance over given memory block. + AdminLogin15( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Heartbeat interval (seconds). + Int8 heartBtInt() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 1; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "AdminLogin15"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("A"); + } +}; + +/// AdminLogout. +ONIXS_CMEMDH_LTWT_STRUCT +AdminLogout16 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 16 }; + + /// Initializes blank instance. + AdminLogout16() + { + } + + /// Initializes instance over given memory block. + AdminLogout16( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Free format text string. May include logout confirmation + /// or reason for logout. + StrRef text() const + { + const BodySize offset = 0; + const BodySize length = 180; + + return fixedStr(offset); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 180; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "AdminLogout16"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("5"); + } +}; + +/// MDInstrumentDefinitionFuture. +ONIXS_CMEMDH_LTWT_STRUCT +InstrumentDefinitionFuture54 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 54 }; + + /// Number of repeating EventType entries. + /// Entry of EventsEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + EventsEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + EventsEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + EventsEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Code to represent the type of event. + EventType::Enum eventType() const + { + const BodySize offset = 0; + + return enumeration(offset); + } + + /// Date and Time of instument Activation or Expiration event + /// sent as number of nanoseconds since Unix epoch. + Timestamp eventTime() const + { + const BodySize offset = 1; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionFuture54.EventsEntry"; + } + }; + + /// Repeating group containing EventsEntry entries. + typedef + BinaryGroup + Events; + + /// Number of repeating FeedType entries. + /// Entry of FeedTypesEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + FeedTypesEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + FeedTypesEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + FeedTypesEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Describes a class of service for a given data feed. GBX- + /// Real Book, GBI-Implied Book. + StrRef feedType() const + { + const BodySize offset = 0; + const BodySize length = 3; + + return fixedStr(offset); + } + + /// Book depth. + Int8 marketDepth() const + { + const BodySize offset = 3; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 4; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionFuture54.FeedTypesEntry"; + } + }; + + /// Repeating group containing FeedTypesEntry entries. + typedef + BinaryGroup + FeedTypes; + + /// Number of repeating InstrAttribType entries. + /// Entry of InstAttribEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + InstAttribEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + InstAttribEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + InstAttribEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Instrument eligibility attributes. + InstAttribType instAttribType() const + { + return InstAttribType(); + } + + /// Bitmap field of 32 Boolean type instrument eligibility + /// flags. + const InstAttribValue& instAttribValue() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 4; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionFuture54.InstAttribEntry"; + } + }; + + /// Repeating group containing InstAttribEntry entries. + typedef + BinaryGroup + InstAttrib; + + /// Number of entries. + /// Entry of LotTypeRulesEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + LotTypeRulesEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + LotTypeRulesEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + LotTypeRulesEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// This tag is required to interpret the value in tag + /// 1231-MinLotSize. + Int8 lotType() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Minimum quantity accepted for order entry. If tag + /// 1093-LotType=4, this value is the minimum quantity for + /// order entry expressed in the applicable units, specified + /// in tag 996-UnitOfMeasure, e.g. megawatts. + bool minLotSize(Decimal& value) const + { + typedef NullDecimalQty Null; + + const BodySize offset = 1; + + return decimal(value, offset, Null()); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 5; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionFuture54.LotTypeRulesEntry"; + } + }; + + /// Repeating group containing LotTypeRulesEntry entries. + typedef + BinaryGroup + LotTypeRules; + + /// Initializes blank instance. + InstrumentDefinitionFuture54() + { + } + + /// Initializes instance over given memory block. + InstrumentDefinitionFuture54( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Total number of instruments in the Replay loop. Used on + /// Replay Feed only. + bool totNumReports(UInt32& value) const + { + typedef NullUInt32 Null; + + const BodySize offset = 1; + + return ordinary(value, offset, Null()); + } + + /// Last Security update action on Incremental feed, 'D' or + /// 'M' is used when a mid-week deletion or modification (i.e. + /// extension) occurs. + SecurityUpdateAction::Enum + securityUpdateAction() const + { + const BodySize offset = 5; + + return enumeration(offset); + } + + /// Timestamp of when the instrument was last added, modified + /// or deleted. + Timestamp lastUpdateTime() const + { + const BodySize offset = 6; + + return ordinary(offset); + } + + /// Identifies the current state of the instrument. In + /// Security Definition message this tag is available in the + /// Instrument Replay feed only. + bool + securityTradingStatus( + SecurityTradingStatus::Enum& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 14; + + return enumeration(value, offset, Null()); + } + + /// The channel ID as defined in the XML Configuration file. + Int16 applId() const + { + const BodySize offset = 15; + + return ordinary(offset); + } + + /// Identifies the market segment, populated for all CME + /// Globex instruments. + UInt8 marketSegmentId() const + { + const BodySize offset = 17; + + return ordinary(offset); + } + + /// Product complex. + UInt8 underlyingProduct() const + { + const BodySize offset = 18; + + return ordinary(offset); + } + + /// Exchange used to identify a security. + StrRef securityExchange() const + { + const BodySize offset = 19; + const BodySize length = 4; + + return fixedStr(offset); + } + + /// Security Group Code. + StrRef securityGroup() const + { + const BodySize offset = 23; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// The underlying asset code also known as Product Code. + StrRef asset() const + { + const BodySize offset = 29; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// Instrument Name or Symbol. + StrRef symbol() const + { + const BodySize offset = 35; + const BodySize length = 20; + + return fixedStr(offset); + } + + /// Unique instrument ID. + Int32 securityId() const + { + const BodySize offset = 55; + + return ordinary(offset); + } + + /// Identifies class or source of tag 48-SecurityID value. + SecurityIDSource securityIdSource() const + { + return SecurityIDSource(); + } + + /// Security Type. + StrRef securityType() const + { + const BodySize offset = 59; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// ISO standard instrument categorization code. + StrRef cfiCode() const + { + const BodySize offset = 65; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// This field provides the actual calendar date for contract + /// maturity. + bool maturityMonthYear(MaturityMonthYear& value) const + { + typedef NullMaturityMonthYear Null; + + const BodySize offset = 71; + + return ordinary(value, offset, Null()); + } + + /// Identifies currency used for price. + StrRef currency() const + { + const BodySize offset = 76; + const BodySize length = 3; + + return fixedStr(offset); + } + + /// Identifies currency used for settlement, if different from + /// trading currency. + StrRef settlCurrency() const + { + const BodySize offset = 79; + const BodySize length = 3; + + return fixedStr(offset); + } + + /// Matching algorithm. + CHAR matchAlgorithm() const + { + const BodySize offset = 82; + + return ordinary(offset); + } + + /// The minimum trading volume for a security. + UInt32 minTradeVol() const + { + const BodySize offset = 83; + + return ordinary(offset); + } + + /// The maximum trading volume for a security. + UInt32 maxTradeVol() const + { + const BodySize offset = 87; + + return ordinary(offset); + } + + /// Minimum constant tick for the instrument, sent only if + /// instrument is non-VTT (Variable Tick table) eligible. + Decimal minPriceIncrement() const + { + const BodySize offset = 91; + + return decimal(offset); + } + + /// Contains the multiplier to convert the CME Globex display + /// price to the conventional price. + Decimal displayFactor() const + { + const BodySize offset = 99; + + return decimal(offset); + } + + /// Price Denominator of Main Fraction. + bool mainFraction(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 107; + + return ordinary(value, offset, Null()); + } + + /// Price Denominator of Sub Fraction. + bool subFraction(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 108; + + return ordinary(value, offset, Null()); + } + + /// Number of decimals in fractional display price. + bool priceDisplayFormat(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 109; + + return ordinary(value, offset, Null()); + } + + /// Unit of measure for the products' original contract size. + /// This will be populated for all products listed on CME + /// Globex. + StrRef unitOfMeasure() const + { + const BodySize offset = 110; + const BodySize length = 30; + + return fixedStr(offset); + } + + /// This field contains the contract size for each instrument. + /// Used in combination with tag 996-UnitofMeasure. + bool unitOfMeasureQty(Decimal& value) const + { + typedef NullDecimal9 Null; + + const BodySize offset = 140; + + return decimal(value, offset, Null()); + } + + /// Reference price for prelisted instruments or the last + /// calculated Settlement whether it be Theoretical, + /// Preliminary or a Final Settle of the session. + bool tradingReferencePrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 148; + + return decimal(value, offset, Null()); + } + + /// Bitmap field of eight Boolean type indicators representing + /// settlement price type. + const SettlPriceType& settlPriceType() const + { + const BodySize offset = 156; + + return ordinary(offset); + } + + /// The total open interest for the market at the close of the + /// prior trading session. + bool openInterestQty(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 157; + + return ordinary(value, offset, Null()); + } + + /// The total cleared volume of instrument traded during the + /// prior trading session. + bool clearedVolume(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 161; + + return ordinary(value, offset, Null()); + } + + /// Allowable high limit price for the trading day. + bool highLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 165; + + return decimal(value, offset, Null()); + } + + /// Allowable low limit price for the trading day. + bool lowLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 173; + + return decimal(value, offset, Null()); + } + + /// Differential value for price banding. + bool maxPriceVariation(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 181; + + return decimal(value, offset, Null()); + } + + /// Indicates the quantity that a contract will decay daily by + /// once the decay start date is reached. + bool decayQuantity(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 189; + + return ordinary(value, offset, Null()); + } + + /// Indicates the date at which a decaying contract will begin + /// to decay. + bool decayStartDate(Timestamp& value) const + { + typedef NullLocalMktDate Null; + typedef LocalMktDate FieldValue; + + const BodySize offset = 193; + + FieldValue fieldValue; + + if (ordinary(fieldValue, offset, Null())) + { + value = localMktDateToTimestamp(fieldValue); + return true; + } + return false; + } + + /// Fixed contract value assigned to each product. + bool originalContractSize(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 195; + + return ordinary(value, offset, Null()); + } + + /// Number of deliverable units per instrument, e.g., peak + /// days in maturity month or number of calendar days in + /// maturity month. + bool contractMultiplier(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 199; + + return ordinary(value, offset, Null()); + } + + /// Indicates the type of multiplier being applied to the + /// product. Optionally used in combination with tag + /// 231-ContractMultiplier. + bool contractMultiplierUnit(Int8& value) const + { + typedef NullInt8 Null; + + const BodySize offset = 203; + + return ordinary(value, offset, Null()); + } + + /// The schedule according to which the electricity is + /// delivered in a physical contract, or priced in a financial + /// contract. Specifies whether the contract is defined + /// according to the Easter Peak, Eastern Off-Peak, Western + /// Peak or Western Off-Peak. + bool flowScheduleType(Int8& value) const + { + typedef NullInt8 Null; + + const BodySize offset = 204; + + return ordinary(value, offset, Null()); + } + + /// Monetary value equivalent to the minimum price fluctuation. + bool minPriceIncrementAmount(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 205; + + return decimal(value, offset, Null()); + } + + /// User-defined instruments flag. + UserDefinedInstrument userDefinedInstrument() const + { + const BodySize offset = 213; + + return ordinary(offset); + } + + /// Indicates session date corresponding to the settlement + /// price in tag 1150-TradingReferencePrice. + bool tradingReferenceDate(Timestamp& value) const + { + typedef NullLocalMktDate Null; + typedef LocalMktDate FieldValue; + + const BodySize offset = 214; + + FieldValue fieldValue; + + if (ordinary(fieldValue, offset, Null())) + { + value = localMktDateToTimestamp(fieldValue); + return true; + } + return false; + } + + /// Returns instance of Events repeating group. + Events events() const + { + return + groups(). + head(); + } + + /// Returns instance of FeedTypes repeating group. + FeedTypes feedTypes() const + { + return + groups(). + tail(). + head(); + } + + /// Returns instance of InstAttrib repeating group. + InstAttrib instAttrib() const + { + return + groups(). + tail(). + tail(). + head(); + } + + /// Returns instance of LotTypeRules repeating group. + LotTypeRules lotTypeRules() const + { + return + groups(). + tail(). + tail(). + tail(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 216; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionFuture54"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("d"); + } +}; + +/// MDInstrumentDefinitionSpread. +ONIXS_CMEMDH_LTWT_STRUCT +InstrumentDefinitionSpread56 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 56 }; + + /// Number of repeating EventType entries. + /// Entry of EventsEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + EventsEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + EventsEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + EventsEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Code to represent the type of event. + EventType::Enum eventType() const + { + const BodySize offset = 0; + + return enumeration(offset); + } + + /// Date and time of instument Activation or Expiration event + /// sent as number of nanoseconds since Unix epoch. + Timestamp eventTime() const + { + const BodySize offset = 1; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionSpread56.EventsEntry"; + } + }; + + /// Repeating group containing EventsEntry entries. + typedef + BinaryGroup + Events; + + /// Number of FeedType entries. + /// Entry of FeedTypesEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + FeedTypesEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + FeedTypesEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + FeedTypesEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Describes a class of service for a given data feed. GBX- + /// Real Book, GBI-Implied Book. + StrRef feedType() const + { + const BodySize offset = 0; + const BodySize length = 3; + + return fixedStr(offset); + } + + /// Identifies the depth of book. + Int8 marketDepth() const + { + const BodySize offset = 3; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 4; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionSpread56.FeedTypesEntry"; + } + }; + + /// Repeating group containing FeedTypesEntry entries. + typedef + BinaryGroup + FeedTypes; + + /// Number of InstrAttribType entries. + /// Entry of InstAttribEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + InstAttribEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + InstAttribEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + InstAttribEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Instrument Eligibility Attributes. + InstAttribType instAttribType() const + { + return InstAttribType(); + } + + /// Bitmap field of 32 Boolean type Instrument eligibility + /// flags. + const InstAttribValue& instAttribValue() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 4; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionSpread56.InstAttribEntry"; + } + }; + + /// Repeating group containing InstAttribEntry entries. + typedef + BinaryGroup + InstAttrib; + + /// Number of entries. + /// Entry of LotTypeRulesEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + LotTypeRulesEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + LotTypeRulesEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + LotTypeRulesEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// This tag is required to interpret the value in tag + /// 1231-MinLotSize. + Int8 lotType() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Minimum quantity accepted for order entry. If tag + /// 1093-LotType=4, this value is the minimum quantity for + /// order entry expressed in the applicable units, specified + /// in tag 996-UnitOfMeasure, e.g. megawatts. + bool minLotSize(Decimal& value) const + { + typedef NullDecimalQty Null; + + const BodySize offset = 1; + + return decimal(value, offset, Null()); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 5; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionSpread56.LotTypeRulesEntry"; + } + }; + + /// Repeating group containing LotTypeRulesEntry entries. + typedef + BinaryGroup + LotTypeRules; + + /// Number of Leg entries. + /// Entry of LegsEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + LegsEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + LegsEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + LegsEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Leg Security ID. + Int32 legSecurityId() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Identifies source of tag 602-LegSecurityID value. + SecurityIDSource legSecurityIdSource() const + { + return SecurityIDSource(); + } + + /// Leg side. + LegSide::Enum legSide() const + { + const BodySize offset = 4; + + return enumeration(offset); + } + + /// Leg ratio of quantity for this individual leg relative to + /// the entire multi-leg instrument. + Int8 legRatioQty() const + { + const BodySize offset = 5; + + return ordinary(offset); + } + + /// Price for the future leg of a UDS Covered instrument. + bool legPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 6; + + return decimal(value, offset, Null()); + } + + /// Delta used to calculate the quantity of futures used to + /// cover the option or option strategy. + bool legOptionDelta(Decimal& value) const + { + typedef NullDecimalQty Null; + + const BodySize offset = 14; + + return decimal(value, offset, Null()); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 18; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionSpread56.LegsEntry"; + } + }; + + /// Repeating group containing LegsEntry entries. + typedef + BinaryGroup + Legs; + + /// Initializes blank instance. + InstrumentDefinitionSpread56() + { + } + + /// Initializes instance over given memory block. + InstrumentDefinitionSpread56( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Total number of instruments in the Replay loop. Used on + /// Replay Feed only. + bool totNumReports(UInt32& value) const + { + typedef NullUInt32 Null; + + const BodySize offset = 1; + + return ordinary(value, offset, Null()); + } + + /// Last Security update action on Incremental feed, 'D' or + /// 'M' is used when a mid-week deletion or modification (i.e. + /// extension) occurs. + SecurityUpdateAction::Enum + securityUpdateAction() const + { + const BodySize offset = 5; + + return enumeration(offset); + } + + /// Timestamp of when the instrument was last added, modified + /// or deleted. + Timestamp lastUpdateTime() const + { + const BodySize offset = 6; + + return ordinary(offset); + } + + /// Identifies the current state of the instrument. The data + /// is available in the Instrument Replay feed only. + bool + securityTradingStatus( + SecurityTradingStatus::Enum& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 14; + + return enumeration(value, offset, Null()); + } + + /// The channel ID as defined in the XML Configuration file. + Int16 applId() const + { + const BodySize offset = 15; + + return ordinary(offset); + } + + /// Identifies the market segment, populated for all CME + /// Globex instruments. + UInt8 marketSegmentId() const + { + const BodySize offset = 17; + + return ordinary(offset); + } + + /// Product complex. + bool underlyingProduct(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 18; + + return ordinary(value, offset, Null()); + } + + /// Exchange used to identify a security. + StrRef securityExchange() const + { + const BodySize offset = 19; + const BodySize length = 4; + + return fixedStr(offset); + } + + /// Security Group Code. + StrRef securityGroup() const + { + const BodySize offset = 23; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// The underlying asset code also known as Product Code. + StrRef asset() const + { + const BodySize offset = 29; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// Instrument Name or Symbol. Previously used as Group Code. + StrRef symbol() const + { + const BodySize offset = 35; + const BodySize length = 20; + + return fixedStr(offset); + } + + /// Unique instrument ID. + Int32 securityId() const + { + const BodySize offset = 55; + + return ordinary(offset); + } + + /// Identifies class or source of the security ID (Tag 48) + /// value. + SecurityIDSource securityIdSource() const + { + return SecurityIDSource(); + } + + /// Security Type. + StrRef securityType() const + { + const BodySize offset = 59; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// ISO standard instrument categorization code. + StrRef cfiCode() const + { + const BodySize offset = 65; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// This field provides the actual calendar date for contract + /// maturity. + bool maturityMonthYear(MaturityMonthYear& value) const + { + typedef NullMaturityMonthYear Null; + + const BodySize offset = 71; + + return ordinary(value, offset, Null()); + } + + /// Identifies currency used for price. + StrRef currency() const + { + const BodySize offset = 76; + const BodySize length = 3; + + return fixedStr(offset); + } + + /// Strategy type. + StrRef securitySubType() const + { + const BodySize offset = 79; + const BodySize length = 5; + + return fixedStr(offset); + } + + /// User-defined instruments flag. + UserDefinedInstrument userDefinedInstrument() const + { + const BodySize offset = 84; + + return ordinary(offset); + } + + /// Matching algorithm. + CHAR matchAlgorithm() const + { + const BodySize offset = 85; + + return ordinary(offset); + } + + /// The minimum trading volume for a security. + UInt32 minTradeVol() const + { + const BodySize offset = 86; + + return ordinary(offset); + } + + /// The maximum trading volume for a security. + UInt32 maxTradeVol() const + { + const BodySize offset = 90; + + return ordinary(offset); + } + + /// Minimum constant tick for the instrument, sent only if + /// instrument is non-VTT (Variable Tick table) eligible. + bool minPriceIncrement(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 94; + + return decimal(value, offset, Null()); + } + + /// Contains the multiplier to convert the CME Globex display + /// price to the conventional price. + Decimal displayFactor() const + { + const BodySize offset = 102; + + return decimal(offset); + } + + /// Number of decimals in fractional display price. + bool priceDisplayFormat(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 110; + + return ordinary(value, offset, Null()); + } + + /// Used for price calculation in spread and leg pricing. + bool priceRatio(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 111; + + return decimal(value, offset, Null()); + } + + /// Tick Rule. + bool tickRule(Int8& value) const + { + typedef NullInt8 Null; + + const BodySize offset = 119; + + return ordinary(value, offset, Null()); + } + + /// Unit of measure for the products' original contract size. + StrRef unitOfMeasure() const + { + const BodySize offset = 120; + const BodySize length = 30; + + return fixedStr(offset); + } + + /// Reference price - the most recently available Settlement + /// whether it be Theoretical, Preliminary or a Final Settle + /// of the session. + bool tradingReferencePrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 150; + + return decimal(value, offset, Null()); + } + + /// Bitmap field of eight Boolean type indicators representing + /// settlement price type. + const SettlPriceType& settlPriceType() const + { + const BodySize offset = 158; + + return ordinary(offset); + } + + /// The total open interest for the market at the close of the + /// prior trading session. + bool openInterestQty(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 159; + + return ordinary(value, offset, Null()); + } + + /// The total cleared volume of instrument traded during the + /// prior trading session. + bool clearedVolume(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 163; + + return ordinary(value, offset, Null()); + } + + /// Allowable high limit price for the trading day. + bool highLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 167; + + return decimal(value, offset, Null()); + } + + /// Allowable low limit price for the trading day. + bool lowLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 175; + + return decimal(value, offset, Null()); + } + + /// Differential value for price banding. + bool maxPriceVariation(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 183; + + return decimal(value, offset, Null()); + } + + /// Price Denominator of Main Fraction. + bool mainFraction(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 191; + + return ordinary(value, offset, Null()); + } + + /// Price Denominator of Sub Fraction. + bool subFraction(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 192; + + return ordinary(value, offset, Null()); + } + + /// Indicates session date corresponding to the settlement + /// price in tag 1150-TradingReferencePrice. + bool tradingReferenceDate(Timestamp& value) const + { + typedef NullLocalMktDate Null; + typedef LocalMktDate FieldValue; + + const BodySize offset = 193; + + FieldValue fieldValue; + + if (ordinary(fieldValue, offset, Null())) + { + value = localMktDateToTimestamp(fieldValue); + return true; + } + return false; + } + + /// Returns instance of Events repeating group. + Events events() const + { + return + groups(). + head(); + } + + /// Returns instance of FeedTypes repeating group. + FeedTypes feedTypes() const + { + return + groups(). + tail(). + head(); + } + + /// Returns instance of InstAttrib repeating group. + InstAttrib instAttrib() const + { + return + groups(). + tail(). + tail(). + head(); + } + + /// Returns instance of LotTypeRules repeating group. + LotTypeRules lotTypeRules() const + { + return + groups(). + tail(). + tail(). + tail(). + head(); + } + + /// Returns instance of Legs repeating group. + Legs legs() const + { + return + groups(). + tail(). + tail(). + tail(). + tail(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 195; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionSpread56"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("d"); + } +}; + +/// SecurityStatus. +ONIXS_CMEMDH_LTWT_STRUCT +SecurityStatus30 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 30 }; + + /// Initializes blank instance. + SecurityStatus30() + { + } + + /// Initializes instance over given memory block. + SecurityStatus30( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Security Group. + StrRef securityGroup() const + { + const BodySize offset = 8; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// Product Code within Security Group specified. + StrRef asset() const + { + const BodySize offset = 14; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// If this tag is present, 35=f message is sent for the + /// instrument. + bool securityId(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 20; + + return ordinary(value, offset, Null()); + } + + /// Trade Session Date. + bool tradeDate(Timestamp& value) const + { + typedef NullLocalMktDate Null; + typedef LocalMktDate FieldValue; + + const BodySize offset = 24; + + FieldValue fieldValue; + + if (ordinary(fieldValue, offset, Null())) + { + value = localMktDateToTimestamp(fieldValue); + return true; + } + return false; + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 26; + + return ordinary(offset); + } + + /// Identifies the trading status applicable to the instrument + /// or Security Group. + bool + securityTradingStatus( + SecurityTradingStatus::Enum& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 27; + + return enumeration(value, offset, Null()); + } + + /// Identifies the reason for the status change. + HaltReason::Enum haltReason() const + { + const BodySize offset = 28; + + return enumeration(offset); + } + + /// Identifies an additional event or a rule related to the + /// status. + SecurityTradingEvent::Enum + securityTradingEvent() const + { + const BodySize offset = 29; + + return enumeration(offset); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 30; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "SecurityStatus30"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("f"); + } +}; + +/// MDIncrementalRefreshBook. +ONIXS_CMEMDH_LTWT_STRUCT +IncrementalRefreshBook46 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 46 }; + + /// Number of entries in Market Data message. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Market Data entry price. + bool entryPx(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 0; + + return decimal(value, offset, Null()); + } + + /// Market Data entry size. + bool entrySize(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 8; + + return ordinary(value, offset, Null()); + } + + /// Security ID. + Int32 securityId() const + { + const BodySize offset = 12; + + return ordinary(offset); + } + + /// Market Data entry sequence number per instrument update. + UInt32 rptSeq() const + { + const BodySize offset = 16; + + return ordinary(offset); + } + + /// In Book entry - aggregate number of orders at given price + /// level. + bool numberOfOrders(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 20; + + return ordinary(value, offset, Null()); + } + + /// Aggregate book level. + UInt8 priceLevel() const + { + const BodySize offset = 24; + + return ordinary(offset); + } + + /// Market Data update action. + UpdateAction::Enum updateAction() const + { + const BodySize offset = 25; + + return enumeration(offset); + } + + /// Market Data entry type. + EntryTypeBook::Enum entryType() const + { + const BodySize offset = 26; + + return enumeration(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 27; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshBook46.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Number of OrderID entries. + /// Entry of OrderIDEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + OrderIDEntry : BinaryGroupEntry + < + GroupSize8Byte::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize8Byte::BlockLength + > + Base; + + /// Initializes blank instance. + OrderIDEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + OrderIDEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Unique Order ID. + UInt64 orderId() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Order priority for execution on the order book. + bool orderPriority(UInt64& value) const + { + typedef NullUInt64 Null; + + const BodySize offset = 8; + + return ordinary(value, offset, Null()); + } + + /// Visible qty of order. + bool displayQty(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 16; + + return ordinary(value, offset, Null()); + } + + /// Reference to corresponding Price and Security ID, sequence + /// of MD entry in the message. + bool referenceId(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 20; + + return ordinary(value, offset, Null()); + } + + /// Order book update action to be applied to the order + /// referenced by OrderID. + OrderUpdateAction::Enum orderUpdateAction() const + { + const BodySize offset = 21; + + return enumeration(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 22; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshBook46.OrderIDEntry"; + } + }; + + /// Repeating group containing OrderIDEntry entries. + typedef + BinaryGroup + OrderIDEntries; + + /// Initializes blank instance. + IncrementalRefreshBook46() + { + } + + /// Initializes instance over given memory block. + IncrementalRefreshBook46( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Returns instance of OrderIDEntries repeating group. + OrderIDEntries orderIdEntries() const + { + return + groups(). + tail(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshBook46"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("X"); + } +}; + +/// MDIncrementalRefreshDailyStatistics. +ONIXS_CMEMDH_LTWT_STRUCT +IncrementalRefreshDailyStatistics49 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 49 }; + + /// Number of entries in Market Data message. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Market Data entry price. + bool entryPx(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 0; + + return decimal(value, offset, Null()); + } + + /// Market Data entry size. + bool entrySize(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 8; + + return ordinary(value, offset, Null()); + } + + /// Security ID. + Int32 securityId() const + { + const BodySize offset = 12; + + return ordinary(offset); + } + + /// Market Data entry sequence number per instrument update. + UInt32 rptSeq() const + { + const BodySize offset = 16; + + return ordinary(offset); + } + + /// Indicates trade session date corresponding to a statistic + /// entry. + bool tradingReferenceDate(Timestamp& value) const + { + typedef NullLocalMktDate Null; + typedef LocalMktDate FieldValue; + + const BodySize offset = 20; + + FieldValue fieldValue; + + if (ordinary(fieldValue, offset, Null())) + { + value = localMktDateToTimestamp(fieldValue); + return true; + } + return false; + } + + /// Bitmap field of eight Boolean type indicators representing + /// settlement price type. + const SettlPriceType& settlPriceType() const + { + const BodySize offset = 22; + + return ordinary(offset); + } + + /// Market Data update action. + UpdateAction::Enum updateAction() const + { + const BodySize offset = 23; + + return enumeration(offset); + } + + /// Market Data entry type. + EntryTypeDailyStatistics::Enum + entryType() const + { + const BodySize offset = 24; + + return enumeration(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 25; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshDailyStatistics49.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Initializes blank instance. + IncrementalRefreshDailyStatistics49() + { + } + + /// Initializes instance over given memory block. + IncrementalRefreshDailyStatistics49( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshDailyStatistics49"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("X"); + } +}; + +/// MDIncrementalRefreshLimitsBanding. +ONIXS_CMEMDH_LTWT_STRUCT +IncrementalRefreshLimitsBanding50 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 50 }; + + /// Number of entries in Market Data message. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Upper price threshold for the instrument. + bool highLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 0; + + return decimal(value, offset, Null()); + } + + /// Lower price threshold for the instrument. + bool lowLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 8; + + return decimal(value, offset, Null()); + } + + /// Differential static value for price banding. + bool maxPriceVariation(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 16; + + return decimal(value, offset, Null()); + } + + /// Security ID. + Int32 securityId() const + { + const BodySize offset = 24; + + return ordinary(offset); + } + + /// MD Entry sequence number per instrument update. + UInt32 rptSeq() const + { + const BodySize offset = 28; + + return ordinary(offset); + } + + /// Market Data entry update action. In order to delete + /// banding value, high or low limit, the deleted price field + /// is populated with a NULL. + UpdateActionNew updateAction() const + { + return UpdateActionNew(); + } + + /// Market Data entry type. + EntryTypeLimits entryType() const + { + return EntryTypeLimits(); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 32; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshLimitsBanding50.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Initializes blank instance. + IncrementalRefreshLimitsBanding50() + { + } + + /// Initializes instance over given memory block. + IncrementalRefreshLimitsBanding50( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshLimitsBanding50"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("X"); + } +}; + +/// MDIncrementalRefreshSessionStatistics. +ONIXS_CMEMDH_LTWT_STRUCT +IncrementalRefreshSessionStatistics51 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 51 }; + + /// Number of entries in Market Data message. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Market Data entry price. + Decimal entryPx() const + { + const BodySize offset = 0; + + return decimal(offset); + } + + /// Security ID. + Int32 securityId() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// MD Entry sequence number per instrument update. + UInt32 rptSeq() const + { + const BodySize offset = 12; + + return ordinary(offset); + } + + /// Flag describing IOP and Open Price entries. + bool + openCloseSettlFlag( + OpenCloseSettlFlag::Enum& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 16; + + return enumeration(value, offset, Null()); + } + + /// Market Data update action. + UpdateAction::Enum updateAction() const + { + const BodySize offset = 17; + + return enumeration(offset); + } + + /// Market Data entry type. + EntryTypeStatistics::Enum + entryType() const + { + const BodySize offset = 18; + + return enumeration(offset); + } + + /// Indicative Opening Quantity. + bool entrySize(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 19; + + return ordinary(value, offset, Null()); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 23; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshSessionStatistics51.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Initializes blank instance. + IncrementalRefreshSessionStatistics51() + { + } + + /// Initializes instance over given memory block. + IncrementalRefreshSessionStatistics51( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshSessionStatistics51"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("X"); + } +}; + +/// MDIncrementalRefreshVolume. +ONIXS_CMEMDH_LTWT_STRUCT +IncrementalRefreshVolume37 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 37 }; + + /// Number of entries in Market Data message. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Cumulative traded volume. + Int32 entrySize() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Security ID. + Int32 securityId() const + { + const BodySize offset = 4; + + return ordinary(offset); + } + + /// Market Data entry sequence number per instrument update. + UInt32 rptSeq() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Market Data update action. + UpdateAction::Enum updateAction() const + { + const BodySize offset = 12; + + return enumeration(offset); + } + + /// Electronic Volume entry provides cumulative session trade + /// volume updated with the event. + EntryTypeVol entryType() const + { + return EntryTypeVol(); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 13; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshVolume37.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Initializes blank instance. + IncrementalRefreshVolume37() + { + } + + /// Initializes instance over given memory block. + IncrementalRefreshVolume37( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshVolume37"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("X"); + } +}; + +/// SnapshotFullRefresh. +ONIXS_CMEMDH_LTWT_STRUCT +SnapshotFullRefresh52 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 52 }; + + /// Number of entries in Market Data message. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Market Data entry price. + bool entryPx(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 0; + + return decimal(value, offset, Null()); + } + + /// Market Data entry quantity. + bool entrySize(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 8; + + return ordinary(value, offset, Null()); + } + + /// Aggregate number of orders at the given price level. + bool numberOfOrders(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 12; + + return ordinary(value, offset, Null()); + } + + /// Aggregate book position. + bool priceLevel(Int8& value) const + { + typedef NullInt8 Null; + + const BodySize offset = 16; + + return ordinary(value, offset, Null()); + } + + /// Indicates the date of trade session corresponding to a + /// statistic entry. + bool tradingReferenceDate(Timestamp& value) const + { + typedef NullLocalMktDate Null; + typedef LocalMktDate FieldValue; + + const BodySize offset = 17; + + FieldValue fieldValue; + + if (ordinary(fieldValue, offset, Null())) + { + value = localMktDateToTimestamp(fieldValue); + return true; + } + return false; + } + + /// Flag describing Open Price entry. + bool + openCloseSettlFlag( + OpenCloseSettlFlag::Enum& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 19; + + return enumeration(value, offset, Null()); + } + + /// Bitmap field of eight Boolean type indicators representing + /// settlement price type. + const SettlPriceType& settlPriceType() const + { + const BodySize offset = 20; + + return ordinary(offset); + } + + /// Market Data entry type. + EntryType::Enum entryType() const + { + const BodySize offset = 21; + + return enumeration(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 22; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "SnapshotFullRefresh52.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Initializes blank instance. + SnapshotFullRefresh52() + { + } + + /// Initializes instance over given memory block. + SnapshotFullRefresh52( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Sequence number of the last Incremental feed packet + /// processed. This value is used to synchronize the snapshot + /// loop with the real-time feed. + UInt32 lastMsgSeqNumProcessed() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Total number of messages replayed in the loop. + UInt32 totNumReports() const + { + const BodySize offset = 4; + + return ordinary(offset); + } + + /// Security ID. + Int32 securityId() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Sequence number of the last Market Data entry processed + /// for the instrument. + UInt32 rptSeq() const + { + const BodySize offset = 12; + + return ordinary(offset); + } + + /// Timestamp of the last event security participated in, sent + /// as number of nanoseconds since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 16; + + return ordinary(offset); + } + + /// UTC Date and time of last Security Definition add, update + /// or delete on a given Market Data channel. + Timestamp lastUpdateTime() const + { + const BodySize offset = 24; + + return ordinary(offset); + } + + /// Trade session date sent as number of days since Unix epoch. + bool tradeDate(Timestamp& value) const + { + typedef NullLocalMktDate Null; + typedef LocalMktDate FieldValue; + + const BodySize offset = 32; + + FieldValue fieldValue; + + if (ordinary(fieldValue, offset, Null())) + { + value = localMktDateToTimestamp(fieldValue); + return true; + } + return false; + } + + /// Identifies the current trading state of the instrument. + bool + securityTradingStatus( + SecurityTradingStatus::Enum& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 34; + + return enumeration(value, offset, Null()); + } + + /// Upper price threshold for the instrument. + bool highLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 35; + + return decimal(value, offset, Null()); + } + + /// Lower price threshold for the instrument. + bool lowLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 43; + + return decimal(value, offset, Null()); + } + + /// Differential value for price banding. + bool maxPriceVariation(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 51; + + return decimal(value, offset, Null()); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 59; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "SnapshotFullRefresh52"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("W"); + } +}; + +/// QuoteRequest. +ONIXS_CMEMDH_LTWT_STRUCT +QuoteRequest39 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 39 }; + + /// Indicates the number of repeating symbols specified. + /// Entry of RelatedSymEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + RelatedSymEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + RelatedSymEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + RelatedSymEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Instrument Name or Symbol. + StrRef symbol() const + { + const BodySize offset = 0; + const BodySize length = 20; + + return fixedStr(offset); + } + + /// Security ID. + Int32 securityId() const + { + const BodySize offset = 20; + + return ordinary(offset); + } + + /// Quantity requested. + bool orderQty(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 24; + + return ordinary(value, offset, Null()); + } + + /// Type of quote requested. + Int8 quoteType() const + { + const BodySize offset = 28; + + return ordinary(offset); + } + + /// Side requested. + bool side(Int8& value) const + { + typedef NullInt8 Null; + + const BodySize offset = 29; + + return ordinary(value, offset, Null()); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 30; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "QuoteRequest39.RelatedSymEntry"; + } + }; + + /// Repeating group containing RelatedSymEntry entries. + typedef + BinaryGroup + RelatedSym; + + /// Initializes blank instance. + QuoteRequest39() + { + } + + /// Initializes instance over given memory block. + QuoteRequest39( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Quote Request ID defined by the exchange. + StrRef quoteReqId() const + { + const BodySize offset = 8; + const BodySize length = 23; + + return fixedStr(offset); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 31; + + return ordinary(offset); + } + + /// Returns instance of RelatedSym repeating group. + RelatedSym relatedSym() const + { + return + groups(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 32; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "QuoteRequest39"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("R"); + } +}; + +/// MDInstrumentDefinitionOption. +ONIXS_CMEMDH_LTWT_STRUCT +InstrumentDefinitionOption55 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 55 }; + + /// Number of EventType entries. + /// Entry of EventsEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + EventsEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + EventsEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + EventsEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Code to represent the type of event. + EventType::Enum eventType() const + { + const BodySize offset = 0; + + return enumeration(offset); + } + + /// Date and Time of instument Activation or Expiration event + /// sent as number of nanoseconds since Unix epoch. + Timestamp eventTime() const + { + const BodySize offset = 1; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionOption55.EventsEntry"; + } + }; + + /// Repeating group containing EventsEntry entries. + typedef + BinaryGroup + Events; + + /// Number of FeedType entries. + /// Entry of FeedTypesEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + FeedTypesEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + FeedTypesEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + FeedTypesEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Describes a class of service for a given data feed. GBX- + /// Real Book, GBI-Implied Book. + StrRef feedType() const + { + const BodySize offset = 0; + const BodySize length = 3; + + return fixedStr(offset); + } + + /// Book depth. + Int8 marketDepth() const + { + const BodySize offset = 3; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 4; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionOption55.FeedTypesEntry"; + } + }; + + /// Repeating group containing FeedTypesEntry entries. + typedef + BinaryGroup + FeedTypes; + + /// Number of InstrAttribType entries. + /// Entry of InstAttribEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + InstAttribEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + InstAttribEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + InstAttribEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Instrument Eligibility Attributes. + InstAttribType instAttribType() const + { + return InstAttribType(); + } + + /// Bitmap field of 32 Boolean type Instrument eligibility + /// flags. + const InstAttribValue& instAttribValue() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 4; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionOption55.InstAttribEntry"; + } + }; + + /// Repeating group containing InstAttribEntry entries. + typedef + BinaryGroup + InstAttrib; + + /// Number of entries. + /// Entry of LotTypeRulesEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + LotTypeRulesEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + LotTypeRulesEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + LotTypeRulesEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// This tag is required to interpret the value in tag + /// 1231-MinLotSize. + Int8 lotType() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Minimum quantity accepted for order entry. If tag + /// 1093-LotType=4, this value is the minimum quantity for + /// order entry expressed in the applicable units, specified + /// in tag 996-UnitOfMeasure, e.g. megawatts. + bool minLotSize(Decimal& value) const + { + typedef NullDecimalQty Null; + + const BodySize offset = 1; + + return decimal(value, offset, Null()); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 5; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionOption55.LotTypeRulesEntry"; + } + }; + + /// Repeating group containing LotTypeRulesEntry entries. + typedef + BinaryGroup + LotTypeRules; + + /// Number of underlying instruments. + /// Entry of UnderlyingsEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + UnderlyingsEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + UnderlyingsEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + UnderlyingsEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Unique Instrument ID as qualified by the exchange per tag + /// 305-UnderlyingSecurityIDSource. + Int32 underlyingSecurityId() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// This value is always '8' for CME. + SecurityIDSource underlyingSecurityIdSource() const + { + return SecurityIDSource(); + } + + /// Underlying Instrument Symbol (Contract Name). + StrRef underlyingSymbol() const + { + const BodySize offset = 4; + const BodySize length = 20; + + return fixedStr(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 24; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionOption55.UnderlyingsEntry"; + } + }; + + /// Repeating group containing UnderlyingsEntry entries. + typedef + BinaryGroup + Underlyings; + + /// Number of related instruments group. + /// Entry of RelatedInstrumentsEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + RelatedInstrumentsEntry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + RelatedInstrumentsEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + RelatedInstrumentsEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Related Security ID. + Int32 relatedSecurityId() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Related Security ID source. + SecurityIDSource relatedSecurityIdSource() const + { + return SecurityIDSource(); + } + + /// Related instrument Symbol. + StrRef relatedSymbol() const + { + const BodySize offset = 4; + const BodySize length = 20; + + return fixedStr(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 24; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionOption55.RelatedInstrumentsEntry"; + } + }; + + /// Repeating group containing RelatedInstrumentsEntry entries. + typedef + BinaryGroup + RelatedInstruments; + + /// Initializes blank instance. + InstrumentDefinitionOption55() + { + } + + /// Initializes instance over given memory block. + InstrumentDefinitionOption55( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Total number of instruments in the Replay loop. Used on + /// Replay Feed only. + bool totNumReports(UInt32& value) const + { + typedef NullUInt32 Null; + + const BodySize offset = 1; + + return ordinary(value, offset, Null()); + } + + /// Last Security update action on Incremental feed, 'D' or + /// 'M' is used when a mid-week deletion or modification (i.e. + /// extension) occurs. + SecurityUpdateAction::Enum + securityUpdateAction() const + { + const BodySize offset = 5; + + return enumeration(offset); + } + + /// Timestamp of when the instrument was last added, modified + /// or deleted. + Timestamp lastUpdateTime() const + { + const BodySize offset = 6; + + return ordinary(offset); + } + + /// Identifies the current state of the instrument. The data + /// is available in the Instrument Replay feed only. + bool + securityTradingStatus( + SecurityTradingStatus::Enum& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 14; + + return enumeration(value, offset, Null()); + } + + /// The channel ID as defined in the XML Configuration file. + Int16 applId() const + { + const BodySize offset = 15; + + return ordinary(offset); + } + + /// Identifies the market segment, populated for all CME + /// Globex instruments. + UInt8 marketSegmentId() const + { + const BodySize offset = 17; + + return ordinary(offset); + } + + /// Indicates the product complex. + UInt8 underlyingProduct() const + { + const BodySize offset = 18; + + return ordinary(offset); + } + + /// Exchange used to identify a security. + StrRef securityExchange() const + { + const BodySize offset = 19; + const BodySize length = 4; + + return fixedStr(offset); + } + + /// Security Group Code. + StrRef securityGroup() const + { + const BodySize offset = 23; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// The underlying asset code also known as Product Code. + StrRef asset() const + { + const BodySize offset = 29; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// Instrument Name or Symbol. Previously used as Instrument + /// Group Code. + StrRef symbol() const + { + const BodySize offset = 35; + const BodySize length = 20; + + return fixedStr(offset); + } + + /// Unique Instrument ID. + Int32 securityId() const + { + const BodySize offset = 55; + + return ordinary(offset); + } + + /// Identifies class or source of tag 48-SecurityID value. + SecurityIDSource securityIdSource() const + { + return SecurityIDSource(); + } + + /// Security Type. + StrRef securityType() const + { + const BodySize offset = 59; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// ISO standard instrument categorization code. + StrRef cfiCode() const + { + const BodySize offset = 65; + const BodySize length = 6; + + return fixedStr(offset); + } + + /// Indicates whether an option instrument is a put or call. + PutOrCall::Enum putOrCall() const + { + const BodySize offset = 71; + + return enumeration(offset); + } + + /// This field provides the actual calendar date for contract + /// maturity. + bool maturityMonthYear(MaturityMonthYear& value) const + { + typedef NullMaturityMonthYear Null; + + const BodySize offset = 72; + + return ordinary(value, offset, Null()); + } + + /// Identifies currency used for price. + StrRef currency() const + { + const BodySize offset = 77; + const BodySize length = 3; + + return fixedStr(offset); + } + + /// Strike Price for an option instrument. + bool strikePrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 80; + + return decimal(value, offset, Null()); + } + + /// Currency in which the StrikePrice is denominated. + StrRef strikeCurrency() const + { + const BodySize offset = 88; + const BodySize length = 3; + + return fixedStr(offset); + } + + /// Identifies currency used for settlement, if different from + /// trade price currency. + StrRef settlCurrency() const + { + const BodySize offset = 91; + const BodySize length = 3; + + return fixedStr(offset); + } + + /// Defines cabinet price for outright options products. + bool minCabPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 94; + + return decimal(value, offset, Null()); + } + + /// Matching algorithm. + CHAR matchAlgorithm() const + { + const BodySize offset = 102; + + return ordinary(offset); + } + + /// The minimum trading volume for a security. + UInt32 minTradeVol() const + { + const BodySize offset = 103; + + return ordinary(offset); + } + + /// The maximum trading volume for a security. + UInt32 maxTradeVol() const + { + const BodySize offset = 107; + + return ordinary(offset); + } + + /// Minimum constant tick for the instrument. + bool minPriceIncrement(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 111; + + return decimal(value, offset, Null()); + } + + /// Monetary value equivalent to the minimum price fluctuation. + bool minPriceIncrementAmount(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 119; + + return decimal(value, offset, Null()); + } + + /// Contains the multiplier to convert the CME Globex display + /// price to the conventional price. + Decimal displayFactor() const + { + const BodySize offset = 127; + + return decimal(offset); + } + + /// VTT code referencing variable tick table. + bool tickRule(Int8& value) const + { + typedef NullInt8 Null; + + const BodySize offset = 135; + + return ordinary(value, offset, Null()); + } + + /// Price Denominator of Main Fraction. + bool mainFraction(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 136; + + return ordinary(value, offset, Null()); + } + + /// Price Denominator of Sub Fraction. + bool subFraction(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 137; + + return ordinary(value, offset, Null()); + } + + /// Number of decimals in fractional display price. + bool priceDisplayFormat(UInt8& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 138; + + return ordinary(value, offset, Null()); + } + + /// Unit of measure for the products' original contract size. + /// This will be populated for all products listed on CME + /// Globex. + StrRef unitOfMeasure() const + { + const BodySize offset = 139; + const BodySize length = 30; + + return fixedStr(offset); + } + + /// This field contains the contract size for each instrument. + /// Used in combination with tag 996-UnitofMeasure. + bool unitOfMeasureQty(Decimal& value) const + { + typedef NullDecimal9 Null; + + const BodySize offset = 169; + + return decimal(value, offset, Null()); + } + + /// Reference price - the most recently available Settlement + /// whether it be Theoretical, Preliminary or a Final Settle + /// of the session. + bool tradingReferencePrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 177; + + return decimal(value, offset, Null()); + } + + /// Bitmap field of eight Boolean type indicators representing + /// settlement price type. + const SettlPriceType& settlPriceType() const + { + const BodySize offset = 185; + + return ordinary(offset); + } + + /// The total cleared volume of instrument traded during the + /// prior trading session. + bool clearedVolume(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 186; + + return ordinary(value, offset, Null()); + } + + /// The total open interest for the market at the close of the + /// prior trading session. + bool openInterestQty(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 190; + + return ordinary(value, offset, Null()); + } + + /// Allowable low limit price for the trading day. + bool lowLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 194; + + return decimal(value, offset, Null()); + } + + /// Allowable high limit price for the trading day. + bool highLimitPrice(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 202; + + return decimal(value, offset, Null()); + } + + /// User-defined instruments flag. + UserDefinedInstrument userDefinedInstrument() const + { + const BodySize offset = 210; + + return ordinary(offset); + } + + /// Indicates session date corresponding to the settlement + /// price in tag 1150-TradingReferencePrice. + bool tradingReferenceDate(Timestamp& value) const + { + typedef NullLocalMktDate Null; + typedef LocalMktDate FieldValue; + + const BodySize offset = 211; + + FieldValue fieldValue; + + if (ordinary(fieldValue, offset, Null())) + { + value = localMktDateToTimestamp(fieldValue); + return true; + } + return false; + } + + /// Returns instance of Events repeating group. + Events events() const + { + return + groups(). + head(); + } + + /// Returns instance of FeedTypes repeating group. + FeedTypes feedTypes() const + { + return + groups(). + tail(). + head(); + } + + /// Returns instance of InstAttrib repeating group. + InstAttrib instAttrib() const + { + return + groups(). + tail(). + tail(). + head(); + } + + /// Returns instance of LotTypeRules repeating group. + LotTypeRules lotTypeRules() const + { + return + groups(). + tail(). + tail(). + tail(). + head(); + } + + /// Returns instance of Underlyings repeating group. + Underlyings underlyings() const + { + return + groups(). + tail(). + tail(). + tail(). + tail(). + head(); + } + + /// Returns instance of RelatedInstruments repeating group. + RelatedInstruments relatedInstruments() const + { + return + groups(). + tail(). + tail(). + tail(). + tail(). + tail(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 213; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "InstrumentDefinitionOption55"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("d"); + } +}; + +/// MDIncrementalRefreshTradeSummary. +ONIXS_CMEMDH_LTWT_STRUCT +IncrementalRefreshTradeSummary48 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 48 }; + + /// Number of Trade Summary entries. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Trade price. + Decimal entryPx() const + { + const BodySize offset = 0; + + return decimal(offset); + } + + /// Consolidated trade quantity. + Int32 entrySize() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Security ID as defined by CME. + Int32 securityId() const + { + const BodySize offset = 12; + + return ordinary(offset); + } + + /// Sequence number per instrument update. + UInt32 rptSeq() const + { + const BodySize offset = 16; + + return ordinary(offset); + } + + /// The total number of real orders per instrument that + /// participated in a match step within a match event. + Int32 numberOfOrders() const + { + const BodySize offset = 20; + + return ordinary(offset); + } + + /// Indicates which side is the aggressor or if there is no + /// aggressor. + bool + aggressorSide( + AggressorSide::Enum& value) const + { + typedef NullUInt8 Null; + + const BodySize offset = 24; + + return enumeration(value, offset, Null()); + } + + /// Market Data update action. + UpdateAction::Enum updateAction() const + { + const BodySize offset = 25; + + return enumeration(offset); + } + + /// Market Data entry type. + EntryTypeTrade entryType() const + { + return EntryTypeTrade(); + } + + /// Market Data Trade entry ID. + bool tradeEntryId(UInt32& value) const + { + typedef NullUInt32 Null; + + const BodySize offset = 26; + + return ordinary(value, offset, Null()); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 30; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshTradeSummary48.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Number of OrderID entries. + /// Entry of OrderIDEntry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + OrderIDEntry : BinaryGroupEntry + < + GroupSize8Byte::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize8Byte::BlockLength + > + Base; + + /// Initializes blank instance. + OrderIDEntry() + { + } + + /// Initializes instance of given + /// version over given memory block. + OrderIDEntry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Unique order identifier as assigned by the exchange. + UInt64 orderId() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Quantity bought or sold on this last fill. + Int32 lastQty() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 12; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshTradeSummary48.OrderIDEntry"; + } + }; + + /// Repeating group containing OrderIDEntry entries. + typedef + BinaryGroup + OrderIDEntries; + + /// Initializes blank instance. + IncrementalRefreshTradeSummary48() + { + } + + /// Initializes instance over given memory block. + IncrementalRefreshTradeSummary48( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Returns instance of OrderIDEntries repeating group. + OrderIDEntries orderIdEntries() const + { + return + groups(). + tail(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshTradeSummary48"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("X"); + } +}; + +/// MDIncrementalRefreshOrderBook. +ONIXS_CMEMDH_LTWT_STRUCT +IncrementalRefreshOrderBook47 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 47 }; + + /// Number of entries in Market Data message. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Order ID. + bool orderId(UInt64& value) const + { + typedef NullUInt64 Null; + + const BodySize offset = 0; + + return ordinary(value, offset, Null()); + } + + /// Order priority for execution on the order book. + bool orderPriority(UInt64& value) const + { + typedef NullUInt64 Null; + + const BodySize offset = 8; + + return ordinary(value, offset, Null()); + } + + /// Order price. + bool entryPx(Decimal& value) const + { + typedef NullPRICE9 Null; + + const BodySize offset = 16; + + return decimal(value, offset, Null()); + } + + /// Visible order qty. + bool displayQty(Int32& value) const + { + typedef NullInt32 Null; + + const BodySize offset = 24; + + return ordinary(value, offset, Null()); + } + + /// Security ID. + Int32 securityId() const + { + const BodySize offset = 28; + + return ordinary(offset); + } + + /// Order book update action to be applied to the order + /// referenced by OrderID. + UpdateAction::Enum updateAction() const + { + const BodySize offset = 32; + + return enumeration(offset); + } + + /// Market Data entry type. + EntryTypeBook::Enum entryType() const + { + const BodySize offset = 33; + + return enumeration(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 34; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshOrderBook47.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Initializes blank instance. + IncrementalRefreshOrderBook47() + { + } + + /// Initializes instance over given memory block. + IncrementalRefreshOrderBook47( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Start of event processing time in number of nanoseconds + /// since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Bitmap field of eight Boolean type indicators reflecting + /// the end of updates for a given Globex event. + const MatchEventIndicator& + matchEventIndicator() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 9; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "IncrementalRefreshOrderBook47"; + } + + /// FIX message type. + ONIXS_CMEMDH_LTWT_EXPORTED + static StrRef fixType() + { + return toStrRef("X"); + } +}; + +/// SnapshotFullRefreshOrderBook. +ONIXS_CMEMDH_LTWT_STRUCT +SnapshotFullRefreshOrderBook53 +: BinaryMessage +{ + /// Message template ID from SBE schema. + enum { TemplateId = 53 }; + + /// Number of entries in Market Data message. + /// Entry of Entry repeating group. + ONIXS_CMEMDH_LTWT_STRUCT + Entry : BinaryGroupEntry + < + GroupSize::BlockLength + > + { + /// Aliases base class type. + typedef + BinaryGroupEntry + < + GroupSize::BlockLength + > + Base; + + /// Initializes blank instance. + Entry() + { + } + + /// Initializes instance of given + /// version over given memory block. + Entry( + const void* data, + BodySize size, + SchemaVersion version) + : Base(data, size, version) + { + if (size < bodySize(version)) + throwBadBinaryData(className()); + } + + /// Unique Order ID. + UInt64 orderId() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Order priority for execution on the order book. + bool orderPriority(UInt64& value) const + { + typedef NullUInt64 Null; + + const BodySize offset = 8; + + return ordinary(value, offset, Null()); + } + + /// Order Price. + Decimal entryPx() const + { + const BodySize offset = 16; + + return decimal(offset); + } + + /// Visible order qty. + Int32 displayQty() const + { + const BodySize offset = 24; + + return ordinary(offset); + } + + /// Market Data entry type. + EntryTypeBook::Enum entryType() const + { + const BodySize offset = 28; + + return enumeration(offset); + } + + /// Returns size of entry body in bytes + /// for given version of message template. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 29; + } + + /// Entity class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "SnapshotFullRefreshOrderBook53.Entry"; + } + }; + + /// Repeating group containing Entry entries. + typedef + BinaryGroup + Entries; + + /// Initializes blank instance. + SnapshotFullRefreshOrderBook53() + { + } + + /// Initializes instance over given memory block. + SnapshotFullRefreshOrderBook53( + const void* data, + MessageSize size) + : BinaryMessage(data, size) + { + assert(TemplateId == templateId()); + + if (size < bodySize(version())) + throwBadBinaryData(className()); + } + + /// Sequence number of the last Incremental feed packet + /// processed. This value is used to synchronize the snapshot + /// loop with the real-time feed. + UInt32 lastMsgSeqNumProcessed() const + { + const BodySize offset = 0; + + return ordinary(offset); + } + + /// Total number of instruments in the replayed loop. + UInt32 totNumReports() const + { + const BodySize offset = 4; + + return ordinary(offset); + } + + /// Security ID. + Int32 securityId() const + { + const BodySize offset = 8; + + return ordinary(offset); + } + + /// Total number of packets that constitutes a single + /// instrument order book. + UInt32 chunks() const + { + const BodySize offset = 12; + + return ordinary(offset); + } + + /// Chunk sequence. + UInt32 currentChunk() const + { + const BodySize offset = 16; + + return ordinary(offset); + } + + /// Timestamp of the last event security participated in, sent + /// as number of nanoseconds since Unix epoch. + Timestamp transactTime() const + { + const BodySize offset = 20; + + return ordinary(offset); + } + + /// Returns instance of Entries repeating group. + Entries entries() const + { + return + groups(). + head(); + } + + /// Size of message body in bytes. + ONIXS_CMEMDH_LTWT_EXPORTED + static BodySize bodySize(SchemaVersion) + { + return 28; + } + + /// Returns class name. + ONIXS_CMEMDH_LTWT_EXPORTED + static const Char* className() + { + return "SnapshotFullRefreshOrderBook53"; } /// FIX message type. diff --git a/linux/include/OnixS/CME/MDH/Order.h b/linux/include/OnixS/CME/MDH/Order.h index 1b88d3513..a5607db2a 100644 --- a/linux/include/OnixS/CME/MDH/Order.h +++ b/linux/include/OnixS/CME/MDH/Order.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #include ONIXS_CMEMDH_NAMESPACE_BEGIN @@ -50,10 +50,22 @@ OrderTraits return 18446744073709551615ul; } - /// Returns null price. - static PRICE nullPrice() + /// Returns mantissa of the null price. + static Int64 nullPriceMantissa() { - return PRICE(9223372036854775807l); + return 9223372036854775807l; + } + + /// Returns mantissa of the null price. + static + bool + nullPrice( + const Decimal& price) + { + return ( + price.mantissa() == + nullPriceMantissa() + ); } /// Returns null display quantity. @@ -66,18 +78,34 @@ OrderTraits /// Order as the member of the Market By Order (MBO) book. ONIXS_CMEMDH_LTWT_CLASS Order { +protected: + OrderId id_; + OrderPriority priority_; + + Decimal price_; + DisplayQuantity quantity_; + public: - /// Initializes instance according to given values. - /// By default, initializes null order. - Order( - OrderId id = - OrderTraits::nullId(), - OrderPriority priority = - OrderTraits::nullPriority(), - PRICE price = - OrderTraits::nullPrice(), - DisplayQuantity quantity = + /// Initializes blank/null instance. + Order() + : id_( + OrderTraits::nullId()) + , priority_( + OrderTraits::nullPriority()) + , price_( + OrderTraits::nullPriceMantissa(), + 0) + , quantity_( OrderTraits::nullQuantity()) + { + } + + /// Initializes instance according to given values. + Order( + OrderId id, + OrderPriority priority, + const Decimal& price, + DisplayQuantity quantity) : id_(id) , priority_(priority) , price_(price) @@ -114,7 +142,7 @@ public: } /// Order price. - const PRICE& price() const + const Decimal& price() const { return price_; } @@ -122,7 +150,7 @@ public: /// Updates order price. void price( - const PRICE& price) + const Decimal& price) { price_ = price; } @@ -140,13 +168,6 @@ public: { quantity_ = quantity; } - -protected: - OrderId id_; - OrderPriority priority_; - - PRICE price_; - DisplayQuantity quantity_; }; /// Appends representation of order to given string. diff --git a/linux/include/OnixS/CME/MDH/SchemaTraits.h b/linux/include/OnixS/CME/MDH/SchemaTraits.h index c78db94c2..f58c1caeb 100644 --- a/linux/include/OnixS/CME/MDH/SchemaTraits.h +++ b/linux/include/OnixS/CME/MDH/SchemaTraits.h @@ -38,7 +38,7 @@ ONIXS_CMEMDH_LTWT_STRUCT SchemaTraits /// market data processing. static SchemaVersion minimalVersion() { - return 4; + return 8; } }; diff --git a/linux/include/OnixS/CME/MDH/SecurityListener.h b/linux/include/OnixS/CME/MDH/SecurityListener.h index e73eee992..447fc217b 100644 --- a/linux/include/OnixS/CME/MDH/SecurityListener.h +++ b/linux/include/OnixS/CME/MDH/SecurityListener.h @@ -40,19 +40,15 @@ ONIXS_CMEMDH_EXPORTED_CLASS_DECL(Security); /// callbacks. template < - class MessageType, - class EntryType + class Container, + class Data = typename Container::Entry > class SecurityDataArgs { - EntryType entry_; - MessageType message_; + Data entry_; + Container message_; const NetPacket& packet_; - /// Initializes instance as copy of other one. - SecurityDataArgs( - const SecurityDataArgs&); - /// Reinitializes instance as copy of other one. SecurityDataArgs& operator =( @@ -61,11 +57,11 @@ class SecurityDataArgs public: /// Type of message whose instance /// is referenced by given arguments. - typedef MessageType Message; + typedef Container Message; /// Type of repeating group entry whose /// instance referenced by given arguments. - typedef EntryType Entry; + typedef Data Entry; /// Initializes instance with /// given market data entry. @@ -79,6 +75,15 @@ public: { } + /// Initializes instance as copy of other one. + SecurityDataArgs( + const SecurityDataArgs& other) + : entry_(other.entry_) + , message_(other.message_) + , packet_(other.packet_) + { + } + /// Instance of the packet containing the message /// which in its turn contains the market data entry. const NetPacket& packet() const @@ -99,142 +104,62 @@ public: } }; -/// Instantiation of security data attributes for trades. -typedef -SecurityDataArgs -< - IncrementalRefreshTrade, - IncrementalRefreshTrade::Entries::Entry -> -TradeArgs; +namespace +{ + /// Empty order list. + inline + const + TradeOrderIds& + nullOrders() + { + static + const + TradeOrderIds + theNull; -/// Instantiation of security data attributes for volumes. -typedef -SecurityDataArgs -< - IncrementalRefreshVolume, - IncrementalRefreshVolume::Entries::Entry -> -VolumeArgs; - -/// Instantiation of security data attributes for MBO book atomic updates. -typedef -SecurityDataArgs -< - IncrementalRefreshOrderBook, - IncrementalRefreshOrderBook::Entries::Entry -> -MboBookAtomicUpdateArgs; - -/// Instantiation of security data attributes for MBO book atomic updates. -typedef -SecurityDataArgs -< - IncrementalRefreshBook, - IncrementalRefreshBookCombinedEntry -> -MboBookCombinedAtomicUpdateArgs; - -/// Instantiation of security data attributes for MBP book atomic updates. -typedef -SecurityDataArgs -< - IncrementalRefreshBook, - IncrementalRefreshBook::Entries::Entry -> -MbpBookAtomicUpdateArgs; - -/// Instantiation of security data attributes for daily statistics. -typedef -SecurityDataArgs -< - IncrementalRefreshDailyStatistics, - IncrementalRefreshDailyStatistics::Entries::Entry -> -DailyStatisticsArgs; - -/// Instantiation of security data attributes for session statistics. -typedef -SecurityDataArgs -< - IncrementalRefreshSessionStatistics, - IncrementalRefreshSessionStatistics::Entries::Entry -> -SessionStatisticsArgs; - -/// Instantiation of security data attributes for limits and banding. -typedef -SecurityDataArgs -< - IncrementalRefreshLimitsBanding, - IncrementalRefreshLimitsBanding::Entries::Entry -> -LimitsAndBandingArgs; - -/// Instantiation of security data attributes for quote request related symbols. -typedef -SecurityDataArgs -< - QuoteRequest, - QuoteRequest::RelatedSym::Entry -> -QuoteRequestRelatedSymArgs; - -// - -/// Instantiation of security data attributes for recovery data. -typedef -SecurityDataArgs -< - SnapshotFullRefresh, - SnapshotFullRefresh::Entries::Entry -> -RecoveryEntryArgs; - -/// Instantiation of security data attributes for MBO recovery data. -typedef -SecurityDataArgs -< - SnapshotFullRefreshOrderBook, - SnapshotFullRefreshOrderBook::Entries::Entry -> -MboRecoveryEntryArgs; - -// - -/// Instantiation of security data attributes for trade summaries. -typedef -SecurityDataArgs -< - IncrementalRefreshTradeSummary, - IncrementalRefreshTradeSummary::Entries::Entry -> -TradeSummaryArgsBase; + return theNull; + } +} /// Attributes of trade summary. -ONIXS_CMEMDH_LTWT_CLASS -TradeSummaryArgs -: public TradeSummaryArgsBase +template +< + class Summary, + class Data = typename Summary::Entry +> +class TradeSummaryArgs +: public SecurityDataArgs +< + Summary, + Data +> { const TradeOrderIds& orderIds_; - TradeSummaryArgs( - const TradeSummaryArgs&); - TradeSummaryArgs& operator =( const TradeSummaryArgs&); public: + typedef + SecurityDataArgs + < + Summary, + Data + > + Base; + /// Aliases type of message holding /// trade summary repeating group entries. - typedef - TradeSummaryArgsBase::Message + typedef + typename + Base::Message Message; /// Aliases trade summary data entry. typedef - TradeSummaryArgsBase::Entry + typename + Base::Entry Entry; /// Aliases collection of order ids. @@ -247,13 +172,20 @@ public: const NetPacket& packet, const Message& message, const Entry& entry, - const OrderIds& ids = OrderIds()) - : TradeSummaryArgsBase( - packet, message, entry) + const OrderIds& ids = nullOrders()) + : Base(packet, message, entry) , orderIds_(ids) { } + /// Initializes the instance as ref-copy of the other one. + TradeSummaryArgs( + const TradeSummaryArgs& other) + : Base(static_cast(other)) + , orderIds_(other.orderIds_) + { + } + /// Order details referring to given trade. /// Collection may be empty if order details /// gather is not enabled. @@ -268,6 +200,170 @@ public: } }; +typedef +TradeSummaryArgs +< + IncrementalRefreshTradeSummary48 +> +TradeSummary48Args; + +/// Attributes of trade summary. +typedef +TradeSummaryArgs +< + IncrementalRefreshTradeSummary42 +> +TradeSummary42Args; + +/// Instantiation of security data attributes for volumes. +typedef +SecurityDataArgs +< + IncrementalRefreshVolume37 +> +Volume37Args; + +/// Instantiation of security data attributes for MBO book atomic updates. +typedef +SecurityDataArgs +< + IncrementalRefreshOrderBook43 +> +MboBook43AtomicUpdateArgs; + +/// Instantiation of security data attributes for MBO book atomic updates. +typedef +SecurityDataArgs +< + IncrementalRefreshOrderBook47 +> +MboBook47AtomicUpdateArgs; + +/// Instantiation of security data attributes for MBO book atomic updates. +typedef +SecurityDataArgs +< + IncrementalRefreshBook32, + IncrementalRefreshBook32CombinedEntry +> +MboBookCombined32AtomicUpdateArgs; + +/// Instantiation of security data attributes for MBO book atomic updates. +typedef +SecurityDataArgs +< + IncrementalRefreshBook46, + IncrementalRefreshBook46CombinedEntry +> +MboBookCombined46AtomicUpdateArgs; + +/// Instantiation of security data attributes for MBP book atomic updates. +typedef +SecurityDataArgs +< + IncrementalRefreshBook32 +> +MbpBook32AtomicUpdateArgs; + +/// Instantiation of security data attributes for MBP book atomic updates. +typedef +SecurityDataArgs +< + IncrementalRefreshBook46 +> +MbpBook46AtomicUpdateArgs; + +/// Instantiation of security data attributes for daily statistics. +typedef +SecurityDataArgs +< + IncrementalRefreshDailyStatistics33 +> +DailyStatistics33Args; + +/// Instantiation of security data attributes for daily statistics. +typedef +SecurityDataArgs +< + IncrementalRefreshDailyStatistics49 +> +DailyStatistics49Args; + +/// Instantiation of security data attributes for session statistics. +typedef +SecurityDataArgs +< + IncrementalRefreshSessionStatistics35 +> +SessionStatistics35Args; + +/// Instantiation of security data attributes for session statistics. +typedef +SecurityDataArgs +< + IncrementalRefreshSessionStatistics51 +> +SessionStatistics51Args; + +/// Instantiation of security data attributes for limits and banding. +typedef +SecurityDataArgs +< + IncrementalRefreshLimitsBanding34 +> +LimitsAndBanding34Args; + +/// Instantiation of security data attributes for limits and banding. +typedef +SecurityDataArgs +< + IncrementalRefreshLimitsBanding50 +> +LimitsAndBanding50Args; + +/// Instantiation of security data attributes for quote request related symbols. +typedef +SecurityDataArgs +< + QuoteRequest39, + QuoteRequest39::RelatedSymEntry +> +QuoteRequest39RelatedSymArgs; + +// + +/// Instantiation of security data attributes for recovery data. +typedef +SecurityDataArgs +< + SnapshotFullRefresh38 +> +Recovery38EntryArgs; + +/// Instantiation of security data attributes for recovery data. +typedef +SecurityDataArgs +< + SnapshotFullRefresh52 +> +Recovery52EntryArgs; + +/// Instantiation of security data attributes for MBO recovery data. +typedef +SecurityDataArgs +< + SnapshotFullRefreshOrderBook44 +> +MboRecovery44EntryArgs; + +/// Instantiation of security data attributes for MBO recovery data. +typedef +SecurityDataArgs +< + SnapshotFullRefreshOrderBook53 +> +MboRecovery53EntryArgs; + // /// Exposes details of book maintenance failure. @@ -349,7 +445,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onDefinition( Handler&, const Security&, - const InstrumentDefinitionFutureArgs&) + const InstrumentDefinitionFuture54Args&) { } @@ -359,7 +455,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onDefinition( Handler&, const Security&, - const InstrumentDefinitionSpreadArgs&) + const InstrumentDefinitionFuture27Args&) { } @@ -369,7 +465,37 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onDefinition( Handler&, const Security&, - const InstrumentDefinitionOptionArgs&) + const InstrumentDefinitionSpread56Args&) + { + } + + /// Invoked upon instrument definition reception. + virtual + void + onDefinition( + Handler&, + const Security&, + const InstrumentDefinitionSpread29Args&) + { + } + + /// Invoked upon instrument definition reception. + virtual + void + onDefinition( + Handler&, + const Security&, + const InstrumentDefinitionOption55Args&) + { + } + + /// Invoked upon instrument definition reception. + virtual + void + onDefinition( + Handler&, + const Security&, + const InstrumentDefinitionOption41Args&) { } @@ -392,7 +518,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onRecovery( Handler&, const Security&, - const SnapshotFullRefreshArgs&) + const SnapshotFullRefresh52Args&) { } @@ -404,7 +530,31 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onRecovery( Handler&, const Security&, - const SnapshotFullRefreshOrderBookArgs&) + const SnapshotFullRefresh38Args&) + { + } + + /// Invoked when snapshot is received for + /// the security while Handler recovers market + /// state from snapshots. + virtual + void + onRecovery( + Handler&, + const Security&, + const SnapshotFullRefreshOrderBook53Args&) + { + } + + /// Invoked when snapshot is received for + /// the security while Handler recovers market + /// state from snapshots. + virtual + void + onRecovery( + Handler&, + const Security&, + const SnapshotFullRefreshOrderBook44Args&) { } @@ -415,17 +565,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onTrade( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) { } - /// Invoked when trade is received for the security. + /// Invoked when trade is recovered from snapshot + /// while Handler recovers market state from snapshots. virtual void onTrade( Handler&, const Security&, - const TradeArgs&) + const Recovery38EntryArgs&) { } @@ -436,10 +587,22 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onTrade( Handler&, const Security&, - const TradeSummaryArgs&) + const TradeSummary48Args&) { } + /// Invoked when trade summary + /// is received for the security. + virtual + void + onTrade( + Handler&, + const Security&, + const TradeSummary42Args&) + { + } + + /// Invoked when electronic volume is /// Invoked when electronic volume is /// recovered from snapshot for the security. virtual @@ -447,7 +610,17 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onElectronicVolume( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// recovered from snapshot for the security. + virtual + void + onElectronicVolume( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -458,7 +631,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onElectronicVolume( Handler&, const Security&, - const VolumeArgs&) + const Volume37Args&) { } @@ -469,7 +642,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onBookAtomicUpdate( Handler&, const Security&, - const MboRecoveryEntryArgs&) + const MboRecovery53EntryArgs&) { } @@ -480,7 +653,29 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onBookAtomicUpdate( Handler&, const Security&, - const RecoveryEntryArgs&) + const MboRecovery44EntryArgs&) + { + } + + /// Invoked when atomic book update for + // the security is recovered from snapshot. + virtual + void + onBookAtomicUpdate( + Handler&, + const Security&, + const Recovery52EntryArgs&) + { + } + + /// Invoked when atomic book update for + // the security is recovered from snapshot. + virtual + void + onBookAtomicUpdate( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -491,7 +686,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onBookAtomicUpdate( Handler&, const Security&, - const MboBookAtomicUpdateArgs&) + const MboBook47AtomicUpdateArgs&) { } @@ -502,7 +697,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onBookAtomicUpdate( Handler&, const Security&, - const MboBookCombinedAtomicUpdateArgs&) + const MboBook43AtomicUpdateArgs&) { } @@ -513,7 +708,40 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onBookAtomicUpdate( Handler&, const Security&, - const MbpBookAtomicUpdateArgs&) + const MboBookCombined46AtomicUpdateArgs&) + { + } + + /// Invoked when atomic book update + /// for the security is received. + virtual + void + onBookAtomicUpdate( + Handler&, + const Security&, + const MboBookCombined32AtomicUpdateArgs&) + { + } + + /// Invoked when atomic book update + /// for the security is received. + virtual + void + onBookAtomicUpdate( + Handler&, + const Security&, + const MbpBook46AtomicUpdateArgs&) + { + } + + /// Invoked when atomic book update + /// for the security is received. + virtual + void + onBookAtomicUpdate( + Handler&, + const Security&, + const MbpBook32AtomicUpdateArgs&) { } @@ -625,7 +853,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onSettlementPrice( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// Invoked when settlement price for the + /// security is recovered from snapshot. + virtual + void + onSettlementPrice( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -636,7 +875,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onSettlementPrice( Handler&, const Security&, - const DailyStatisticsArgs&) + const DailyStatistics49Args&) + { + } + + /// Invoked when settlement price + /// for the security is received. + virtual + void + onSettlementPrice( + Handler&, + const Security&, + const DailyStatistics33Args&) { } @@ -647,7 +897,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onClearedVolume( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// Invoked when cleared volume for the + /// security is recovered from snapshot. + virtual + void + onClearedVolume( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -658,7 +919,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onClearedVolume( Handler&, const Security&, - const DailyStatisticsArgs&) + const DailyStatistics49Args&) + { + } + + /// Invoked when cleared volume + /// for the security is received. + virtual + void + onClearedVolume( + Handler&, + const Security&, + const DailyStatistics33Args&) { } @@ -669,7 +941,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onOpenInterest( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// Invoked when open interest for the + /// security is recovered from snapshot. + virtual + void + onOpenInterest( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -680,7 +963,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onOpenInterest( Handler&, const Security&, - const DailyStatisticsArgs&) + const DailyStatistics49Args&) + { + } + + /// Invoked when open interest + /// for the security is received. + virtual + void + onOpenInterest( + Handler&, + const Security&, + const DailyStatistics33Args&) { } @@ -691,7 +985,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onFixingPrice( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// Invoked when fixing price recovered + /// from snapshot for given security. + virtual + void + onFixingPrice( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -702,7 +1007,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onFixingPrice( Handler&, const Security&, - const DailyStatisticsArgs&) + const DailyStatistics49Args&) + { + } + + /// Invoked when fixing price + /// is received for the security. + virtual + void + onFixingPrice( + Handler&, + const Security&, + const DailyStatistics33Args&) { } @@ -713,7 +1029,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onOpeningPrice( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// Invoked when opening price recovered + /// from snapshot for given security. + virtual + void + onOpeningPrice( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -724,7 +1051,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onOpeningPrice( Handler&, const Security&, - const SessionStatisticsArgs&) + const SessionStatistics51Args&) + { + } + + /// Invoked when opening price + /// is received for the security. + virtual + void + onOpeningPrice( + Handler&, + const Security&, + const SessionStatistics35Args&) { } @@ -735,7 +1073,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onHighTradePrice( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// Invoked when session high trade price + /// recovered from snapshot for given security. + virtual + void + onHighTradePrice( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -746,7 +1095,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onHighTradePrice( Handler&, const Security&, - const SessionStatisticsArgs&) + const SessionStatistics51Args&) + { + } + + /// Invoked when session high trade + /// price is received for the security. + virtual + void + onHighTradePrice( + Handler&, + const Security&, + const SessionStatistics35Args&) { } @@ -757,7 +1117,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onLowTradePrice( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// Invoked when session low trade price + /// recovered from snapshot for given security. + virtual + void + onLowTradePrice( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -768,7 +1139,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onLowTradePrice( Handler&, const Security&, - const SessionStatisticsArgs&) + const SessionStatistics51Args&) + { + } + + /// Invoked when session low trade + /// price is received for the security. + virtual + void + onLowTradePrice( + Handler&, + const Security&, + const SessionStatistics35Args&) { } @@ -779,7 +1161,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onHighestBid( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// Invoked when session highest bid price + /// recovered from snapshot for given security. + virtual + void + onHighestBid( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -790,7 +1183,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onHighestBid( Handler&, const Security&, - const SessionStatisticsArgs&) + const SessionStatistics51Args&) + { + } + + /// Invoked when session highest bid + /// price is received for the security. + virtual + void + onHighestBid( + Handler&, + const Security&, + const SessionStatistics35Args&) { } @@ -801,7 +1205,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onLowestOffer( Handler&, const Security&, - const RecoveryEntryArgs&) + const Recovery52EntryArgs&) + { + } + + /// Invoked when session lowest offer price + /// recovered from snapshot for given security. + virtual + void + onLowestOffer( + Handler&, + const Security&, + const Recovery38EntryArgs&) { } @@ -812,7 +1227,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onLowestOffer( Handler&, const Security&, - const SessionStatisticsArgs&) + const SessionStatistics51Args&) + { + } + + /// Invoked when session lowest offer + /// price is received for the security. + virtual + void + onLowestOffer( + Handler&, + const Security&, + const SessionStatistics35Args&) { } @@ -823,7 +1249,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onLimitsAndBanding( Handler&, const Security&, - const LimitsAndBandingArgs&) + const LimitsAndBanding50Args&) + { + } + + /// Invoked when threshold limits and price + /// band variation is received for the security. + virtual + void + onLimitsAndBanding( + Handler&, + const Security&, + const LimitsAndBanding34Args&) { } @@ -834,7 +1271,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onQuoteRequest( Handler&, const Security&, - const QuoteRequestRelatedSymArgs&) + const QuoteRequest39RelatedSymArgs&) { } @@ -845,7 +1282,18 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onStatus( Handler&, const Security&, - const SnapshotFullRefreshArgs&) + const SnapshotFullRefresh52Args&) + { + } + + /// Invoked when security status + /// is recovered from snapshot. + virtual + void + onStatus( + Handler&, + const Security&, + const SnapshotFullRefresh38Args&) { } @@ -856,7 +1304,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener onStatus( Handler&, const Security&, - const SecurityStatusArgs&) + const SecurityStatus30Args&) { } @@ -866,7 +1314,7 @@ ONIXS_CMEMDH_EXPORTED_STRUCT SecurityListener void onGroupStatus( Handler&, - const SecurityStatusArgs&) + const SecurityStatus30Args&) { } diff --git a/linux/include/OnixS/CME/MDH/Serialization.h b/linux/include/OnixS/CME/MDH/Serialization.h index 07c494fb8..ae88ed1f1 100644 --- a/linux/include/OnixS/CME/MDH/Serialization.h +++ b/linux/include/OnixS/CME/MDH/Serialization.h @@ -607,6 +607,25 @@ toFix( } +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const Decimal9& obj); + + +/// Serializes object into a string. +inline std::string toStr(const Decimal9& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + + /// Serializes object into a string. ONIXS_CMEMDH_EXPORTED void @@ -735,40 +754,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const ChannelReset& obj); - - -/// Serializes object into a string. -inline std::string toStr(const ChannelReset& obj) -{ - std::string str; - - toStr(str, obj); - - return str; -} - -/// Serializes object into FIX presentation. -ONIXS_CMEMDH_EXPORTED -void -toFix( - std::string& str, - const ChannelReset& obj); - - -/// Serializes object into a string. -ONIXS_CMEMDH_EXPORTED -void -toStr( - std::string& str, - const AdminHeartbeat& obj); + const InstrumentDefinitionFuture27& obj); /// Serializes object into a string. inline std::string toStr( - const AdminHeartbeat& obj) + const InstrumentDefinitionFuture27& obj) { std::string str; @@ -782,7 +775,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const AdminHeartbeat& obj); + const InstrumentDefinitionFuture27& obj); /// Serializes object into a string. @@ -790,66 +783,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const AdminLogin& obj); - - -/// Serializes object into a string. -inline std::string toStr(const AdminLogin& obj) -{ - std::string str; - - toStr(str, obj); - - return str; -} - -/// Serializes object into FIX presentation. -ONIXS_CMEMDH_EXPORTED -void -toFix( - std::string& str, - const AdminLogin& obj); - - -/// Serializes object into a string. -ONIXS_CMEMDH_EXPORTED -void -toStr( - std::string& str, - const AdminLogout& obj); - - -/// Serializes object into a string. -inline std::string toStr(const AdminLogout& obj) -{ - std::string str; - - toStr(str, obj); - - return str; -} - -/// Serializes object into FIX presentation. -ONIXS_CMEMDH_EXPORTED -void -toFix( - std::string& str, - const AdminLogout& obj); - - -/// Serializes object into a string. -ONIXS_CMEMDH_EXPORTED -void -toStr( - std::string& str, - const InstrumentDefinitionFuture& obj); + const InstrumentDefinitionSpread29& obj); /// Serializes object into a string. inline std::string toStr( - const InstrumentDefinitionFuture& obj) + const InstrumentDefinitionSpread29& obj) { std::string str; @@ -863,7 +804,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const InstrumentDefinitionFuture& obj); + const InstrumentDefinitionSpread29& obj); /// Serializes object into a string. @@ -871,14 +812,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const InstrumentDefinitionSpread& obj); + const IncrementalRefreshBook32& obj); /// Serializes object into a string. inline std::string toStr( - const InstrumentDefinitionSpread& obj) + const IncrementalRefreshBook32& obj) { std::string str; @@ -892,7 +833,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const InstrumentDefinitionSpread& obj); + const IncrementalRefreshBook32& obj); /// Serializes object into a string. @@ -900,14 +841,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const SecurityStatus& obj); + const IncrementalRefreshDailyStatistics33& obj); /// Serializes object into a string. inline std::string toStr( - const SecurityStatus& obj) + const IncrementalRefreshDailyStatistics33& obj) { std::string str; @@ -921,7 +862,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const SecurityStatus& obj); + const IncrementalRefreshDailyStatistics33& obj); /// Serializes object into a string. @@ -929,14 +870,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const IncrementalRefreshBook& obj); + const IncrementalRefreshLimitsBanding34& obj); /// Serializes object into a string. inline std::string toStr( - const IncrementalRefreshBook& obj) + const IncrementalRefreshLimitsBanding34& obj) { std::string str; @@ -950,7 +891,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const IncrementalRefreshBook& obj); + const IncrementalRefreshLimitsBanding34& obj); /// Serializes object into a string. @@ -958,14 +899,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const IncrementalRefreshDailyStatistics& obj); + const IncrementalRefreshSessionStatistics35& obj); /// Serializes object into a string. inline std::string toStr( - const IncrementalRefreshDailyStatistics& obj) + const IncrementalRefreshSessionStatistics35& obj) { std::string str; @@ -979,7 +920,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const IncrementalRefreshDailyStatistics& obj); + const IncrementalRefreshSessionStatistics35& obj); /// Serializes object into a string. @@ -987,14 +928,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const IncrementalRefreshLimitsBanding& obj); + const SnapshotFullRefresh38& obj); /// Serializes object into a string. inline std::string toStr( - const IncrementalRefreshLimitsBanding& obj) + const SnapshotFullRefresh38& obj) { std::string str; @@ -1008,7 +949,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const IncrementalRefreshLimitsBanding& obj); + const SnapshotFullRefresh38& obj); /// Serializes object into a string. @@ -1016,14 +957,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const IncrementalRefreshSessionStatistics& obj); + const InstrumentDefinitionOption41& obj); /// Serializes object into a string. inline std::string toStr( - const IncrementalRefreshSessionStatistics& obj) + const InstrumentDefinitionOption41& obj) { std::string str; @@ -1037,7 +978,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const IncrementalRefreshSessionStatistics& obj); + const InstrumentDefinitionOption41& obj); /// Serializes object into a string. @@ -1045,14 +986,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const IncrementalRefreshTrade& obj); + const IncrementalRefreshTradeSummary42& obj); /// Serializes object into a string. inline std::string toStr( - const IncrementalRefreshTrade& obj) + const IncrementalRefreshTradeSummary42& obj) { std::string str; @@ -1066,7 +1007,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const IncrementalRefreshTrade& obj); + const IncrementalRefreshTradeSummary42& obj); /// Serializes object into a string. @@ -1074,14 +1015,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const IncrementalRefreshVolume& obj); + const IncrementalRefreshOrderBook43& obj); /// Serializes object into a string. inline std::string toStr( - const IncrementalRefreshVolume& obj) + const IncrementalRefreshOrderBook43& obj) { std::string str; @@ -1095,7 +1036,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const IncrementalRefreshVolume& obj); + const IncrementalRefreshOrderBook43& obj); /// Serializes object into a string. @@ -1103,14 +1044,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const SnapshotFullRefresh& obj); + const SnapshotFullRefreshOrderBook44& obj); /// Serializes object into a string. inline std::string toStr( - const SnapshotFullRefresh& obj) + const SnapshotFullRefreshOrderBook44& obj) { std::string str; @@ -1124,7 +1065,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const SnapshotFullRefresh& obj); + const SnapshotFullRefreshOrderBook44& obj); /// Serializes object into a string. @@ -1132,11 +1073,11 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const QuoteRequest& obj); + const ChannelReset4& obj); /// Serializes object into a string. -inline std::string toStr(const QuoteRequest& obj) +inline std::string toStr(const ChannelReset4& obj) { std::string str; @@ -1150,7 +1091,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const QuoteRequest& obj); + const ChannelReset4& obj); /// Serializes object into a string. @@ -1158,14 +1099,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const InstrumentDefinitionOption& obj); + const AdminHeartbeat12& obj); /// Serializes object into a string. inline std::string toStr( - const InstrumentDefinitionOption& obj) + const AdminHeartbeat12& obj) { std::string str; @@ -1179,7 +1120,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const InstrumentDefinitionOption& obj); + const AdminHeartbeat12& obj); /// Serializes object into a string. @@ -1187,14 +1128,66 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const IncrementalRefreshTradeSummary& obj); + const AdminLogin15& obj); + + +/// Serializes object into a string. +inline std::string toStr(const AdminLogin15& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const AdminLogin15& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const AdminLogout16& obj); + + +/// Serializes object into a string. +inline std::string toStr(const AdminLogout16& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const AdminLogout16& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const InstrumentDefinitionFuture54& obj); /// Serializes object into a string. inline std::string toStr( - const IncrementalRefreshTradeSummary& obj) + const InstrumentDefinitionFuture54& obj) { std::string str; @@ -1208,7 +1201,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const IncrementalRefreshTradeSummary& obj); + const InstrumentDefinitionFuture54& obj); /// Serializes object into a string. @@ -1216,14 +1209,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const IncrementalRefreshOrderBook& obj); + const InstrumentDefinitionSpread56& obj); /// Serializes object into a string. inline std::string toStr( - const IncrementalRefreshOrderBook& obj) + const InstrumentDefinitionSpread56& obj) { std::string str; @@ -1237,7 +1230,7 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const IncrementalRefreshOrderBook& obj); + const InstrumentDefinitionSpread56& obj); /// Serializes object into a string. @@ -1245,14 +1238,14 @@ ONIXS_CMEMDH_EXPORTED void toStr( std::string& str, - const SnapshotFullRefreshOrderBook& obj); + const SecurityStatus30& obj); /// Serializes object into a string. inline std::string toStr( - const SnapshotFullRefreshOrderBook& obj) + const SecurityStatus30& obj) { std::string str; @@ -1266,7 +1259,326 @@ ONIXS_CMEMDH_EXPORTED void toFix( std::string& str, - const SnapshotFullRefreshOrderBook& obj); + const SecurityStatus30& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const IncrementalRefreshBook46& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const IncrementalRefreshBook46& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const IncrementalRefreshBook46& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const IncrementalRefreshDailyStatistics49& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const IncrementalRefreshDailyStatistics49& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const IncrementalRefreshDailyStatistics49& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const IncrementalRefreshLimitsBanding50& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const IncrementalRefreshLimitsBanding50& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const IncrementalRefreshLimitsBanding50& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const IncrementalRefreshSessionStatistics51& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const IncrementalRefreshSessionStatistics51& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const IncrementalRefreshSessionStatistics51& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const IncrementalRefreshVolume37& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const IncrementalRefreshVolume37& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const IncrementalRefreshVolume37& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const SnapshotFullRefresh52& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const SnapshotFullRefresh52& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const SnapshotFullRefresh52& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const QuoteRequest39& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const QuoteRequest39& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const QuoteRequest39& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const InstrumentDefinitionOption55& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const InstrumentDefinitionOption55& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const InstrumentDefinitionOption55& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const IncrementalRefreshTradeSummary48& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const IncrementalRefreshTradeSummary48& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const IncrementalRefreshTradeSummary48& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const IncrementalRefreshOrderBook47& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const IncrementalRefreshOrderBook47& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const IncrementalRefreshOrderBook47& obj); + + +/// Serializes object into a string. +ONIXS_CMEMDH_EXPORTED +void +toStr( + std::string& str, + const SnapshotFullRefreshOrderBook53& obj); + + +/// Serializes object into a string. +inline +std::string +toStr( + const SnapshotFullRefreshOrderBook53& obj) +{ + std::string str; + + toStr(str, obj); + + return str; +} + +/// Serializes object into FIX presentation. +ONIXS_CMEMDH_EXPORTED +void +toFix( + std::string& str, + const SnapshotFullRefreshOrderBook53& obj); ONIXS_CMEMDH_NAMESPACE_END diff --git a/linux/include/OnixS/CME/MDH/TradeOrderIds.h b/linux/include/OnixS/CME/MDH/TradeOrderIds.h index 4ef3d1456..c5ca70162 100644 --- a/linux/include/OnixS/CME/MDH/TradeOrderIds.h +++ b/linux/include/OnixS/CME/MDH/TradeOrderIds.h @@ -29,15 +29,9 @@ ONIXS_CMEMDH_NAMESPACE_BEGIN /// Collection of order details /// referring to a single trade. -ONIXS_CMEMDH_LTWT_CLASS -TradeOrderIds +ONIXS_CMEMDH_LTWT_CLASS TradeOrderIds { public: - /// Alias for market data entry containing order details. - typedef - IncrementalRefreshTradeSummary::OrderIDEntry - MarketDataEntry; - /// Stores information on order id and other details. ONIXS_CMEMDH_LTWT_CLASS Details { @@ -53,12 +47,14 @@ public: } /// Retrieves order details from given market data entry. + template + < + class Entry + > Details( - const MarketDataEntry& entry) - : orderId_( - entry.orderId()) - , lastQty_( - entry.lastQty()) + const Entry& entry) + : orderId_(entry.orderId()) + , lastQty_(entry.lastQty()) { } @@ -127,16 +123,17 @@ public: } /// Adds order details to collection. + template + < + class Entry + > void add( - const - IncrementalRefreshTradeSummary:: - OrderIDEntry& entry) + const Entry& entry) { ids_.push_back(Details(entry)); } - /// Resets collection to blank state. void clear() { diff --git a/linux/include/OnixS/CME/MDH/Typification.h b/linux/include/OnixS/CME/MDH/Typification.h index 87471a47a..d3a708891 100644 --- a/linux/include/OnixS/CME/MDH/Typification.h +++ b/linux/include/OnixS/CME/MDH/Typification.h @@ -58,191 +58,291 @@ processTypified( { switch (binary.templateId()) { - case ChannelReset::TemplateId: + case InstrumentDefinitionFuture27::TemplateId: { processor( typify - + (binary)); return true; } - case AdminHeartbeat::TemplateId: + case InstrumentDefinitionSpread29::TemplateId: { processor( typify - + (binary)); return true; } - case AdminLogin::TemplateId: + case IncrementalRefreshBook32::TemplateId: { processor( typify - + (binary)); return true; } - case AdminLogout::TemplateId: + case IncrementalRefreshDailyStatistics33::TemplateId: { processor( typify - + (binary)); return true; } - case InstrumentDefinitionFuture::TemplateId: + case IncrementalRefreshLimitsBanding34::TemplateId: { processor( typify - + (binary)); return true; } - case InstrumentDefinitionSpread::TemplateId: + case IncrementalRefreshSessionStatistics35::TemplateId: { processor( typify - + (binary)); return true; } - case SecurityStatus::TemplateId: + case SnapshotFullRefresh38::TemplateId: { processor( typify - + (binary)); return true; } - case IncrementalRefreshBook::TemplateId: + case InstrumentDefinitionOption41::TemplateId: { processor( typify - + (binary)); return true; } - case IncrementalRefreshDailyStatistics::TemplateId: + case IncrementalRefreshTradeSummary42::TemplateId: { processor( typify - + (binary)); return true; } - case IncrementalRefreshLimitsBanding::TemplateId: + case IncrementalRefreshOrderBook43::TemplateId: { processor( typify - + (binary)); return true; } - case IncrementalRefreshSessionStatistics::TemplateId: + case SnapshotFullRefreshOrderBook44::TemplateId: { processor( typify - + (binary)); return true; } - case IncrementalRefreshTrade::TemplateId: + case ChannelReset4::TemplateId: { processor( typify - + (binary)); return true; } - case IncrementalRefreshVolume::TemplateId: + case AdminHeartbeat12::TemplateId: { processor( typify - + (binary)); return true; } - case SnapshotFullRefresh::TemplateId: + case AdminLogin15::TemplateId: { processor( typify - + (binary)); return true; } - case QuoteRequest::TemplateId: + case AdminLogout16::TemplateId: { processor( typify - + (binary)); return true; } - case InstrumentDefinitionOption::TemplateId: + case InstrumentDefinitionFuture54::TemplateId: { processor( typify - + (binary)); return true; } - case IncrementalRefreshTradeSummary::TemplateId: + case InstrumentDefinitionSpread56::TemplateId: { processor( typify - + (binary)); return true; } - case IncrementalRefreshOrderBook::TemplateId: + case SecurityStatus30::TemplateId: { processor( typify - + (binary)); return true; } - case SnapshotFullRefreshOrderBook::TemplateId: + case IncrementalRefreshBook46::TemplateId: { processor( typify - + + (binary)); + + return true; + } + + case IncrementalRefreshDailyStatistics49::TemplateId: + { + processor( + typify + + (binary)); + + return true; + } + + case IncrementalRefreshLimitsBanding50::TemplateId: + { + processor( + typify + + (binary)); + + return true; + } + + case IncrementalRefreshSessionStatistics51::TemplateId: + { + processor( + typify + + (binary)); + + return true; + } + + case IncrementalRefreshVolume37::TemplateId: + { + processor( + typify + + (binary)); + + return true; + } + + case SnapshotFullRefresh52::TemplateId: + { + processor( + typify + + (binary)); + + return true; + } + + case QuoteRequest39::TemplateId: + { + processor( + typify + + (binary)); + + return true; + } + + case InstrumentDefinitionOption55::TemplateId: + { + processor( + typify + + (binary)); + + return true; + } + + case IncrementalRefreshTradeSummary48::TemplateId: + { + processor( + typify + + (binary)); + + return true; + } + + case IncrementalRefreshOrderBook47::TemplateId: + { + processor( + typify + + (binary)); + + return true; + } + + case SnapshotFullRefreshOrderBook53::TemplateId: + { + processor( + typify + (binary)); return true; diff --git a/linux/include/OnixS/CME/MDH/Version.h b/linux/include/OnixS/CME/MDH/Version.h index c024eb28c..9b9c19ea8 100644 --- a/linux/include/OnixS/CME/MDH/Version.h +++ b/linux/include/OnixS/CME/MDH/Version.h @@ -25,11 +25,6 @@ #include #include -#pragma push_macro("major") -#undef major -#pragma push_macro("minor") -#undef minor - ONIXS_CMEMDH_NAMESPACE_BEGIN /// Identifies version of the product. @@ -187,6 +182,3 @@ toStr( } ONIXS_CMEMDH_NAMESPACE_END - -#pragma pop_macro("minor") -#pragma pop_macro("major") diff --git a/linux/lib/Debug/libonixs-cmemdh-all-4.8.0.a b/linux/lib/Debug/libonixs-cmemdh-all-4.8.0.a new file mode 100644 index 000000000..3879b9500 Binary files /dev/null and b/linux/lib/Debug/libonixs-cmemdh-all-4.8.0.a differ diff --git a/linux/lib/Release/libonixs-cmemdh-all-4.8.0.a b/linux/lib/Release/libonixs-cmemdh-all-4.8.0.a new file mode 100644 index 000000000..3879b9500 Binary files /dev/null and b/linux/lib/Release/libonixs-cmemdh-all-4.8.0.a differ diff --git a/src/onixs/OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.5.2.tar.xz b/src/onixs/OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.5.2.tar.xz deleted file mode 100644 index ba67f49ee..000000000 Binary files a/src/onixs/OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.5.2.tar.xz and /dev/null differ diff --git a/src/onixs/OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.8.0.tar.xz b/src/onixs/OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.8.0.tar.xz new file mode 100644 index 000000000..fdc56345f Binary files /dev/null and b/src/onixs/OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.8.0.tar.xz differ diff --git a/src/onixs/build_onixs.sh b/src/onixs/build_onixs.sh index 1edf5aabf..b8a1d3fba 100755 --- a/src/onixs/build_onixs.sh +++ b/src/onixs/build_onixs.sh @@ -1,6 +1,6 @@ #!/bin/bash -onixs="OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.5.2" +onixs="OnixS.CmeMdhCpp-static-Ubuntu1804-gcc730-c++14-x64-4.8.0" root=`realpath ../..` work=$root/work src=$root/src