OnixS ICE iMpact Multicast Price Feed Handler C++ library  8.18.0
API documentation
NewExpiry.h
Go to the documentation of this file.
1 /**
2  * \file
3  * \brief Declare `OnixS::ICE::iMpact::MarketData::NewExpiry` message structure
4  */
5 /*
6  * Copyright (c) Onix Solutions Limited. All rights reserved.
7  *
8  * This software owned by Onix Solutions Limited and is protected by copyright law
9  * and international copyright treaties.
10  *
11  * Access to and use of the software is governed by the terms of the applicable ONIXS Software
12  * Services Agreement (the Agreement) and Customer end user license agreements granting
13  * a non-assignable, non-transferable and non-exclusive license to use the software
14  * for it's own data processing purposes under the terms defined in the Agreement.
15  *
16  * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
17  * of this source code or associated reference material to any other location for further reproduction
18  * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
19  *
20  * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
21  * the terms of the Agreement is a violation of copyright law.
22  */
23 
24 #pragma once
25 
26 #include "../Enumerations.h"
27 #include "../Export.h"
28 #include "../Types.h"
29 
30 #include <iosfwd>
31 #include <string>
32 
33 namespace OnixS { namespace ICE { namespace iMpact { namespace MarketData {
34 
35 /// This class represents the New Expiry Message.
36 struct ONIXS_ICEMDH_EXPORT NewExpiry
37 {
38  /// Message type constant
39  enum
40  {
41  messageType = 'R'
42  };
43 
44  /// Unique identifier of a market.
46 
47  /// Market type ID.
48  short marketTypeId;
49 
50  /// Denominator for the order price fields in this market.
52 
53  /// Minimum increment premium price for this market.
55 
56  /// Minimum increment quantity for this market.
58 
59  /// The lot size is minimum size of contracts in lots. It is multiplier to
60  /// determine the total lots,
61  int lotSize;
62 
63  /// Description of the market.
64  std::string marketDesc;
65 
66  /// 4 digit year.
67  short maturityYear;
68 
69  /// Month range 1-12.
71 
72  /// Day of the month.
73  short maturityDay;
74 
75  /// Denominator for the deal price fields in the market. For most markets,
76  /// this is the same as `OrderPriceDenominator`. However, it could be
77  /// different for some crack or spread markets.
79 
80  /// Minimum quantity for this market.
81  int minQty;
82 
83  /// The quantity in unit of measurement per lot. For example, it is 1000
84  /// barrels per lot for Brent.
86 
87  /// The currency that the market is traded on.
88  std::string currency;
89 
90  /// Clearing limit admin related.
91  std::string clearedAlias;
92 
93  /// Minimum Price.
95 
96  /// Maximum Price.
98 
99  /// ID of the product that the contract/market is under.
101 
102  /// Name of the product that the contract/market is under.
103  std::string productName;
104 
105  /// ID of the hub for the contract/market.
106  int hubId;
107 
108  /// Alias of the hub for the contract/market.
109  std::string hubAlias;
110 
111  /// ID of the strip for the contract/market.
112  int stripId;
113 
114  /// Name of the strip for the contract/market.
115  std::string stripName;
116 
117  /// Denominator for the settlement price fields in the market. For most
118  /// markets, this is the same as `DealPriceDenominator`.
120 
121  /// Market Identifier Code for the market.
122  std::string micCode;
123 
124  /// Denominator for UnitQuantity. This field will be `'0'` for most of the
125  /// markets.
127 
128  /// Denominator for `OffExchangeIncrementQty`.
130 
131  /// Off exchange increment qty. `OffExchangeIncrementQtyDenominator`
132  /// should be applied to this field.
134 
135  /// Off exchange increment price. `OrderPriceDenominator` should be
136  /// applied to this field.
138 
139  /// Off exchange options increment price. `NumDecimalsOptionsPrice` should
140  /// be applied to this field.
142 
143  /// See Naming Convention on Appendix D.
144  std::string contractSymbol;
145 
146  /// The ISIN of the security this market is associated with. This is
147  /// currently only populated for Liffe Equity markets.
148  std::string underlyingISIN;
149 
150  /// Denominator for the price field.
152 
153  /// Market ID for the corresponding hedge market. It will be set to `-1`
154  /// when not applicable.
156 
157  /// Settlement type.
159 
160  /// Indicates if GTC is allowed in the market.
161  bool gtAllowed;
162 
163  /// Indicates if Cross order is supported in the market.
165 
166  /// Unit Of Measure.
167  std::string unitOfMeasure;
168 
169  /// Indicates MIFID-II market.
171 
172  /// Screen last trade year, 4 digits.
174 
175  /// Screen last trade month, range 1-12.
177 
178  /// Screen last trade day of the month.
180 
181  /// Number of cycle (days, hours, MWh, etc.) for a contract.
183 
184  /// Default constructor.
185  NewExpiry();
186 
187  /// Initialize from raw message data.
188  NewExpiry(const char* data, std::size_t dataSize);
189 
190  /// Deserialize from raw data.
191  void deserialize(const char* data, std::size_t dataSize);
192 
193  /// Reset all fields to default values.
194  void reset();
195 
196  /// Returns string representation.
197  std::string toString() const;
198 };
199 
200 /// Make it printable using C++ I/O streams.
201 ONIXS_ICEMDH_EXPORT std::ostream& operator<<(std::ostream&, const NewExpiry&);
202 
203 }}}} // namespace OnixS::ICE::iMpact::MarketData
std::string contractSymbol
See Naming Convention on Appendix D.
Definition: NewExpiry.h:144
short screenLastTradeDay
Screen last trade day of the month.
Definition: NewExpiry.h:179
int productId
ID of the product that the contract/market is under.
Definition: NewExpiry.h:100
char orderPriceDenominator
Denominator for the order price fields in this market.
Definition: NewExpiry.h:51
long long Price
Alias for order identifiers type.
Definition: Types.h:54
std::string micCode
Market Identifier Code for the market.
Definition: NewExpiry.h:122
short maturityDay
Day of the month.
Definition: NewExpiry.h:73
int numOfCycles
Number of cycle (days, hours, MWh, etc.) for a contract.
Definition: NewExpiry.h:182
short screenLastTradeYear
Screen last trade year, 4 digits.
Definition: NewExpiry.h:173
This class represents the New Expiry Message.
Definition: NewExpiry.h:36
int MarketId
Alias for market identifiers type.
Definition: Types.h:39
std::string hubAlias
Alias of the hub for the contract/market.
Definition: NewExpiry.h:109
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
short maturityMonth
Month range 1-12.
Definition: NewExpiry.h:70
std::string currency
The currency that the market is traded on.
Definition: NewExpiry.h:88
int incrementQty
Minimum increment quantity for this market.
Definition: NewExpiry.h:57
bool miFIDRegulatedMarket
Indicates MIFID-II market.
Definition: NewExpiry.h:170
std::string marketDesc
Description of the market.
Definition: NewExpiry.h:64
int minQty
Minimum quantity for this market.
Definition: NewExpiry.h:81
std::string clearedAlias
Clearing limit admin related.
Definition: NewExpiry.h:91
int incrementPrice
Minimum increment premium price for this market.
Definition: NewExpiry.h:54
std::string unitOfMeasure
Unit Of Measure.
Definition: NewExpiry.h:167
bool crossOrderSupported
Indicates if Cross order is supported in the market.
Definition: NewExpiry.h:164
MarketId marketId
Unique identifier of a market.
Definition: NewExpiry.h:45
char numDecimalsOptionsPrice
Denominator for the price field.
Definition: NewExpiry.h:151
short screenLastTradeMonth
Screen last trade month, range 1-12.
Definition: NewExpiry.h:176
std::string stripName
Name of the strip for the contract/market.
Definition: NewExpiry.h:115
bool gtAllowed
Indicates if GTC is allowed in the market.
Definition: NewExpiry.h:161
int stripId
ID of the strip for the contract/market.
Definition: NewExpiry.h:112
int hubId
ID of the hub for the contract/market.
Definition: NewExpiry.h:106
short marketTypeId
Market type ID.
Definition: NewExpiry.h:48
SettlementType::Enum settlementType
Settlement type.
Definition: NewExpiry.h:158
char offExchangeIncrementQtyDenominator
Denominator for OffExchangeIncrementQty.
Definition: NewExpiry.h:129
std::string productName
Name of the product that the contract/market is under.
Definition: NewExpiry.h:103