OnixS BME SENAF Handler C++ library  2.2.0
API documentation
BuySellInvolved.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 #include <vector>
29 
30 namespace OnixS { namespace Senaf { namespace MarketData {
31 
32 /// Buy / Sell Exchange Notified to Involved Members.
33 struct ONIXS_BME_SENAF_EXPORT BuySellInvolved
34 {
35  /// Message code.
36  enum { code = 2 };
37 
38  /// Default constructor.
40 
41  /// Message Number.
42  unsigned int messageNumber;
43 
44  /// Market.
45  unsigned char market;
46 
47  /// Investment Decision.
48  unsigned int investmentDecision;
49 
50  /// Execution.
51  unsigned int execution;
52 
53  /// Liquidity Provision Activity.
55 
56  /// Instrument Type.
58 
59  /// Reference.
60  unsigned short reference;
61 
62  /// Buy / Sell.
64 
65  /// Operation Time.
67 
68  /// Trade Number.
69  unsigned short tradeNumber;
70 
71  /// Buyer Member.
72  unsigned char buyerMember;
73 
74  /// Buyer Broker.
75  unsigned char buyerBroker;
76 
77  /// Buyer User.
78  unsigned char buyerUser;
79 
80  /// Buyer Label.
81  unsigned int buyerLabel;
82 
83  /// Seller Member.
84  unsigned char sellerMember;
85 
86  /// Seller Broker.
87  unsigned char sellerBroker;
88 
89  /// Seller User.
90  unsigned char sellerUser;
91 
92  /// Seller Label.
93  unsigned int sellerLabel;
94 
95  /// Original Request Number.
96  unsigned int originalRequestNumber;
97 
98  /// Price.
99  int price;
100 
101  /// Volume.
102  unsigned int volume;
103 
104  /// Returns string representation.
105  std::string toString () const;
106 
107 private:
108  friend class MessageDeserializer;
109  BuySellInvolved(const char* data, size_t dataSize);
110  void deserialize(const char* data, size_t dataSize);
111  void reset();
112 };
113 
114 ONIXS_BME_SENAF_EXPORT std::ostream& operator<<(std::ostream&, const BuySellInvolved&);
115 
116 }}}
Buy / Sell Exchange Notified to Involved Members.
unsigned int messageNumber
Message Number.
unsigned short tradeNumber
Trade Number.
unsigned char buyerMember
Buyer Member.
unsigned char sellerBroker
Seller Broker.
unsigned char sellerMember
Seller Member.
InstrumentType::Enum instrumentType
Instrument Type.
unsigned int originalRequestNumber
Original Request Number.
unsigned char sellerUser
Seller User.
unsigned int investmentDecision
Investment Decision.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
unsigned char liquidityProvisionActivity
Liquidity Provision Activity.
unsigned int sellerLabel
Seller Label.
unsigned char buyerBroker
Buyer Broker.