OnixS C++ Eurex T7 Market and Reference Data (EMDI, MDI, RDI, EOBI) Handlers
17.0.1
API documentation
Home
Contents
Namespaces
Classes
Files
File List
File Members
include
OnixS
Eurex
MarketData
EOBI
TradeReversal.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 <
OnixS/Eurex/MarketData/ABI.h
>
23
#include <
OnixS/Eurex/MarketData/Numeric.h
>
24
#include <
OnixS/Eurex/MarketData/EOBI/MessageBase.h
>
25
#include <
OnixS/Eurex/MarketData/EOBI/DataContainer.h
>
26
27
namespace
OnixS
28
{
29
namespace
Eurex
30
{
31
namespace
MarketData
32
{
33
namespace
EOBI
34
{
35
class
ONIXS_EUREX_EMDI_API
TradeReversalEntry
:
public
DataContainer
36
{
37
public
:
38
/// Price.
39
bool
mdEntryPx (
Decimal
& price)
const
;
40
41
/// Quantity.
42
QuantityType
mdEntrySize()
const
;
43
44
/// Type of market data entry.
45
EOBI::MDEntryType::Enum
mdEntryType()
const
;
46
47
/// Returns text presentation.
48
std::string toString()
const
;
49
50
/// Appends text presentation.
51
void
toString (std::string&)
const
;
52
53
private
:
54
friend
class
TradeReversalEntries
;
55
56
TradeReversalEntry
(
const
void
* data);
57
};
58
59
class
ONIXS_EUREX_EMDI_API
TradeReversalEntries
:
public
DataContainer
60
{
61
public
:
62
/// Number of entries
63
size_t
size()
const
;
64
65
/// Entry accessor
66
TradeReversalEntry
operator[] (
size_t
idx)
const
;
67
68
private
:
69
friend
class
TradeReversal
;
70
71
explicit
72
TradeReversalEntries
(
const
void
* data);
73
};
74
75
class
ONIXS_EUREX_EMDI_API
TradeReversal
:
public
MessageBase
76
{
77
public
:
78
/// Message type
79
std::string msgType()
const
;
80
81
/// Market data type
82
EOBI::MarketDataType::Enum
marketDataType()
const
;
83
84
/// Type of Market Data update action.
85
EOBI::MDUpdateAction::Enum
mdUpdateAction()
const
;
86
87
/// Marketplace assigned identifier.
88
EOBI::SecurityIDSource::Enum
securityIDSource()
const
;
89
90
/// Unique instrument identifier.
91
UInt64 securityID()
const
;
92
93
/// Transaction timestamp.
94
UInt64 transactTime()
const
;
95
96
/// Unique identifier for each price level (match step) of a match event; it is used for public trade reporting.
97
UInt32
trdMatchID()
const
;
98
99
/// Quantity executed in this fill.
100
Int64 lastQty()
const
;
101
102
/// Price of this fill.
103
Decimal
lastPx()
const
;
104
105
/// Matching timestamp of new last trade.
106
UInt64 trdRegTSExecutionTime()
const
;
107
108
/// Counter
109
UInt8
noMDEntries()
const
;
110
111
/// Variable size array, record counter: NoMDEntries
112
TradeReversalEntries
mdTradeEntryGrp()
const
;
113
114
/// Trade Condition
115
EOBI::TradeCondition::Enum
tradeCondition()
const
;
116
117
/// Marketplace assigned identifier.
118
EOBI::MDOriginType::Enum
mDOriginType()
const
;
119
120
/// Appends text presentation.
121
void
toString (std::string&)
const
ONIXS_EUREX_EMDI_OVERRIDE
;
122
123
private
:
124
friend
class
Implementation::MessageFactory;
125
126
TradeReversal
(
const
void
* data,
const
DataSource
& dataSource) :
MessageBase
(data, dataSource) {}
127
};
128
}
129
}
130
}
131
}
OnixS::Eurex::MarketData::UInt8
unsigned char UInt8
Definition:
Numeric.h:35
Numeric.h
OnixS::Eurex::MarketData::EOBI::QuantityType
Int64 QuantityType
Definition:
Defines.h:988
OnixS::Eurex::MarketData::EOBI::MDUpdateAction::Enum
Enum
Definition:
Defines.h:1111
OnixS::Eurex::MarketData::EOBI::MarketDataType::Enum
Enum
Definition:
Defines.h:1123
OnixS::Eurex::MarketData::EOBI::TradeCondition::Enum
Enum
Definition:
Defines.h:1315
MessageBase.h
ONIXS_EUREX_EMDI_OVERRIDE
#define ONIXS_EUREX_EMDI_OVERRIDE
Definition:
Compiler.h:134
OnixS::Eurex::MarketData::EOBI::TradeReversalEntry
Definition:
TradeReversal.h:35
ABI.h
OnixS::Eurex::MarketData::UInt32
unsigned int UInt32
Definition:
Numeric.h:41
OnixS::Eurex::MarketData::EOBI::SecurityIDSource::Enum
Enum
Definition:
Defines.h:1214
OnixS
Definition:
Defines.h:30
OnixS::Eurex::MarketData::Decimal
Decimal type for better precision.
Definition:
Numeric.h:63
OnixS::Eurex::MarketData::EOBI::MDOriginType::Enum
Enum
Definition:
Defines.h:1781
OnixS::Eurex::MarketData::EOBI::TradeReversalEntries
Definition:
TradeReversal.h:59
DataContainer.h
OnixS::Eurex::MarketData::DataSource
Definition:
Defines.h:93
OnixS::Eurex::MarketData::EOBI::MDEntryType::Enum
Enum
Definition:
Defines.h:1080
OnixS::Eurex::MarketData::EOBI::DataContainer
Definition:
DataContainer.h:34
OnixS::Eurex::MarketData::EOBI::TradeReversal
Definition:
TradeReversal.h:75
OnixS::Eurex::MarketData::EOBI::MessageBase
Definition:
MessageBase.h:41