OnixS Eurex ETI Handler C++ library  9.22.0
API documentation
BasketRollRequest.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"
30 
31 #include <iosfwd>
32 #include <string>
33 #include <vector>
34 
35 namespace OnixS { namespace Eurex { namespace Trading {
36 
37 /// Old Basket Data Group.
38 class ONIXS_EUREX_ETI_EXPORT OldBasketDataGrp
39 {
40 public:
41  /// Initialize default instance.
43 
44  /// System defined Basket ID.
46 
47  /// System generated transaction ID for a Basket transaction.
49 
50  /// User defined transaction ID. Part of the TES response and TES broadcast.
51  std::string tradeReportId;
52 
53  /// Month year code for expiry YYYYMM.
55 
56  /// Basket operation.
58 
59  /// User defined text message field.
60  std::string basketTradeReportText;
61 
62  /// Returns string representation.
63  std::string toString() const;
64 
65 private:
66  friend class Serializer;
67  OldBasketDataGrp(const void* data);
68 };
69 
70 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const OldBasketDataGrp&);
71 
72 /// New Basket Data Group.
73 class ONIXS_EUREX_ETI_EXPORT NewBasketDataGrp
74 {
75 public:
76  /// Initialize default instance.
78 
79  /// User defined transaction ID. Part of the TES response and TES broadcast.
80  std::string tradeReportId;
81 
82  /// Month year code for expiry YYYYMM.
84 
85  /// Basket operation.
87 
88  /// User defined text message field.
89  std::string basketTradeReportText;
90 
91  /// Returns string representation.
92  std::string toString() const;
93 
94 private:
95  friend class Serializer;
96  NewBasketDataGrp(const void* data);
97 };
98 
99 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const NewBasketDataGrp&);
100 
101 /// Basket Roll Request Message.
102 class ONIXS_EUREX_ETI_EXPORT BasketRollRequest : public Message
103 {
104 public:
105  /// Initialize default instance.
107 
108  /// User ID.
110 
111  /// The product identifier uniquely identifies a Eurex product.
113 
114  /// ID of the Basket profile.
116 
117  /// Indicates if a trade should be reported via the market reporting service.
119 
120  /// Identifies the type of trade notification.
122 
123  /// User defined transaction ID. Part of the TES response and TES broadcast.
124  std::string tradeReportId;
125 
126  /// Basket Root Party Group.
127  std::vector<BasketRootPartyGrpElem> basketRootPartyGrp;
128 
129  /// Old Basket Data Group.
131 
132  /// New Basket Data Group.
134 
135  /// Old Basket Instrument Match Side Group.
136  std::vector<OldBasketInstrmtMatchSideGrpElem> oldBasketInstrmtMatchSideGrp;
137 
138  /// New Basket Instrument Match Side Group.
139  std::vector<NewBasketInstrmtMatchSideGrpElem> newBasketInstrmtMatchSideGrp;
140 
141  /// Old Basket Side Alloc Group.
142  std::vector<OldBasketSideAllocGrpElem> oldBasketSideAllocGrp;
143 
144  /// New Basket Side Alloc Group.
145  std::vector<NewBasketSideAllocGrpElem> newBasketSideAllocGrp;
146 
147  /// Returns template ID.
148  TemplateId::Enum templateId() const;
149 
150  /// Returns string representation.
151  std::string toString() const;
152 
153 private:
154  friend class Serializer;
155  BasketRollRequest(const void* data, size_t dataSize, MessageInfo& msgInfo);
156  void nativeSerializeTo(void* nativeMessage);
157 };
158 
159 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const BasketRollRequest&);
160 
161 }}}
UInt32 basketExecId
System generated transaction ID for a Basket transaction.
std::vector< OldBasketInstrmtMatchSideGrpElem > oldBasketInstrmtMatchSideGrp
Old Basket Instrument Match Side Group.
UInt32 maturityMonthYear
Month year code for expiry YYYYMM.
std::string tradeReportId
User defined transaction ID. Part of the TES response and TES broadcast.
TrdType::Enum trdType
Indicates if a trade should be reported via the market reporting service.
unsigned long long UInt64
Definition: Defines.h:46
Enum
Indicates if a trade should be reported via the market reporting service.
std::vector< BasketRootPartyGrpElem > basketRootPartyGrp
Basket Root Party Group.
BasketTradeReportType::Enum basketTradeReportType
Basket operation.
signed int SInt32
Definition: Defines.h:41
TradeReportType::Enum tradeReportType
Identifies the type of trade notification.
OldBasketDataGrp oldBasketDataGrp
Old Basket Data Group.
Message base class.
Definition: Message.h:32
UInt64 basketTrdMatchId
System defined Basket ID.
std::vector< OldBasketSideAllocGrpElem > oldBasketSideAllocGrp
Old Basket Side Alloc Group.
unsigned int UInt32
Definition: Defines.h:45
std::ostream & operator<<(std::ostream &, ConnectionState::Enum)
Make it printable using C++ I/O streams.
UInt32 maturityMonthYear
Month year code for expiry YYYYMM.
std::vector< NewBasketSideAllocGrpElem > newBasketSideAllocGrp
New Basket Side Alloc Group.
BasketTradeReportType::Enum basketTradeReportType
Basket operation.
std::string tradeReportId
User defined transaction ID. Part of the TES response and TES broadcast.
std::string tradeReportId
User defined transaction ID. Part of the TES response and TES broadcast.
std::string basketTradeReportText
User defined text message field.
std::vector< NewBasketInstrmtMatchSideGrpElem > newBasketInstrmtMatchSideGrp
New Basket Instrument Match Side Group.
UInt32 basketProfileId
ID of the Basket profile.
Enum
Identifies the type of trade notification.
SInt32 marketSegmentId
The product identifier uniquely identifies a Eurex product.
std::string basketTradeReportText
User defined text message field.
NewBasketDataGrp newBasketDataGrp
New Basket Data Group.