OnixS C++ Tradeweb Approved Publication Arrangement (APA) Handler  1.2.2.18
API documentation
Enumerations.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 
24 
25 #include <string>
26 
27 namespace OnixS
28 {
29  namespace Tradeweb
30  {
31  namespace MarketData
32  {
33  namespace Apa
34  {
35  /// AssetClass (MiFIR Identifier)
36  struct AssetClass
37  {
38  /// Integral type used as basement for constants.
39  typedef UInt8 Base;
40 
41  enum Enum
42  {
44  Bonds = 2,
53  CFDs = 11,
56  };
57  };
58 
59  /// Appends string presentation of object.
60  ONIXS_TRADEWEB_APA_API void toStr(std::string&, AssetClass::Enum);
61 
62  /// Returns string presentation of object.
63  inline std::string toStr(AssetClass::Enum layout)
64  {
65  std::string str;
66 
67  toStr(str, layout);
68 
69  return str;
70  }
71 
72  /// SubAssetClass
74  {
75  /// Integral type used as basement for constants.
76  typedef UInt16 Base;
77 
78  enum Enum
79  {
80  SovereignBond = 200,
81  OtherPublicBond = 201,
82  ConvertibleBond = 202,
83  CoveredBond = 203,
84  CorporateBond = 204,
85  OtherBond = 205,
86  ETCs = 206,
87  ETNs = 207,
88  InterestRateSecuritiesDerivatives = 400,
89 
90  EquitySecuritisedDerivatives = 401,
91  CommoditySecuritisedDerivatives = 402,
92  CreditSecuritisedDerivatives = 403,
93  CurrencySecuritisedDerivatives = 404,
94  EmissionAllowancesSecuritisedDerivatives = 405,
95  BondFuturesForwards = 500,
96  BondOptions = 501,
97  IrFuturesAndFRA = 502,
98  IrOptions = 503,
99  Swaptions = 504,
100  FixedToFloatMultiCurrencySwapsAndFuturesForwardsOnSuchSwaps = 505,
101  FloatToFloatMultiCurrencySwapsAndFuturesForwardsOnSuchSwaps = 506,
102  FixedToFixedMultiCurrencySwapsAndFuturesForwardsOnSuchSwaps = 507,
103  OisMultiCurrencySwapsAndFuturesForwardsOnSuchSwaps = 508,
104  InflationMultiCurrencySwapsAndFuturesForwardsOnSuchSwaps = 509,
105  FixedToFloatSingleCurrencySwapsAndFuturesForwardsOnSuchSwaps = 510,
106  FloatToFloatSingleCurrencySwapsAndFuturesForwardsOnSuchSwaps = 511,
107  FixedToFixedSingleCurrencySwapsAndFuturesForwardsOnSuchSwaps = 512,
108  OisSingleCurrencySwapsAndFuturesForwardsOnSuchSwaps = 513,
109  InflationSingleCurrencySwapsAndFuturesForwardsOnSuchSwaps = 514,
110  OtherInterestRateDerivatives = 515,
111  StockIndexOptions = 600,
112  StockIndexFuturesForwards = 601,
113  StockOptions = 602,
114  StockFuturesForwards = 603,
115  StockDividendOptions = 604,
116  StockDividendFuturesForwards = 605,
117  DividendIndexOptions = 606,
118  DividendIndexFuturesForwards = 607,
119  VolatilityIndexOptions = 608,
120  VolatilityIndexFuturesForwards = 609,
121  EtfOptions = 610,
122  EtfFturesForwards = 611,
123  EquitySwaps = 612,
124  EquityPortfolioSwaps = 613,
125  OtherEquityDerivatives = 614,
126  AgriculturalCommodityFuturesForwards = 700,
127  AgriculturalCommodityOptions = 701,
128  AgriculturalCommoditySwaps = 702,
129  EnergyCommodityFuturesForwards = 703,
130  EnergyCommodityOptions = 704,
131  EnergyCommoditySwaps = 705,
132  MetalsCommodityFuturesForwards = 706,
133  MetalsCommodityOptions = 707,
134  MetalsCommoditySwaps = 708,
135  OtherCommodityDerivatives = 709,
136  NDF = 800,
137  DF = 801,
138  NDO = 802,
139  DO = 803,
140  NDS = 804,
141  DS = 805,
142  FxFutures = 806,
143  OtherForeignExchangeDerivatives = 807,
144  IndexCreditDefaultSwaps = 900,
145  SingleNameCreditDefaultSwaps = 901,
146  CdsIndexOptions = 902,
147  SingleNameCdsOptions = 903,
148  BespokeBasketCreditDefaultSwap = 904,
149  OtherCreditDerivatives = 905,
150  Freightderivatives = 1000,
151  OtherC10Derivatives = 1001,
152  CurrencyCFDs = 1100,
153  CommodityCFDs = 1101,
154  EquityCFDs = 1102,
155  BondCFDs = 1103,
156  CFDsOnAnEquityFutureForward = 1104,
157  CFDsOnAnEquityOption = 1105,
158  EuropeanUnionAllowances = 1200,
159  EuropeanUnionAviationAllowances = 1201,
160  CertifiedEmissionReductions = 1202,
161  EmissionReductionUnits = 1203,
162  OtherEmissionAllowances = 1204,
163  EuaDerivatives = 1300,
164  EuaaDerivatives = 1301,
165  CerDerivatives = 1302,
166  EruDerivatives = 1303,
167  OtherEmissionAllowanceDerivatives = 1304,
168  };
169  };
170 
171  /// Appends string presentation of object.
172  ONIXS_TRADEWEB_APA_API void toStr(std::string&, SubAssetClass::Enum);
173 
174  /// Returns string presentation of object.
175  inline std::string toStr(SubAssetClass::Enum layout)
176  {
177  std::string str;
178 
179  toStr(str, layout);
180 
181  return str;
182  }
183 
184  struct ActionType
185  {
186  /// Integral type used as basement for constants.
187  typedef UInt8 Base;
188 
189  enum Enum
190  {
191  /// Add a quote
192  Add = 'A',
193  /// Update a quote
194  Delete = 'U',
195  /// Delete a quote
196  Change = 'D'
197  };
198  };
199 
200  /// Appends string presentation of object.
201  ONIXS_TRADEWEB_APA_API void toStr(std::string&, ActionType::Enum);
202 
203  /// Returns string presentation of object.
204  inline std::string toStr(ActionType::Enum layout)
205  {
206  std::string str;
207 
208  toStr(str, layout);
209 
210  return str;
211  }
212 
214  {
215  /// Integral type used as basement for constants.
216  typedef UInt8 Base;
217 
218  enum Enum
219  {
220  FullDetails = 1,
221  VolumeMask = 2,
222  DailyAggregate = 3,
223  WeeklyAggregate = 4
224  };
225  };
226 
227  /// Appends string presentation of object.
228  ONIXS_TRADEWEB_APA_API void toStr(std::string&, PublicationType::Enum);
229 
230  /// Returns string presentation of object.
231  inline std::string toStr(PublicationType::Enum layout)
232  {
233  std::string str;
234 
235  toStr(str, layout);
236 
237  return str;
238  }
239 
241  {
242  /// Integral type used as basement for constants.
243  typedef UInt8 Base;
244 
245  enum Enum
246  {
247  Yes = 'Y',
248  No = 'N',
249  };
250  };
251 
252  /// Appends string presentation of object.
253  ONIXS_TRADEWEB_APA_API void toStr(std::string&, TransactionToBeCleared::Enum);
254 
255  /// Returns string presentation of object.
256  inline std::string toStr(TransactionToBeCleared::Enum layout)
257  {
258  std::string str;
259 
260  toStr(str, layout);
261 
262  return str;
263  }
264  }
265  }
266  }
267 }
268 
269 
AssetClass (MiFIR Identifier)
Definition: Enumerations.h:36
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:39
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:187
UInt16 Base
Integral type used as basement for constants.
Definition: Enumerations.h:76
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:243
UInt8 Base
Integral type used as basement for constants.
Definition: Enumerations.h:216
void toStr(std::string &str, const Decimal &value)
Definition: Decimal.h:251