OnixS Eurex ETI Handler C++ library  9.19.0
API documentation
PreTradeRiskLimitResponse.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"
27 
28 #include <iosfwd>
29 #include <string>
30 #include <vector>
31 
32 namespace OnixS {
33 namespace Eurex {
34 namespace Trading {
35 
36 /// Risk Limits Rpt Group Element.
37 class ONIXS_EUREX_ETI_EXPORT RiskLimitsRptGrpElem
38 {
39 public:
40  /// Initialize default instance.
42 
43  /// Risk limit quantity.
45 
46  /// Open quantity for orders or TES trades.
48 
49  /// Net position quantity for a requested pre-trade risk limit scope.
51 
52  /// Weighting factor used in the Extended PTRL consumption calculation.
54 
55  /// Quote Weighting factor for open positions in PTRL calculation.
57 
58  /// Business date when change is active.
60 
61  /// Type of risk limits.
63 
64  /// Requesting party role for a pre-trade risk limit.
66 
67  /// Indicator for a pre-trade risk limit violation.
69 
70  /// User Pre-Trade risk group.
71  std::string riskLimitGroup;
72 
73  /// Returns string representation.
74  std::string toString () const;
75 
76 private:
77  friend class Serializer;
78  RiskLimitsRptGrpElem (const void* data);
79 };
80 
81 ONIXS_EUREX_ETI_EXPORT std::ostream& operator << (std::ostream&, const RiskLimitsRptGrpElem&);
82 
83 /// Pre Trade Risk Limit Response Message.
84 class ONIXS_EUREX_ETI_EXPORT PreTradeRiskLimitResponse : public Message
85 {
86 public:
87  /// Initialize default instance.
89 
90  /// Matching engine in timestamp.
92 
93  /// Matching engine out timestamp.
95 
96  /// Indicates whether this message is the last fragment (part) of a sequence of messages belonging to one dedicated transaction.
98 
99  /// ID of a PartyRiskLimitReport.
101 
102  /// The product identifier uniquely identifies a Eurex product.
104 
105  /// Party detail status.
107 
108  /// Scope for Pre-Trade risk limits.
110 
111  /// Detail BusinessUnit name.
113 
114  /// Risk Limits Rpt Group.
115  std::vector<RiskLimitsRptGrpElem> riskLimitsRptGrp;
116 
117  /// Returns template ID.
118  TemplateId::Enum templateId () const;
119 
120  /// Returns string representation.
121  std::string toString () const;
122 
123 private:
124  friend class Serializer;
125  PreTradeRiskLimitResponse (const void* data, size_t dataSize, MessageInfo& msgInfo);
126  void nativeSerializeTo (void* nativeMessage);
127 };
128 
129 ONIXS_EUREX_ETI_EXPORT std::ostream& operator<<(std::ostream&, const PreTradeRiskLimitResponse&);
130 
131 }
132 }
133 }
Enum
Indicates whether this message is the last fragment (part) of a sequence of messages belonging to one...
Definition: Enumerations.h:661
PartyDetailStatus::Enum partyDetailStatus
Party detail status.
SInt64 quoteWeightingCoefficient
Quote Weighting factor for open positions in PTRL calculation.
SInt64 nettingCoefficient
Weighting factor used in the Extended PTRL consumption calculation.
UInt64 riskLimitReportId
ID of a PartyRiskLimitReport.
unsigned long long UInt64
Definition: Defines.h:47
RiskLimitViolationIndicator::Enum riskLimitViolationIndicator
Indicator for a pre-trade risk limit violation.
std::vector< RiskLimitsRptGrpElem > riskLimitsRptGrp
Risk Limits Rpt Group.
Enum
Scope for Pre-Trade risk limits.
UInt64 trdRegTSTimeIn
Matching engine in timestamp.
Enum
Indicator for a pre-trade risk limit violation.
signed int SInt32
Definition: Defines.h:42
Enum
Requesting party role for a pre-trade risk limit.
SInt32 marketSegmentId
The product identifier uniquely identifies a Eurex product.
RiskLimitPlatform::Enum riskLimitPlatform
Scope for Pre-Trade risk limits.
std::string riskLimitGroup
User Pre-Trade risk group.
Message base class.
Definition: Message.h:33
RiskLimitRequestingPartyRole::Enum riskLimitRequestingPartyRole
Requesting party role for a pre-trade risk limit.
unsigned int UInt32
Definition: Defines.h:46
signed long long SInt64
Definition: Defines.h:43
UInt64 trdRegTSTimeOut
Matching engine out timestamp.
std::string partyDetailExecutingUnit
Detail BusinessUnit name.
SInt64 riskLimitNetPositionQty
Net position quantity for a requested pre-trade risk limit scope.
std::ostream & operator<<(std::ostream &, const ConnectionStateChange &)
Make it printable to formatted C++ I/O streams.
RiskLimitType::Enum riskLimitType
Type of risk limits.
SInt64 riskLimitOpenQty
Open quantity for orders or TES trades.
LastFragment::Enum lastFragment
Indicates whether this message is the last fragment (part) of a sequence of messages belonging to one...
UInt32 activationDate
Business date when change is active.