OnixS Eurex ETI Handler C++ library  9.19.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 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"
28 
29 #include <iosfwd>
30 #include <string>
31 #include <vector>
32 
33 namespace OnixS {
34 namespace Eurex {
35 namespace Trading {
36 
37 /// New Order Request Message.
38 class ONIXS_EUREX_ETI_EXPORT NewOrderRequest : public Message
39 {
40 public:
41  /// Initialize default instance.
42  NewOrderRequest ();
43 
44  /// User ID.
46 
47  /// Unique participant defined order request identifier.
49 
50  /// Stop price.
52 
53  /// Client Identifier field (ESMA Field 3 (Section A)) used to identify the client of an order for agent account of 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 member or participant of the trading venue who is responsible for the execution of the transaction resulting from the order.
58 
59  /// Self Match Prevention ID.
61 
62  /// Date of order expiry.
64 
65  /// Marks a a certain order as a closing auction one.
67 
68  /// Indicate the instruction for SMP. If MatchInstCrossID (28744) is set then the default value for SelfMatchPreventionInstruction is 100 (Reject cross on business unit level).
70 
71  /// Indicates if the order is a Lean Order or a Standard (non lean) Order.
73 
74  /// Order type.
76 
77  /// Indicator how price validity check should be performed by the exchange.
79 
80  /// Indicator for checking the maximum order/quote value by the exchange.
82 
83  /// Order origination, MiFID field - to indicate order received from a direct access or sponsored access customer.
85 
86  /// Indicates the name of a member institution to which a give-up is designated.
88 
89  /// Partner identification at the Korea Exchange is required for orders in KRX products.
91 
92  /// Mandatory final KRX beneficiary account required for orders in KRX products.
93  std::string partyIdBeneficiary;
94 
95  /// Account to book trades and keep positions on.
96  std::string account;
97 
98  /// Flex Account information.
100 
101  /// Field is used for Eurex position management purposes and indicates whether the order is submitted to open or close a position.
103 
104  /// Country code. Valid characters: 0x01-0x7E.
105  std::string partyIdLocationId;
106 
107  /// Identifies the source of an order, in accordance with the FIA guidelines for a rate Identifier. The field is for participant use only. Valid characters: 0x20, 0x22-0x7B, 0x7D, 0x7E.
109 
110  /// This field is used to provide additional regulatory information (according to respective rules and regs, circulars and bilateral coordination between participant and Trading Surveillance Office).
111  std::string complianceText;
112 
113  /// First free-format text field for trader-specific or customer-related comments.
114  std::string freeText1;
115 
116  /// Second free-format text field for trader-specific or customer-related comments.
117  std::string freeText2;
118 
119  /// Third free-format text field for trader-specific or customer-related comments.
120  std::string freeText3;
121 
122  /// User defined client order ID.
123  std::string fixClOrdId;
124 
125  /// End client identifier.
127 
128  /// Qualifier for field ExecutingTrader. It is required to distinguish between natural persons and Algos.
130 
131  /// Party ID investment decision maker qualifier.
133 
134  /// Order attribute risk reduction.
136 
137  /// Investment decision within firm (ESMA Field 4 (Section A)) is the code used to identify the person or the algorithm within the member or participant of the Trading Venue who is responsible for the investment decision.
139 
140  /// Order attribute liquidity provision.
142 
143  /// This field designates if the trader is acting in the capacity of agent, trading for its own account or acting as a market maker.
145 
146  /// This field qualifies an instrument type on Eurex.
148 
149  /// The product identifier uniquely identifies a Eurex product.
151 
152  /// The instrument identifier uniquely identifies an instrument in the core system.
154 
155  /// Total Order Quantity.
157 
158  /// Price.
160 
161  /// Side of the order.
163 
164  /// Instructions for order handling, represented as a bit map.
166 
167  /// Execution and trading restriction parameters supported by Eurex.
169 
170  /// CheckSum correction.
172 
173  /// Leg Ord Group.
174  std::vector<LegOrdGrpElem> legOrdGrp;
175 
176  /// Returns template ID.
177  TemplateId::Enum templateId () const;
178 
179  /// Returns string representation.
180  std::string toString () const;
181 
182 private:
183  friend class Serializer;
184  NewOrderRequest (const void* data, size_t dataSize, MessageInfo& msgInfo);
185  void nativeSerializeTo (void* nativeMessage);
186 };
187 
188 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const NewOrderRequest&);
189 
190 }
191 }
192 }
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:86
UInt64 partyIdInvestmentDecisionMaker
Investment decision within firm (ESMA Field 4 (Section A)) is the code used to identify the person or...
ExecInst::Enum execInst
Instructions for order handling, represented as a bit map.
SelfMatchPreventionInstruction::Enum selfMatchPreventionInstruction
Indicate the instruction for SMP. If MatchInstCrossID (28744) is set then the default value for SelfM...
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.
TradingCapacity::Enum tradingCapacity
This field designates if the trader is acting in the capacity of agent, trading for its own account o...
std::string freeText1
First free-format text field for trader-specific or customer-related comments.
UInt64 partyIdClientId
Client Identifier field (ESMA Field 3 (Section A)) used to identify the client of an order for agent ...
std::vector< LegOrdGrpElem > legOrdGrp
Leg Ord Group.
Enum
Indicate the instruction for SMP. If MatchInstCrossID (28744) is set then the default value for SelfM...
Enum
Side of the order.
std::string partyIdLocationId
Country code. Valid characters: 0x01-0x7E.
unsigned long long UInt64
Definition: Defines.h:47
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.
UInt64 executingTrader
Executing Trader data Field (ESMA Field 5 (Section A)) used to identify the person or algorithm withi...
Enum
Field is used for Eurex position management purposes and indicates whether the order is submitted to ...
signed int SInt32
Definition: Defines.h:42
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:391
OrdType::Enum ordType
Order type.
Message base class.
Definition: Message.h:33
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.
Enum
Identifies the source of an order, in accordance with the FIA guidelines for a rate Identifier...
Definition: Enumerations.h:271
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
Identifies the source of an order, in accordance with the FIA guidelines for a rate Identifier...
OrderOrigination::Enum orderOrigination
Order origination, MiFID field - to indicate order received from a direct access or sponsored access ...
PositionEffect::Enum positionEffect
Field is used for Eurex position management purposes and indicates whether the order is submitted to ...
unsigned int UInt32
Definition: Defines.h:46
OrderAttributeLiquidityProvision::Enum orderAttributeLiquidityProvision
Order attribute liquidity provision.
SInt32 marketSegmentId
The product identifier uniquely identifies a Eurex product.
signed long long SInt64
Definition: Defines.h:43
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.
std::ostream & operator<<(std::ostream &, const ConnectionStateChange &)
Make it printable to formatted C++ I/O streams.
SInt64 orderQty
Total Order Quantity.
Enum
This field designates if the trader is acting in the capacity of agent, trading for its own account o...
PriceValidityCheckType::Enum priceValidityCheckType
Indicator how price validity check should be performed by the exchange.
unsigned short UInt16
Definition: Defines.h:45
std::string partyIdTakeUpTradingFirm
Indicates the name of a member institution to which a give-up is designated.
std::string complianceText
This field is used to provide additional regulatory information (according to respective rules and re...
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:473
std::string partyEndClientIdentification
End client identifier.
ValueCheckTypeValue::Enum valueCheckTypeValue
Indicator for checking the maximum order/quote value by the exchange.