OnixS Eurex ETI Handler C++ library  9.19.0
API documentation
AmendBasketTradeRequest.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/Trading/Export.h"
27 
28 #include <iosfwd>
29 #include <string>
30 #include <vector>
31 
32 namespace OnixS {
33 namespace Eurex {
34 namespace Trading {
35 
36 /// Basket Root Party Group Element.
37 class ONIXS_EUREX_ETI_EXPORT BasketRootPartyGrpElem
38 {
39 public:
40  /// Initialize default instance.
42 
43  /// RootParty sub-type.
45 
46  /// The identifier of the member counterparty institution.
47  std::string rootPartyContraFirm;
48 
49  /// The identifier of the trader counterparty.
50  std::string rootPartyContraTrader;
51 
52  /// User defined Basket trade ID.
54 
55  /// Returns string representation.
56  std::string toString () const;
57 
58 private:
59  friend class Serializer;
60  BasketRootPartyGrpElem (const void* data);
61 };
62 
63 ONIXS_EUREX_ETI_EXPORT std::ostream& operator << (std::ostream&, const BasketRootPartyGrpElem&);
64 
65 /// Instrument Match Side Group Element.
66 class ONIXS_EUREX_ETI_EXPORT InstrmtMatchSideGrpElem
67 {
68 public:
69  /// Initialize default instance.
71 
72  /// The instrument identifier uniquely identifies an instrument in the core system.
74 
75  /// Price of this leg fill.
77 
78  /// Trade Closure Time, the time when an Off-Book trade was concluded outside the Eurex System.
80 
81  /// User defined index price.
83 
84  /// Final trade price.
86 
87  /// Identifier for a Trade Entry Service trade, i.e TES trade ID.
89 
90  /// Product ID.
92 
93  /// Sub-type of a trade type.
95 
96  /// This field qualifies an instrument type on Eurex.
98 
99  /// Indicates if a trade should be reported via the market reporting service.
101 
102  /// ID to map element of InstrmtMatchSideGrp and BasketSideAllocGrp.
104 
105  /// Transaction effect on a basket.
107 
108  /// User defined text field.
109  std::string tradeReportText;
110 
111  /// Returns string representation.
112  std::string toString () const;
113 
114 private:
115  friend class Serializer;
116  InstrmtMatchSideGrpElem (const void* data);
117 };
118 
119 ONIXS_EUREX_ETI_EXPORT std::ostream& operator << (std::ostream&, const InstrmtMatchSideGrpElem&);
120 
121 /// Basket Side Alloc Group Element.
122 class ONIXS_EUREX_ETI_EXPORT BasketSideAllocGrpElem
123 {
124 public:
125  /// Initialize default instance.
127 
128  /// Quantity of the particular trade side in the TES trade.
130 
131  /// Unique identifier for a TES trade side.
133 
134  /// Party sub-type.
136 
137  /// Side of the order.
139 
140  /// ID to map element of InstrmtMatchSideGrp and BasketSideAllocGrp.
142 
143  /// Status of an allocation in a Trade Entry Service trade.
145 
146  /// Owning business unit name.
147  std::string partyExecutingFirm;
148 
149  /// Owning user name.
150  std::string partyExecutingTrader;
151 
152  /// Returns string representation.
153  std::string toString () const;
154 
155 private:
156  friend class Serializer;
157  BasketSideAllocGrpElem (const void* data);
158 };
159 
160 ONIXS_EUREX_ETI_EXPORT std::ostream& operator << (std::ostream&, const BasketSideAllocGrpElem&);
161 
162 /// Amend Basket Trade Request Message.
163 class ONIXS_EUREX_ETI_EXPORT AmendBasketTradeRequest : public Message
164 {
165 public:
166  /// Initialize default instance.
168 
169  /// User ID.
171 
172  /// System defined Basket ID.
174 
175  /// System generated transaction ID for a Basket transaction.
177 
178  /// The product identifier uniquely identifies a Eurex product.
180 
181  /// Month year code for expiry YYYYMM.
183 
184  /// ID of the Basket profile.
186 
187  /// Indicates if a trade should be reported via the market reporting service.
189 
190  /// Identifies the type of trade notification.
192 
193  /// Basket operation.
195 
196  /// User defined text message field.
198 
199  /// User defined transaction ID. Part of the TES response and TES broadcast.
200  std::string tradeReportId;
201 
202  /// Basket Root Party Group.
203  std::vector<BasketRootPartyGrpElem> basketRootPartyGrp;
204 
205  /// Instrument Match Side Group.
206  std::vector<InstrmtMatchSideGrpElem> instrmtMatchSideGrp;
207 
208  /// Basket Side Alloc Group.
209  std::vector<BasketSideAllocGrpElem> basketSideAllocGrp;
210 
211  /// Returns template ID.
212  TemplateId::Enum templateId () const;
213 
214  /// Returns string representation.
215  std::string toString () const;
216 
217 private:
218  friend class Serializer;
219  AmendBasketTradeRequest (const void* data, size_t dataSize, MessageInfo& msgInfo);
220  void nativeSerializeTo (void* nativeMessage);
221 };
222 
223 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const AmendBasketTradeRequest&);
224 
225 }
226 }
227 }
RootPartySubIdType::Enum rootPartySubIdType
RootParty sub-type.
SInt64 allocQty
Quantity of the particular trade side in the TES trade.
EffectOnBasket::Enum effectOnBasket
Transaction effect on a basket.
std::string tradeReportId
User defined transaction ID. Part of the TES response and TES broadcast.
UInt32 basketExecId
System generated transaction ID for a Basket transaction.
unsigned char UInt8
Definition: Defines.h:44
Enum
Side of the order.
unsigned long long UInt64
Definition: Defines.h:47
Enum
Indicates if a trade should be reported via the market reporting service.
TradeAllocStatus::Enum tradeAllocStatus
Status of an allocation in a Trade Entry Service trade.
signed int SInt32
Definition: Defines.h:42
std::string basketTradeReportText
User defined text message field.
Enum
This field qualifies an instrument type on Eurex.
TradeReportType::Enum tradeReportType
Identifies the type of trade notification.
Enum
Indicates if a trade should be reported via the market reporting service.
SInt64 relatedClosePrice
User defined index price.
BasketTradeReportType::Enum basketTradeReportType
Basket operation.
Enum
Status of an allocation in a Trade Entry Service trade.
Message base class.
Definition: Message.h:33
SInt32 marketSegmentId
The product identifier uniquely identifies a Eurex product.
std::vector< BasketRootPartyGrpElem > basketRootPartyGrp
Basket Root Party Group.
UInt8 instrmtMatchSideId
ID to map element of InstrmtMatchSideGrp and BasketSideAllocGrp.
std::vector< InstrmtMatchSideGrpElem > instrmtMatchSideGrp
Instrument Match Side Group.
SideTrdSubTyp::Enum sideTrdSubTyp
Sub-type of a trade type.
UInt64 transBkdTime
Trade Closure Time, the time when an Off-Book trade was concluded outside the Eurex System...
UInt32 individualAllocId
Unique identifier for a TES trade side.
unsigned int UInt32
Definition: Defines.h:46
ProductComplex::Enum productComplex
This field qualifies an instrument type on Eurex.
std::string rootPartyContraTrader
The identifier of the trader counterparty.
signed long long SInt64
Definition: Defines.h:43
std::string partyExecutingFirm
Owning business unit name.
Enum
Transaction effect on a basket.
Definition: Enumerations.h:313
std::string tradeReportText
User defined text field.
std::string rootPartyContraFirm
The identifier of the member counterparty institution.
SInt64 securityId
The instrument identifier uniquely identifies an instrument in the core system.
TrdType::Enum trdType
Indicates if a trade should be reported via the market reporting service.
Enum
Sub-type of a trade type.
std::ostream & operator<<(std::ostream &, const ConnectionStateChange &)
Make it printable to formatted C++ I/O streams.
std::vector< BasketSideAllocGrpElem > basketSideAllocGrp
Basket Side Alloc Group.
UInt32 maturityMonthYear
Month year code for expiry YYYYMM.
Enum
Identifies the type of trade notification.
PartySubIdType::Enum partySubIdType
Party sub-type.
TradePublishIndicator::Enum tradePublishIndicator
Indicates if a trade should be reported via the market reporting service.
UInt8 instrmtMatchSideId
ID to map element of InstrmtMatchSideGrp and BasketSideAllocGrp.
UInt32 packageId
Identifier for a Trade Entry Service trade, i.e TES trade ID.
std::string basketSideTradeReportId
User defined Basket trade ID.