OnixS ICE iMpact Multicast Price Feed Handler C++ library 8.18.0
API documentation
Loading...
Searching...
No Matches
Trade.h
Go to the documentation of this file.
1
5/*
6 * Copyright (c) Onix Solutions Limited. All rights reserved.
7 *
8 * This software owned by Onix Solutions Limited and is protected by copyright law
9 * and international copyright treaties.
10 *
11 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
12 * Services Agreement (the Agreement) and Customer end user license agreements granting
13 * a non-assignable, non-transferable and non-exclusive license to use the software
14 * for it's own data processing purposes under the terms defined in the Agreement.
15 *
16 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
17 * of this source code or associated reference material to any other location for further reproduction
18 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
19 *
20 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
21 * the terms of the Agreement is a violation of copyright law.
22 */
23
24#pragma once
25
26#include "../Enumerations.h"
27#include "../Export.h"
28#include "../Types.h"
29
30#include <iosfwd>
31#include <string>
32
33namespace OnixS { namespace ICE { namespace iMpact { namespace MarketData {
34
36struct ONIXS_ICEMDH_EXPORT Trade
37{
39 enum
40 {
42 };
43
46
49
52
56
59
62
65
69
72
75
78
84
88
96
99
101 Trade(const char* data, std::size_t dataSize);
102
104 void deserialize(const char* data, std::size_t dataSize);
105
107 void reset();
108
110 std::string toString() const;
111};
112
114ONIXS_ICEMDH_EXPORT std::ostream& operator<<(std::ostream&, const Trade&);
115
116}}}} // namespace OnixS::ICE::iMpact::MarketData
Declare ICE iMpact enumerations.
long long Price
Alias for order identifiers type.
Definition Types.h:54
long long TradeId
Alias for order identifiers type.
Definition Types.h:45
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
int MarketId
Alias for market identifiers type.
Definition Types.h:39
long long DateTime
Represents the number of nanoseconds since Jan 1st, 1970, 00:00:00 GMT.
Definition Types.h:57
This class represents the Trade Message.
Definition Trade.h:37
DateTime transactDateTime
Deal date time. Milliseconds since Jan 1st, 1970, 00:00:00 GMT.
Definition Trade.h:61
TradeId tradeId
Unique identifier of the trade message, unique per market.
Definition Trade.h:48
std::string toString() const
Returns string representation.
bool isSystemPricedLeg
Indicate if it is a system priced leg.
Definition Trade.h:51
Trade(const char *data, std::size_t dataSize)
Initialize from raw message data.
AggressorSide::Enum aggressorSide
Used to identify which side of a trade the aggressor was on.
Definition Trade.h:74
OffMarketTradeType::Enum offMarketTradeType
Definition Trade.h:83
void deserialize(const char *data, std::size_t dataSize)
Deserialize from raw data.
TradeExtraFlags::Enum extraFlags
Extra flags.
Definition Trade.h:77
SystemPricedLegType::Enum systemPricedLegType
Indicates type of system priced leg.
Definition Trade.h:64
void reset()
Reset all fields to default values.
int quantity
Trade quantity.
Definition Trade.h:58
MarketId marketId
MarketID of the instrument that was traded.
Definition Trade.h:45
bool isAdjustedTrade
Indicate if the trade is an adjusted trade.
Definition Trade.h:71