OnixS Eurex ETI Handler C++ library  9.22.0
API documentation
ApproveBasketTradeRequest.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
13  * part of this source code or associated reference material to any other location for further
14  * reproduction or redistribution, and any amendments to this copyright notice, are expressly
15  * prohibited.
16  *
17  * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
18  * the terms of the Agreement is a violation of copyright law.
19  */
20 
21 #pragma once
22 
25 #include "OnixS/Eurex/Trading/Export.h"
28 
29 #include <iosfwd>
30 #include <string>
31 #include <vector>
32 
33 namespace OnixS { namespace Eurex { namespace Trading {
34 
35 /// Basket Side Alloc Ext Group Element.
36 class ONIXS_EUREX_ETI_EXPORT BasketSideAllocExtGrpElem
37 {
38 public:
39  /// Initialize default instance.
41 
42  /// Quantity of the particular trade side in the TES trade.
44 
45  /// Client Identifier field (ESMA Field 3 (Section A)) used to identify the client of an order for agent account of
46  /// the member or participant of the trading venue.
48 
49  /// Investment decision within firm (ESMA Field 4 (Section A)) is the code used to identify the person or the
50  /// algorithm within the member or participant of the Trading Venue who is responsible for the investment decision.
52 
53  /// Executing Trader data Field (ESMA Field 5 (Section A)) used to identify the person or algorithm within the
54  /// member or participant of the trading venue who is responsible for the execution of the transaction resulting
55  /// from the order.
57 
58  /// Identifier for a Trade Entry Service trade, i.e TES trade ID.
60 
61  /// Product ID.
63 
64  /// Unique identifier for a TES Trade side.
66 
67  /// Side of the order.
69 
70  /// Field is used for Eurex position management purposes and indicates whether the order is submitted to open or
71  /// close a position.
73 
74  /// This field designates if the trader is acting in the capacity of agent, trading for its own account or acting as
75  /// a market maker.
77 
78  /// Order attribute liquidity provision.
80 
81  /// Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos.
83 
84  /// Party ID investment decision maker qualifier.
86 
87  /// Order attribute risk reduction.
89 
90  /// Order origination, MiFID field - to indicate order received from a direct access or sponsored access customer.
92 
93  /// Owning business unit name.
94  std::string partyExecutingFirm;
95 
96  /// Owning user name.
97  std::string partyExecutingTrader;
98 
99  /// Account to book trades and keep positions on.
100  std::string account;
101 
102  /// First free-format text field for trader-specific or customer-related comments.
103  std::string freeText1;
104 
105  /// Second free-format text field for trader-specific or customer-related comments.
106  std::string freeText2;
107 
108  /// Third free-format text field for trader-specific or customer-related comments.
109  std::string freeText3;
110 
111  /// Indicates the name of a member institution to which a give-up is designated.
113 
114  /// Partner identification at the Korea Exchange is required for orders in KRX products.
116 
117  /// Mandatory final KRX beneficiary account required for orders in KRX products.
118  std::string partyIdBeneficiary;
119 
120  /// Flex Account information.
122 
123  /// Country code. Valid characters: 0x01-0x7E.
124  std::string partyIdLocationId;
125 
126  /// Identifies the source of an order, in accordance with the FIA guidelines for a rate Identifier. The field is for
127  /// participant use only. Valid characters: 0x20, 0x22-0x7B, 0x7D, 0x7E.
129 
130  /// This field is used to provide additional regulatory information (according to respective rules and regs,
131  /// circulars and bilateral coordination between participant and Trading Surveillance Office).
132  std::string complianceText;
133 
134  /// Returns string representation.
135  std::string toString() const;
136 
137 private:
138  friend class Serializer;
139  BasketSideAllocExtGrpElem(const void* data);
140 };
141 
142 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const BasketSideAllocExtGrpElem&);
143 
144 /// Approve Basket Trade Request Message.
145 class ONIXS_EUREX_ETI_EXPORT ApproveBasketTradeRequest : public Message
146 {
147 public:
148  /// Initialize default instance.
150 
151  /// User ID.
153 
154  /// System defined Basket ID.
156 
157  /// System generated transaction ID for a Basket transaction.
159 
160  /// The product identifier uniquely identifies a Eurex product.
162 
163  /// RootParty sub-type.
165 
166  /// Indicates if a trade should be reported via the market reporting service.
168 
169  /// Identifies the type of trade notification.
171 
172  /// User defined text message field.
174 
175  /// User defined transaction ID. Part of the TES response and TES broadcast.
176  std::string tradeReportId;
177 
178  /// User defined Basket trade ID.
180 
181  /// Basket Side Alloc Ext Group.
182  std::vector<BasketSideAllocExtGrpElem> basketSideAllocExtGrp;
183 
184  /// Returns template ID.
185  TemplateId::Enum templateId() const;
186 
187  /// Returns string representation.
188  std::string toString() const;
189 
190 private:
191  friend class Serializer;
192  ApproveBasketTradeRequest(const void* data, size_t dataSize, MessageInfo& msgInfo);
193  void nativeSerializeTo(void* nativeMessage);
194 };
195 
196 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const ApproveBasketTradeRequest&);
197 
198 }}}
Enum
Party ID investment decision maker qualifier.
UInt32 packageId
Identifier for a Trade Entry Service trade, i.e TES trade ID.
std::string partyIdBeneficiary
Mandatory final KRX beneficiary account required for orders in KRX products.
std::vector< BasketSideAllocExtGrpElem > basketSideAllocExtGrp
Basket Side Alloc Ext Group.
std::string partyIdOrderOriginationFirm
Partner identification at the Korea Exchange is required for orders in KRX products.
Enum
Side of the order.
unsigned long long UInt64
Definition: Defines.h:46
Enum
Indicates if a trade should be reported via the market reporting service.
std::string basketSideTradeReportId
User defined Basket trade ID.
std::string partyIdLocationId
Country code. Valid characters: 0x01-0x7E.
UInt32 basketExecId
System generated transaction ID for a Basket transaction.
signed int SInt32
Definition: Defines.h:41
std::string partyExecutingFirm
Owning business unit name.
TrdType::Enum trdType
Indicates if a trade should be reported via the market reporting service.
Message base class.
Definition: Message.h:32
Enum
Order origination, MiFID field - to indicate order received from a direct access or sponsored access ...
std::string freeText3
Third free-format text field for trader-specific or customer-related comments.
std::string partyIdPositionAccount
Flex Account information.
PartyIdInvestmentDecisionMakerQualifier::Enum partyIdInvestmentDecisionMakerQualifier
Party ID investment decision maker qualifier.
unsigned int UInt32
Definition: Defines.h:45
signed long long SInt64
Definition: Defines.h:42
OrderAttributeLiquidityProvision::Enum orderAttributeLiquidityProvision
Order attribute liquidity provision.
std::string basketTradeReportText
User defined text message field.
std::ostream & operator<<(std::ostream &, ConnectionState::Enum)
Make it printable using C++ I/O streams.
std::string account
Account to book trades and keep positions on.
OrderAttributeRiskReduction::Enum orderAttributeRiskReduction
Order attribute risk reduction.
std::string tradeReportId
User defined transaction ID. Part of the TES response and TES broadcast.
std::string freeText2
Second free-format text field for trader-specific or customer-related comments.
std::string partyIdTakeUpTradingFirm
Indicates the name of a member institution to which a give-up is designated.
OrderOrigination::Enum orderOrigination
Order origination, MiFID field - to indicate order received from a direct access or sponsored access ...
SInt64 allocQty
Quantity of the particular trade side in the TES trade.
UInt32 allocId
Unique identifier for a TES Trade side.
Enum
Identifies the type of trade notification.
SInt32 marketSegmentId
The product identifier uniquely identifies a Eurex product.
ExecutingTraderQualifier::Enum executingTraderQualifier
Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos...
RootPartySubIdType::Enum rootPartySubIdType
RootParty sub-type.
std::string freeText1
First free-format text field for trader-specific or customer-related comments.
Enum
Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos...
Definition: Enumerations.h:551
TradeReportType::Enum tradeReportType
Identifies the type of trade notification.