OnixS ICE iMpact Multicast Price Feed Handler C++ library  8.18.0
API documentation
NewOptionsMarketDefinition.h
Go to the documentation of this file.
1 /**
2  * \file
3  * \brief Declare `OnixS::ICE::iMpact::MarketData::NewOptionsMarketDefinition` 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 Options Market Definition Message.
36 struct ONIXS_ICEMDH_EXPORT NewOptionsMarketDefinition
37 {
38  /// Message type constant
39  enum
40  {
41  messageType = 'l'
42  };
43 
44  /// Unique identifier of the option market.
46 
47  /// Underlying Futures/OTC market id. This market id links to the product
48  /// definition of the futures market.
50 
51  /// See Naming Convention on Appendix D.
52  std::string contractSymbol;
53 
54  /// See Appendix A on trading status codes.
56 
57  /// Denominator for the order price fields in this market.
59 
60  /// Minimum increment quantity for this market.
62 
63  /// The lot size is minimum size of contracts in lots. It is multiplier to
64  /// determine the total lots,
65  int lotSize;
66 
67  /// Description of the market.
68  std::string marketDesc;
69 
70  /// Option type.
72 
73  /// Strike Price of the option. Used in conjunction with the
74  /// `NumDecimalsStrikePrice`. This is often different from the premium
75  /// price decimals.
77 
78  /// Denominator for the deal price fields in the market. For most markets,
79  /// this is the same as `OrderPriceDenominator`.
81 
82  /// Minimum quantity for this market.
83  int minQty;
84 
85  /// The currency that the market is traded on.
86  std::string currency;
87 
88  /// Denominator for the strike price field.
90 
91  /// Minimum premium price for the option.
93 
94  /// Maximum premium price for the option.
96 
97  /// Price increment for the option market.
99 
100  /// 4 digit year.
102 
103  /// Month range 1-12.
105 
106  /// Day of the month.
108 
109  /// Options style.
111 
112  /// Options expiration type.
114 
115  /// The underlying futures market ID for a serial option. The serial
116  /// option market may or may not be a valid futures month and option will
117  /// expire/exercise into a position held in this underlying market. It
118  /// will be set to `-1` when not applicable.
120 
121  /// Denominator for the settlement price fields in the market. For most
122  /// markets, this is the same as `DealPriceDenominator`.
124 
125  /// Denominator for UnitQuantity. This field will be `'0'` for most of the
126  /// markets.
128 
129  /// A market's tick value is the cash value of one tick (one minimum price
130  /// movement). OrderPriceDenominator should be applied to get the real
131  /// value.
132  long long tickValue;
133 
134  /// Indicates if flexible strikes can be created for the option market.
136 
137  /// Settlement type.
139 
140  /// Indicates if Market is only tradable via ICE Block Trade. This also
141  /// means the screen trading is not allowed for the market.
143 
144  /// Indicates if GTC is allowed in the market.
145  bool gtAllowed;
146 
147  /// Indicates if Cross order is supported in the market.
149 
150  /// Indicates if Guarantee Cross is supported in the market.
152 
153  /// Unit Of Measure.
154  std::string unitOfMeasure;
155 
156  /// Indicates MIFID-II market.
158 
159  /// Screen last trade year, 4 digits.
161 
162  /// Screen last trade month, range 1-12.
164 
165  /// Screen last trade day of the month.
167 
168  /// Indicates if the contract is tradable.
170 
171  /// See Appendix C for the list of market types and IDs.
173 
174  /// Number of cycle (days, hours, MWh, etc.) for a contract.
176 
177  /// Default constructor.
179 
180  /// Initialize from raw message data.
181  NewOptionsMarketDefinition(const char* data, std::size_t dataSize);
182 
183  /// Deserialize from raw data.
184  void deserialize(const char* data, std::size_t dataSize);
185 
186  /// Reset all fields to default values.
187  void reset();
188 
189  /// Returns string representation.
190  std::string toString() const;
191 };
192 
193 /// Make it printable using C++ I/O streams.
194 ONIXS_ICEMDH_EXPORT std::ostream& operator<<(std::ostream&, const NewOptionsMarketDefinition&);
195 
196 }}}} // namespace OnixS::ICE::iMpact::MarketData
bool flexAllowed
Indicates if flexible strikes can be created for the option market.
TradingStatus::Enum tradingStatus
See Appendix A on trading status codes.
Price minOptionsPrice
Minimum premium price for the option.
bool gtAllowed
Indicates if GTC is allowed in the market.
long long Price
Alias for order identifiers type.
Definition: Types.h:54
std::string currency
The currency that the market is traded on.
bool guaranteedCrossSupported
Indicates if Guarantee Cross is supported in the market.
int MarketId
Alias for market identifiers type.
Definition: Types.h:39
int numOfCycles
Number of cycle (days, hours, MWh, etc.) for a contract.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
char numDecimalsStrikePrice
Denominator for the strike price field.
MarketId marketId
Unique identifier of the option market.
bool crossOrderSupported
Indicates if Cross order is supported in the market.
OptionsExpirationType::Enum optionsExpirationType
Options expiration type.
char orderPriceDenominator
Denominator for the order price fields in this market.
This class represents the New Options Market Definition Message.
short marketTypeId
See Appendix C for the list of market types and IDs.
Price maxOptionsPrice
Maximum premium price for the option.
std::string contractSymbol
See Naming Convention on Appendix D.
short screenLastTradeMonth
Screen last trade month, range 1-12.
int incrementPremiumPrice
Price increment for the option market.
int incrementQty
Minimum increment quantity for this market.
Enum
Option settlement type constants.
Definition: Enumerations.h:189