OnixS C++ LSE GTP Market Data Handler 1.0.6
API documentation
Loading...
Searching...
No Matches
StatisticsSnapshot.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 Size4 volume() const
62 {
63 return Size4(ordinary<UInt64>(21));
64 }
65
72
74 Price4 vwap() const
76 {
77 return Price4(ordinary<UInt64>(37));
78 }
79
86
88 UInt32 numberOfTrades() const
90 {
91 return ordinary<UInt32>(53);
92 }
93
97 {
98 return ordinary<UInt32>(57);
99 }
100
104 {
105 return Price4(ordinary<UInt64>(61));
106 }
107
114
121
128
132 {
133 return Price(ordinary<UInt64>(93));
134 }
135
139 {
140 return Price(ordinary<UInt64>(101));
141 }
142
146 {
147 return Price(ordinary<UInt64>(109));
148 }
149
153 {
154 return Price(ordinary<UInt64>(117));
155 }
156
160 {
161 return Price(ordinary<UInt64>(125));
162 }
163
167 {
168 return Price(ordinary<UInt64>(133));
169 }
170
174 {
175 return ordinaryRef<Byte>(141);
176 }
177
181 {
182 return ordinaryRef<Byte>(142);
183 }
184
188 {
189 return Price(ordinary<UInt64>(143));
190 }
191
195 {
196 return Size(ordinary<UInt64>(151));
197 }
198
203 {
204 return Size(ordinary<UInt64>(159));
205 }
206
213
217 {
218 return Price(ordinary<UInt64>(168));
219 }
220
224 {
225 return Price(ordinary<UInt64>(176));
226 }
227
231 {
232 return Size(ordinary<UInt64>(184));
233 }
234
238 {
239 return Size(ordinary<UInt64>(192));
240 }
241
248
253 {
254 return Price(ordinary<UInt64>(233));
255 }
256
261 {
262 return Size(ordinary<UInt64>(241));
263 }
264
269 {
270 return ordinary<UDT>(249);
271 }
272
276 {
277 return Price(ordinary<UInt64>(257));
278 }
279
283 {
284 return Price(ordinary<UInt64>(265));
285 }
286
289
291 static void validateSize(MessageSize size)
292 {
293 if(size != messageSize_)
294 throwIncorrectSize("StatisticsSnapshot", size, messageSize_);
295 }
296
298 StatisticsSnapshotMsg(const void* data, MessageSize size)
300 : BinaryMessage(data, size)
301 {
302 }
303 };
304
306 ONIXS_LSE_GTP_API void toStr(std::string&, const StatisticsSnapshotMsg&);
307
309 inline std::string toStr(const StatisticsSnapshotMsg& msg)
310 {
311 std::string str;
312 toStr(str, msg);
313 return str;
314 }
315
316}
317}
318}
319}
#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
const FieldValue & ordinaryRef(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.
FixedPointDecimal< Int64, IntegralConstant< Int8, -4 > > Price4
Signed Little-Endian encoded 64bit integer field with four implied decimal places.
Definition Defines.h:120
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
FixedPointDecimal< UInt64, IntegralConstant< Int8, -8 > > Size
Little-Endian encoded 64 bit unsigned integer with eight implied decimal places.
Definition Defines.h:111
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.
UInt8 Byte
Alias for Byte.
Definition Memory.h:37
UInt32 numberOfTrades() const ONIXS_LSE_GTP_NOTHROW
Count of all trades for the day.
Price4 turnover() const ONIXS_LSE_GTP_NOTHROW
Turnover of all trades for the day.
UInt32 numberOfTradesOnBookOnly() const ONIXS_LSE_GTP_NOTHROW
Count of trades for the day excluding off-book trades.
UDT timestamp() const ONIXS_LSE_GTP_NOTHROW
Time the message was generated.
Price bestClosingAskPrice() const ONIXS_LSE_GTP_NOTHROW
The best offer price at the time the instrument moves into closing auction session.
Price staticReferencePrice() const ONIXS_LSE_GTP_NOTHROW
Reference Price as reported by the source venue. (Specific to BIT/TLX)
Price4 vwap() const ONIXS_LSE_GTP_NOTHROW
Volume weighted average price for the day for all trades.
Size4 volume() const ONIXS_LSE_GTP_NOTHROW
Cumulative volume of all trades for the trading day.
SourceVenue::Enum sourceVenue() const ONIXS_LSE_GTP_NOTHROW
Source venue.
Price tradeHighOnBookOnly() const ONIXS_LSE_GTP_NOTHROW
Current trading day high price excluding off-book trades.
Size4 volumeOnBookOnly() const ONIXS_LSE_GTP_NOTHROW
Cumulative volume for the trading day excluding off-book trades.
ImbalanceDirection::Enum imbalanceDirection() const ONIXS_LSE_GTP_NOTHROW
Imbalance Direction.
Price iAUPrice() const ONIXS_LSE_GTP_NOTHROW
Contains the last reported Indicative Auction Crossing Price/Yield.
Price tradeLow52week() const ONIXS_LSE_GTP_NOTHROW
52-week low price of all trades.
AuctionType::Enum auctionType() const ONIXS_LSE_GTP_NOTHROW
Auction Type.
Size iAUPairedSize() const ONIXS_LSE_GTP_NOTHROW
Quantity to be matched at the last reported indicative price.
static ONIXS_LSE_GTP_CONST_OR_CONSTEXPR MessageSize messageSize_
Total message size.
Price officialOpeningPrice() const ONIXS_LSE_GTP_NOTHROW
Official Opening Price for the instrument.
UInt64 instrument() const ONIXS_LSE_GTP_NOTHROW
GTP Instrument identifier.
Price tradeHigh() const ONIXS_LSE_GTP_NOTHROW
Current trading day high price of all trades.
Size imbalanceQuantity() const ONIXS_LSE_GTP_NOTHROW
StatisticsSnapshotMsg(const void *data, MessageSize size) ONIXS_LSE_GTP_NOTHROW
Initializes instance over given memory block.
Size bestClosingAskSize() const ONIXS_LSE_GTP_NOTHROW
The best offer size at the time the instrument moves into closing auction session.
static void validateSize(MessageSize size)
Check the given size.
Price4 turnoverOnBookOnly() const ONIXS_LSE_GTP_NOTHROW
Turnover for the day excluding off-book trades.
Price officialClosingPrice() const ONIXS_LSE_GTP_NOTHROW
Official Closing Price for the instrument.
Price tradeHigh52week() const ONIXS_LSE_GTP_NOTHROW
52-week high price of all trades.
Price dynamicReferencePrice() const ONIXS_LSE_GTP_NOTHROW
Reference Price as reported by the source venue. (Specific to BIT/TLX)
Price4 vwapOnBookOnly() const ONIXS_LSE_GTP_NOTHROW
Volume weighted average price for the day excluding off-book trades.
Byte closingPriceIndicator() const ONIXS_LSE_GTP_NOTHROW
Size bestClosingBidSize() const ONIXS_LSE_GTP_NOTHROW
The best bid size at the time the instrument moves into closing auction session.
Price tradeLow() const ONIXS_LSE_GTP_NOTHROW
Current trading day low price of all trades.
Price bestClosingBidPrice() const ONIXS_LSE_GTP_NOTHROW
The best bid price at the time the instrument moves into closing auction session.
Price lastTradePrice() const ONIXS_LSE_GTP_NOTHROW
Size lastTradeQuantity() const ONIXS_LSE_GTP_NOTHROW
Byte openingPriceIndicator() const ONIXS_LSE_GTP_NOTHROW
Price tradeLowOnBookOnly() const ONIXS_LSE_GTP_NOTHROW
Current trading day low price excluding off-book trades.