OnixS BME SENAF Handler C++ library  2.2.0
API documentation
CombinedBidAskInvolved.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/Senaf/MarketData/Export.h>
25 
26 #include <iosfwd>
27 #include <string>
28 
29 namespace OnixS { namespace Senaf { namespace MarketData {
30 
31 /// Combined Bid / Ask Publication Message. Involved.
32 struct ONIXS_BME_SENAF_EXPORT CombinedBidAskInvolved
33 {
34  /// Message code.
35  enum { code = 15 };
36 
37  /// Default constructor.
39 
40  /// Message Number.
41  unsigned int messageNumber;
42 
43  /// Market.
44  unsigned char market;
45 
46  /// Publication Time.
48 
49  /// Investment Decision.
50  unsigned int investmentDecision;
51 
52  /// Execution.
53  unsigned int execution;
54 
55  /// Liquidity Provision Activity.
57 
58  /// Instrument Type.
60 
61  /// Reference.
62  unsigned short reference;
63 
64  /// Bid Level.
65  unsigned char bidLevel;
66 
67  /// Bid Side.
69 
70  /// Bid Position.
71  unsigned char bidPosition;
72 
73  /// Bid Volume.
74  unsigned int bidVolume;
75 
76  /// Bid Price.
77  int bidPrice;
78 
79  /// Bid Yield/Rate.
80  int bidYield;
81 
82  /// Ask Level.
83  unsigned char askLevel;
84 
85  /// Ask Side.
87 
88  /// Ask Position.
89  unsigned char askPosition;
90 
91  /// Ask Volume.
92  unsigned int askVolume;
93 
94  /// Ask Price.
95  int askPrice;
96 
97  /// Ask Yield/Rate.
98  int askYield;
99 
100  /// Bid Position Number.
101  unsigned int bidPositionNumber;
102 
103  /// Ask Position Number.
104  unsigned int askPositionNumber;
105 
106  /// Member.
107  unsigned char member;
108 
109  /// Broker.
110  unsigned char broker;
111 
112  /// User.
113  unsigned char user;
114 
115  /// Label.
116  unsigned int label;
117 
118  /// Original Request Number.
119  unsigned int originalRequestNumber;
120 
121  /// Returns string representation.
122  std::string toString() const;
123 
124 private:
125  friend class MessageDeserializer;
126  CombinedBidAskInvolved(const char* data, size_t dataSize);
127  void deserialize(const char* data, size_t dataSize);
128  void reset();
129 };
130 
131 /// Make it printable using C++ I/O streams.
132 ONIXS_BME_SENAF_EXPORT std::ostream& operator<<(std::ostream&, const CombinedBidAskInvolved&);
133 
134 }}}
unsigned int originalRequestNumber
Original Request Number.
Combined Bid / Ask Publication Message. Involved.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
unsigned char liquidityProvisionActivity
Liquidity Provision Activity.
InstrumentType::Enum instrumentType
Instrument Type.
unsigned int investmentDecision
Investment Decision.