OnixS Eurex ETI Handler C++ library  9.22.0
API documentation
AddComplexInstrumentRequest.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 /// Instrument Leg Group Element.
36 class ONIXS_EUREX_ETI_EXPORT InstrmtLegGrpElem
37 {
38 public:
39  /// Initialize default instance.
41 
42  /// Instrument identifiier of the leg security.
44 
45  /// Strategy leg underlying price (only applicable for futures legs).
47 
48  /// Product identifiier of the leg security.
50 
51  /// The ratio of quantity for this individual leg relative to the entire multileg security.
53 
54  /// The side of the individual leg of a strategy.
56 
57  /// Indicates type of leg.
59 
60  /// Returns string representation.
61  std::string toString() const;
62 
63 private:
64  friend class Serializer;
65  InstrmtLegGrpElem(const void* data);
66 };
67 
68 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const InstrmtLegGrpElem&);
69 
70 /// Add Complex Instrument Request Message.
71 class ONIXS_EUREX_ETI_EXPORT AddComplexInstrumentRequest : public Message
72 {
73 public:
74  /// Initialize default instance.
76 
77  /// User ID.
79 
80  /// The product identifier uniquely identifies a Eurex product.
82 
83  /// This field indicates the type of a Eurex futures spread, Eurex option combination or Eurex Strategy.
85 
86  /// Quantity Scaling Factor for Scaled Instruments.
88 
89  /// This field qualifies an instrument type on Eurex.
91 
92  /// Specifies if a strategy is temporarily (user-defined) or permanently (predefined) available.
94 
95  /// This field is used to provide additional regulatory information (according to respective rules and regs,
96  /// circulars and bilateral coordination between participant and Trading Surveillance Office).
97  std::string complianceText;
98 
99  /// Instrument Leg Group.
100  std::vector<InstrmtLegGrpElem> instrmtLegGrp;
101 
102  /// Returns template ID.
103  TemplateId::Enum templateId() const;
104 
105  /// Returns string representation.
106  std::string toString() const;
107 
108 private:
109  friend class Serializer;
110  AddComplexInstrumentRequest(const void* data, size_t dataSize, MessageInfo& msgInfo);
111  void nativeSerializeTo(void* nativeMessage);
112 };
113 
114 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const AddComplexInstrumentRequest&);
115 
116 }}}
std::vector< InstrmtLegGrpElem > instrmtLegGrp
Instrument Leg Group.
UInt16 quantityScalingFactor
Quantity Scaling Factor for Scaled Instruments.
ProductComplex::Enum productComplex
This field qualifies an instrument type on Eurex.
Enum
The side of the individual leg of a strategy.
Definition: Enumerations.h:925
SInt64 legSecurityId
Instrument identifiier of the leg security.
SInt32 securitySubType
This field indicates the type of a Eurex futures spread, Eurex option combination or Eurex Strategy...
signed int SInt32
Definition: Defines.h:41
Enum
This field qualifies an instrument type on Eurex.
SInt32 marketSegmentId
The product identifier uniquely identifies a Eurex product.
LegSide::Enum legSide
The side of the individual leg of a strategy.
MultilegModel::Enum multilegModel
Specifies if a strategy is temporarily (user-defined) or permanently (predefined) available...
Message base class.
Definition: Message.h:32
UInt32 legRatioQty
The ratio of quantity for this individual leg relative to the entire multileg security.
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.
SInt64 legPrice
Strategy leg underlying price (only applicable for futures legs).
LegSecurityType::Enum legSecurityType
Indicates type of leg.
Enum
Specifies if a strategy is temporarily (user-defined) or permanently (predefined) available...
unsigned short UInt16
Definition: Defines.h:44
SInt32 legSymbol
Product identifiier of the leg security.