OnixS C++ LSE GTP Market Data Handler 1.0.6
API documentation
Loading...
Searching...
No Matches
Analytics.h
Go to the documentation of this file.
1/*
2* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3*
4* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5* and international copyright treaties.
6*
7* Access to and use of the software is governed by the terms of the applicable ONIXS Software
8* Services Agreement (the Agreement) and Customer end user license agreements granting
9* a non-assignable, non-transferable and non-exclusive license to use the software
10* for it's own data processing purposes under the terms defined in the Agreement.
11*
12* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13* of this source code or associated reference material to any other location for further reproduction
14* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15*
16* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17* the terms of the Agreement is a violation of copyright law.
18*/
19
20#pragma once
21
22#include <vector>
23
28
29
30namespace OnixS {
31namespace LSE {
32namespace MarketData {
33namespace GTP {
34
37 {
39 UDT timestamp() const
41 {
42 return ordinary<UDT>(3);
43 }
44
46 UInt64 instrument() const
48 {
49 return ordinary<UInt64>(11);
50 }
51
58
60 UDT startTime() const
62 {
63 return ordinary<UDT>(21);
64 }
65
67 UDT endTime() const
69 {
70 return ordinary<UDT>(29);
71 }
72
74 UInt32 buyOrderCount() const
76 {
77 return ordinary<UInt32>(37);
78 }
79
81 UInt32 sellOrderCount() const
83 {
84 return ordinary<UInt32>(41);
85 }
86
90 {
91 return Size4(ordinary<UInt64>(45));
92 }
93
97 {
98 return Size4(ordinary<UInt64>(53));
99 }
100
104 {
105 return ordinary<UInt32>(61);
106 }
107
111 {
112 return ordinary<UInt32>(65);
113 }
114
118 {
119 return ordinary<UInt32>(69);
120 }
121
125 {
126 return ordinary<UInt32>(73);
127 }
128
132 {
133 return ordinary<UInt32>(77);
134 }
135
139 {
140 return ordinary<UInt32>(81);
141 }
142
146 {
147 return Price(ordinary<UInt64>(85));
148 }
149
153 {
154 return Price(ordinary<UInt64>(93));
155 }
156
160 {
161 return Price(ordinary<UInt64>(101));
162 }
163
166
168 static void validateSize(MessageSize size)
169 {
170 if(size != messageSize_)
171 throwIncorrectSize("Analytics", size, messageSize_);
172 }
173
175 AnalyticsMsg(const void* data, MessageSize size)
177 : BinaryMessage(data, size)
178 {
179 }
180 };
181
183 ONIXS_LSE_GTP_API void toStr(std::string&, const AnalyticsMsg&);
184
186 inline std::string toStr(const AnalyticsMsg& msg)
187 {
188 std::string str;
189 toStr(str, msg);
190 return str;
191 }
192
193}
194}
195}
196}
#define ONIXS_LSE_GTP_NOTHROW
Definition Compiler.h:118
#define ONIXS_LSE_GTP_CONST_OR_CONSTEXPR
Definition Compiler.h:121
Enumeration::Enum enumeration(MessageSize offset) const ONIXS_LSE_GTP_NOTHROW
FieldValue ordinary(MessageSize offset) const ONIXS_LSE_GTP_NOTHROW
BinaryMessage() ONIXS_LSE_GTP_NOTHROW
Initializes blank instance referencing to nothing.
ONIXS_LSE_GTP_API void throwIncorrectSize(const std::string &messageName, MessageSize receivedSize, MessageSize expectedSize)
FixedPointDecimal< UInt64, IntegralConstant< Int8, -4 > > Size4
Little-Endian encoded 64 bit unsigned integer with four implied decimal places.
Definition Defines.h:129
UInt64 UDT
time stamp (in UTC) = (date time per second resolution in unix time format) * 1,000,...
Definition Defines.h:94
UInt16 MessageSize
Aliases message length type.
Definition Defines.h:141
FixedPointDecimal< Int64, IntegralConstant< Int8, -8 > > Price
Signed Little-Endian encoded 64bit integer field with eight implied decimal places.
Definition Defines.h:102
ONIXS_LSE_GTP_API void toStr(std::string &, EventCode::Enum)
Appends string presentation of object.
Analytics Message is used to disseminate additional statistics including order book activity statisti...
Definition Analytics.h:37
UInt32 buyOrderCancellations() const ONIXS_LSE_GTP_NOTHROW
Number of buy orders cancelled by clients within the calculation window.
Definition Analytics.h:102
UDT timestamp() const ONIXS_LSE_GTP_NOTHROW
Time the message was generated.
Definition Analytics.h:39
AnalyticsMsg(const void *data, MessageSize size) ONIXS_LSE_GTP_NOTHROW
Initializes instance over given memory block.
Definition Analytics.h:175
Price vWAPSell() const ONIXS_LSE_GTP_NOTHROW
Volume weighted average price for trades triggered by an aggressing sell order.
Definition Analytics.h:158
UInt32 buyLimitOrderCancellations() const ONIXS_LSE_GTP_NOTHROW
Number of buy limit orders cancelled by clients within the calculation window.
Definition Analytics.h:116
Price vWAPBuy() const ONIXS_LSE_GTP_NOTHROW
Volume weighted average price for trades triggered by an aggressing buy order.
Definition Analytics.h:151
UInt32 buyOrderCount() const ONIXS_LSE_GTP_NOTHROW
Number of buy orders received within the calculation window.
Definition Analytics.h:74
SourceVenue::Enum sourceVenue() const ONIXS_LSE_GTP_NOTHROW
Venue from which market data is received for the instrument.
Definition Analytics.h:53
UDT startTime() const ONIXS_LSE_GTP_NOTHROW
Time the calculation of the statistics on this message began.
Definition Analytics.h:60
UInt32 buyMarketOrderCancellations() const ONIXS_LSE_GTP_NOTHROW
Number of buy market orders cancelled by clients within the calculation window.
Definition Analytics.h:123
Price bidAskSpread() const ONIXS_LSE_GTP_NOTHROW
Most recent bid/ask spread at the time of publication of the message.
Definition Analytics.h:144
UDT endTime() const ONIXS_LSE_GTP_NOTHROW
Time the calculation of the statistics on this message ended.
Definition Analytics.h:67
static ONIXS_LSE_GTP_CONST_OR_CONSTEXPR MessageSize messageSize_
Total message size.
Definition Analytics.h:165
UInt64 instrument() const ONIXS_LSE_GTP_NOTHROW
GTP Instrument identifier.
Definition Analytics.h:46
UInt32 sellOrderCount() const ONIXS_LSE_GTP_NOTHROW
Number of sell orders received within the calculation window.
Definition Analytics.h:81
static void validateSize(MessageSize size)
Check the given size.
Definition Analytics.h:168
UInt32 sellOrderCancellations() const ONIXS_LSE_GTP_NOTHROW
Number of sell orders cancelled by clients within the calculation window.
Definition Analytics.h:109
Size4 buyOrderSize() const ONIXS_LSE_GTP_NOTHROW
Cumulative quantity of all buy orders received within the calculation window.
Definition Analytics.h:88
Size4 sellOrderSize() const ONIXS_LSE_GTP_NOTHROW
Cumulative quantity of all sell orders received within the calculation window.
Definition Analytics.h:95
UInt32 sellMarketOrderCancellations() const ONIXS_LSE_GTP_NOTHROW
Number of sell market orders cancelled by clients within the calculation window.
Definition Analytics.h:137
UInt32 sellLimitOrderCancellations() const ONIXS_LSE_GTP_NOTHROW
Number of sell limit orders cancelled by clients within the calculation window.
Definition Analytics.h:130