OnixS Eurex ETI Handler C++ library  9.22.0
API documentation
NewOrderRequest.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"
29 
30 #include <iosfwd>
31 #include <string>
32 #include <vector>
33 
34 namespace OnixS { namespace Eurex { namespace Trading {
35 
36 /// New Order Request Message.
37 class ONIXS_EUREX_ETI_EXPORT NewOrderRequest : public Message
38 {
39 public:
40  /// Initialize default instance.
42 
43  /// User ID.
45 
46  /// Unique participant defined order request identifier.
48 
49  /// Stop price.
51 
52  /// Client Identifier field (ESMA Field 3 (Section A)) used to identify the client of an order for agent account of
53  /// the member or participant of the trading venue.
55 
56  /// Executing Trader data Field (ESMA Field 5 (Section A)) used to identify the person or algorithm within the
57  /// member or participant of the trading venue who is responsible for the execution of the transaction resulting
58  /// from the order.
60 
61  /// Self Match Prevention ID.
63 
64  /// Date of order expiry.
66 
67  /// Marks a a certain order as a closing auction one.
69 
70  /// Indicate the instruction for SMP. If MatchInstCrossID (28744) is set then the default value for
71  /// SelfMatchPreventionInstruction is 100 (Reject cross on business unit level).
73 
74  /// Indicates if the order is a Lean Order or a Standard (non lean) Order.
76 
77  /// Order type.
79 
80  /// Indicator how price validity check should be performed by the exchange.
82 
83  /// Indicator for checking the maximum order/quote value by the exchange.
85 
86  /// Order origination, MiFID field - to indicate order received from a direct access or sponsored access customer.
88 
89  /// Indicates the name of a member institution to which a give-up is designated.
91 
92  /// Partner identification at the Korea Exchange is required for orders in KRX products.
94 
95  /// Mandatory final KRX beneficiary account required for orders in KRX products.
96  std::string partyIdBeneficiary;
97 
98  /// Account to book trades and keep positions on.
99  std::string account;
100 
101  /// Flex Account information.
103 
104  /// Field is used for Eurex position management purposes and indicates whether the order is submitted to open or
105  /// close a position.
107 
108  /// Country code. Valid characters: 0x01-0x7E.
109  std::string partyIdLocationId;
110 
111  /// Identifies the source of an order, in accordance with the FIA guidelines for a rate Identifier. The field is for
112  /// participant use only. Valid characters: 0x20, 0x22-0x7B, 0x7D, 0x7E.
114 
115  /// This field is used to provide additional regulatory information (according to respective rules and regs,
116  /// circulars and bilateral coordination between participant and Trading Surveillance Office).
117  std::string complianceText;
118 
119  /// First free-format text field for trader-specific or customer-related comments.
120  std::string freeText1;
121 
122  /// Second free-format text field for trader-specific or customer-related comments.
123  std::string freeText2;
124 
125  /// Third free-format text field for trader-specific or customer-related comments.
126  std::string freeText3;
127 
128  /// User defined client order ID.
129  std::string fixClOrdId;
130 
131  /// End client identifier.
133 
134  /// Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos.
136 
137  /// Party ID investment decision maker qualifier.
139 
140  /// Order attribute risk reduction.
142 
143  /// Investment decision within firm (ESMA Field 4 (Section A)) is the code used to identify the person or the
144  /// algorithm within the member or participant of the Trading Venue who is responsible for the investment decision.
146 
147  /// Order attribute liquidity provision.
149 
150  /// This field designates if the trader is acting in the capacity of agent, trading for its own account or acting as
151  /// a market maker.
153 
154  /// This field qualifies an instrument type on Eurex.
156 
157  /// The product identifier uniquely identifies a Eurex product.
159 
160  /// The instrument identifier uniquely identifies an instrument in the core system.
162 
163  /// Total Order Quantity.
165 
166  /// Price.
168 
169  /// Side of the order.
171 
172  /// Instructions for order handling, represented as a bit map.
174 
175  /// Execution and trading restriction parameters supported by Eurex.
177 
178  /// CheckSum correction.
180 
181  /// Leg Ord Group.
182  std::vector<LegOrdGrpElem> legOrdGrp;
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  NewOrderRequest(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 NewOrderRequest&);
197 
198 }}}
Enum
Party ID investment decision maker qualifier.
SInt64 securityId
The instrument identifier uniquely identifies an instrument in the core system.
Enum
Indicates if the order is a Lean Order or a Standard (non lean) Order.
Definition: Enumerations.h:94
ExecInst::Enum execInst
Instructions for order handling, represented as a bit map.
SelfMatchPreventionInstruction::Enum selfMatchPreventionInstruction
std::string freeText3
Third free-format text field for trader-specific or customer-related comments.
TimeInForce::Enum timeInForce
Execution and trading restriction parameters supported by Eurex.
std::string freeText1
First free-format text field for trader-specific or customer-related comments.
std::vector< LegOrdGrpElem > legOrdGrp
Leg Ord Group.
Enum
Side of the order.
std::string partyIdLocationId
Country code. Valid characters: 0x01-0x7E.
unsigned long long UInt64
Definition: Defines.h:46
Enum
Indicator how price validity check should be performed by the exchange.
ProductComplex::Enum productComplex
This field qualifies an instrument type on Eurex.
New Order Request Message.
std::string partyIdPositionAccount
Flex Account information.
std::string account
Account to book trades and keep positions on.
signed int SInt32
Definition: Defines.h:41
Enum
This field qualifies an instrument type on Eurex.
std::string fixClOrdId
User defined client order ID.
std::string freeText2
Second free-format text field for trader-specific or customer-related comments.
Enum
Instructions for order handling, represented as a bit map.
Definition: Enumerations.h:460
OrdType::Enum ordType
Order type.
Message base class.
Definition: Message.h:32
Enum
Order origination, MiFID field - to indicate order received from a direct access or sponsored access ...
ApplSeqIndicator::Enum applSeqIndicator
Indicates if the order is a Lean Order or a Standard (non lean) Order.
OrderAttributeRiskReduction::Enum orderAttributeRiskReduction
Order attribute risk reduction.
std::string partyIdBeneficiary
Mandatory final KRX beneficiary account required for orders in KRX products.
UInt64 clOrdId
Unique participant defined order request identifier.
UInt32 expireDate
Date of order expiry.
CustOrderHandlingInst::Enum custOrderHandlingInst
OrderOrigination::Enum orderOrigination
Order origination, MiFID field - to indicate order received from a direct access or sponsored access ...
unsigned int UInt32
Definition: Defines.h:45
OrderAttributeLiquidityProvision::Enum orderAttributeLiquidityProvision
Order attribute liquidity provision.
SInt32 marketSegmentId
The product identifier uniquely identifies a Eurex product.
signed long long SInt64
Definition: Defines.h:42
std::ostream & operator<<(std::ostream &, ConnectionState::Enum)
Make it printable using C++ I/O streams.
std::string partyIdOrderOriginationFirm
Partner identification at the Korea Exchange is required for orders in KRX products.
Enum
Indicator for checking the maximum order/quote value by the exchange.
UInt32 matchInstCrossId
Self Match Prevention ID.
TradingSessionSubId::Enum tradingSessionSubId
Marks a a certain order as a closing auction one.
ExecutingTraderQualifier::Enum executingTraderQualifier
Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos...
PartyIdInvestmentDecisionMakerQualifier::Enum partyIdInvestmentDecisionMakerQualifier
Party ID investment decision maker qualifier.
SInt64 orderQty
Total Order Quantity.
PriceValidityCheckType::Enum priceValidityCheckType
Indicator how price validity check should be performed by the exchange.
unsigned short UInt16
Definition: Defines.h:44
std::string partyIdTakeUpTradingFirm
Indicates the name of a member institution to which a give-up is designated.
UInt16 checkSumCorrection
CheckSum correction.
Enum
Marks a a certain order as a closing auction one.
Enum
Execution and trading restriction parameters supported by Eurex.
Side::Enum side
Side of the order.
Enum
Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos...
Definition: Enumerations.h:551
std::string partyEndClientIdentification
End client identifier.
ValueCheckTypeValue::Enum valueCheckTypeValue
Indicator for checking the maximum order/quote value by the exchange.