OnixS Eurex ETI Handler C++ library  9.22.0
API documentation
EnterCLIPRequest.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 /// Cross Request Side Group Element.
36 class ONIXS_EUREX_ETI_EXPORT CrossRequestSideGrpElem
37 {
38 public:
39  /// Initialize default instance.
41 
42  /// Client Identifier field (ESMA Field 3 (Section A)) used to identify the client of an order for agent account of
43  /// the member or participant of the trading venue.
45 
46  /// Investment decision within firm (ESMA Field 4 (Section A)) is the code used to identify the person or the
47  /// algorithm within the member or participant of the Trading Venue who is responsible for the investment decision.
49 
50  /// Executing Trader data Field (ESMA Field 5 (Section A)) used to identify the person or algorithm within the
51  /// member or participant of the trading venue who is responsible for the execution of the transaction resulting
52  /// from the order.
54 
55  /// Maximum Price.
57 
58  /// Self Match Prevention ID.
60 
61  /// Role on/for a message.
63 
64  /// Side of the order.
66 
67  /// Indicate the instruction for SMP. If MatchInstCrossID (28744) is set then the default value for
68  /// SelfMatchPreventionInstruction is 100 (Reject cross on business unit level).
70 
71  /// This field designates if the trader is acting in the capacity of agent, trading for its own account or acting as
72  /// a market maker.
74 
75  /// Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos.
77 
78  /// Order attribute liquidity provision.
80 
81  /// Party ID investment decision maker qualifier.
83 
84  /// Order attribute risk reduction.
86 
87  /// Order origination, MiFID field - to indicate order received from a direct access or sponsored access customer.
89 
90  /// Field is used for Eurex position management purposes and indicates whether the order is submitted to open or
91  /// close a position.
93 
94  /// Identifies the source of an order, in accordance with the FIA guidelines for a rate Identifier. The field is for
95  /// participant use only. Valid characters: 0x20, 0x22-0x7B, 0x7D, 0x7E.
97 
98  /// Account to book trades and keep positions on.
99  std::string account;
100 
101  /// Flex Account information.
103 
104  /// First free-format text field for trader-specific or customer-related comments.
105  std::string freeText1;
106 
107  /// Second free-format text field for trader-specific or customer-related comments.
108  std::string freeText2;
109 
110  /// Third free-format text field for trader-specific or customer-related comments.
111  std::string freeText3;
112 
113  /// Partner identification at the Korea Exchange is required for orders in KRX products.
115 
116  /// Mandatory final KRX beneficiary account required for orders in KRX products.
117  std::string partyIdBeneficiary;
118 
119  /// Indicates the name of a member institution to which a give-up is designated.
121 
122  /// Side compliance text.
123  std::string sideComplianceText;
124 
125  /// Country code. Valid characters: 0x01-0x7E.
126  std::string partyIdLocationId;
127 
128  /// End client identifier.
130 
131  /// Returns string representation.
132  std::string toString() const;
133 
134 private:
135  friend class Serializer;
136  CrossRequestSideGrpElem(const void* data);
137 };
138 
139 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const CrossRequestSideGrpElem&);
140 
141 /// Side Cross Leg Group Element.
142 class ONIXS_EUREX_ETI_EXPORT SideCrossLegGrpElem
143 {
144 public:
145  /// Initialize default instance.
147 
148  /// Role on/for a message.
150 
151  /// Leg-specific field used for Eurex position management purposes and indicates whether the leg is submitted to
152  /// open or close a position.
154 
155  /// Leg-specific account to book trades and keep positions on.
156  std::string legAccount;
157 
158  /// Returns string representation.
159  std::string toString() const;
160 
161 private:
162  friend class Serializer;
163  SideCrossLegGrpElem(const void* data);
164 };
165 
166 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const SideCrossLegGrpElem&);
167 
168 /// Enter CLIP Request Message.
169 class ONIXS_EUREX_ETI_EXPORT EnterCLIPRequest : public Message
170 {
171 public:
172  /// Initialize default instance.
174 
175  /// User ID.
177 
178  /// The instrument identifier uniquely identifies an instrument in the core system.
180 
181  /// Price.
183 
184  /// Total Order Quantity.
186 
187  /// The product identifier uniquely identifies a Eurex product.
189 
190  /// User defined CLIP arrangement ID.
192 
193  /// User defined transaction ID.
195 
196  /// Type of the Cross Request.
198 
199  /// Type of cross being submitted to a market.
201 
202  /// Prioritization of a cross order.
204 
205  /// Instruction to show side.
207 
208  /// Price disclosure instruction.
210 
211  /// Instruction to show total quantity.
213 
214  /// Indicator how price validity check should be performed by the exchange.
216 
217  /// Indicator for checking the maximum order/quote value by the exchange.
219 
220  /// The identifier of the member counterparty institution.
221  std::string rootPartyContraFirm;
222 
223  /// The identifier of the trader counterparty.
225 
226  /// Cross Request Side Group.
227  std::vector<CrossRequestSideGrpElem> crossRequestSideGrp;
228 
229  /// Side Cross Leg Group.
230  std::vector<SideCrossLegGrpElem> sideCrossLegGrp;
231 
232  /// Returns template ID.
233  TemplateId::Enum templateId() const;
234 
235  /// Returns string representation.
236  std::string toString() const;
237 
238 private:
239  friend class Serializer;
240  EnterCLIPRequest(const void* data, size_t dataSize, MessageInfo& msgInfo);
241  void nativeSerializeTo(void* nativeMessage);
242 };
243 
244 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const EnterCLIPRequest&);
245 
246 }}}
Enum
Party ID investment decision maker qualifier.
std::string rootPartyContraTrader
The identifier of the trader counterparty.
std::string partyIdPositionAccount
Flex Account information.
std::string partyIdLocationId
Country code. Valid characters: 0x01-0x7E.
std::string rootPartyContraFirm
The identifier of the member counterparty institution.
OrderAttributeLiquidityProvision::Enum orderAttributeLiquidityProvision
Order attribute liquidity provision.
Enum
Side of the order.
unsigned long long UInt64
Definition: Defines.h:46
Enum
Indicator how price validity check should be performed by the exchange.
Enum
Type of the Cross Request.
Definition: Enumerations.h:263
OrderAttributeRiskReduction::Enum orderAttributeRiskReduction
Order attribute risk reduction.
Enum
Instruction to show total quantity.
std::string account
Account to book trades and keep positions on.
SelfMatchPreventionInstruction::Enum selfMatchPreventionInstruction
Enum
Role on/for a message.
Definition: Enumerations.h:718
std::string freeText2
Second free-format text field for trader-specific or customer-related comments.
signed int SInt32
Definition: Defines.h:41
std::string partyIdTakeUpTradingFirm
Indicates the name of a member institution to which a give-up is designated.
PriceValidityCheckType::Enum priceValidityCheckType
Indicator how price validity check should be performed by the exchange.
CrossPrioritization::Enum crossPrioritization
Prioritization of a cross order.
Message base class.
Definition: Message.h:32
Enum
Order origination, MiFID field - to indicate order received from a direct access or sponsored access ...
SInt32 crossId
User defined CLIP arrangement ID.
OrderOrigination::Enum orderOrigination
Order origination, MiFID field - to indicate order received from a direct access or sponsored access ...
SideDisclosureInstruction::Enum sideDisclosureInstruction
Instruction to show side.
ValueCheckTypeValue::Enum valueCheckTypeValue
Indicator for checking the maximum order/quote value by the exchange.
Cross Request Side Group Element.
std::string sideComplianceText
Side compliance text.
std::string freeText3
Third free-format text field for trader-specific or customer-related comments.
std::string partyIdBeneficiary
Mandatory final KRX beneficiary account required for orders in KRX products.
unsigned int UInt32
Definition: Defines.h:45
signed long long SInt64
Definition: Defines.h:42
std::ostream & operator<<(std::ostream &, ConnectionState::Enum)
Make it printable using C++ I/O streams.
LegInputSource::Enum legInputSource
Role on/for a message.
std::string freeText1
First free-format text field for trader-specific or customer-related comments.
Enum
Indicator for checking the maximum order/quote value by the exchange.
UInt32 matchInstCrossId
Self Match Prevention ID.
std::string partyEndClientIdentification
End client identifier.
SInt64 securityId
The instrument identifier uniquely identifies an instrument in the core system.
CrossType::Enum crossType
Type of cross being submitted to a market.
Enum
Prioritization of a cross order.
Definition: Enumerations.h:245
ExecutingTraderQualifier::Enum executingTraderQualifier
Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos...
SInt32 crossRequestId
User defined transaction ID.
SInt32 marketSegmentId
The product identifier uniquely identifies a Eurex product.
PriceDisclosureInstruction::Enum priceDisclosureInstruction
Price disclosure instruction.
Enum
Type of cross being submitted to a market.
Definition: Enumerations.h:281
std::vector< CrossRequestSideGrpElem > crossRequestSideGrp
Cross Request Side Group.
std::vector< SideCrossLegGrpElem > sideCrossLegGrp
Side Cross Leg Group.
std::string legAccount
Leg-specific account to book trades and keep positions on.
std::string partyIdOrderOriginationFirm
Partner identification at the Korea Exchange is required for orders in KRX products.
OrderQtyDisclosureInstruction::Enum orderQtyDisclosureInstruction
Instruction to show total quantity.
SInt64 orderQty
Total Order Quantity.
PartyIdInvestmentDecisionMakerQualifier::Enum partyIdInvestmentDecisionMakerQualifier
Party ID investment decision maker qualifier.
CustOrderHandlingInst::Enum custOrderHandlingInst
CrossRequestType::Enum crossRequestType
Type of the Cross Request.
Enum
Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos...
Definition: Enumerations.h:551
InputSource::Enum inputSource
Role on/for a message.