OnixS BME SENAF Handler C++ library  2.1.2
API documentation
MarketPublicationListener.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>
44 
45 namespace OnixS { namespace Senaf { namespace MarketData {
46 
47 /// \brief Defines the interface through which the Handler
48 /// notifies subscribers about Market Publication Messages.
49 class ONIXS_BME_SENAF_EXPORT MarketPublicationListener
50 {
51 public:
52  /// Is called once Market Image Recovery (012) Message received.
53  ///
54  /// \param msg Market Image Recovery (012) Message.
55  /// \param msgInfo information about this particular message.
56  virtual void onMarketImageRecovery(const MarketImageRecovery& msg, const MessageInfo& msgInfo) = 0;
57 
58  /// Is called once Market Session Start-Up (022) Message received.
59  ///
60  /// \param msg Market Session Start-Up (022) Message.
61  /// \param msgInfo information about this particular message.
62  virtual void onMarketSessionStartUp(const MarketSessionStartUp& msg, const MessageInfo& msgInfo) = 0;
63 
64  /// Is called once Market Session End (020) Message received.
65  ///
66  /// \param msg Market Session End (020) Message.
67  /// \param msgInfo information about this particular message.
68  virtual void onMarketSessionEnd(const MarketSessionEnd& msg, const MessageInfo& msgInfo) = 0;
69 
70  /// Is called once Buy / Sell (002) Involved Message received.
71  ///
72  /// \param msg Buy / Sell (002) Involved Message.
73  /// \param msgInfo information about this particular message.
74  virtual void onBuySellInvolved(const BuySellInvolved& msg, const MessageInfo& msgInfo) = 0;
75 
76  /// Is called once Buy / Sell (003) Not Involved Message received.
77  ///
78  /// \param msg Buy / Sell (003) Not Involved Message.
79  /// \param msgInfo information about this particular message.
80  virtual void onBuySellNotInvolved(const BuySellNotInvolved& msg, const MessageInfo& msgInfo) = 0;
81 
82  /// Is called once Bid / Ask Opening a New Level (006) Involved Message received.
83  ///
84  /// \param msg Bid / Ask Opening a New Level (006) Involved Message.
85  /// \param msgInfo information about this particular message.
86  virtual void onBidAskNewLevelInvolved(const BidAskNewLevelInvolved& msg, const MessageInfo& msgInfo) = 0;
87 
88  /// Is called once Bid / Ask Opening a New Level (007) Not Involved Message received.
89  ///
90  /// \param msg Bid / Ask Opening a New Level (007) Not Involved Message.
91  /// \param msgInfo information about this particular message.
92  virtual void onBidAskNewLevelNotInvolved(const BidAskNewLevelNotInvolved& msg, const MessageInfo& msgInfo) = 0;
93 
94  /// Is called once Bid / Ask Existing Level (006) Involved Message received.
95  ///
96  /// \param msg Bid / Ask Existing Level (006) Involved Message.
97  /// \param msgInfo information about this particular message.
98  virtual void onBidAskExistingLevelInvolved(const BidAskExistingLevelInvolved& msg, const MessageInfo& msgInfo) = 0;
99 
100  /// Is called once Bid / Ask Existing Level (009) Not Involved Message received.
101  ///
102  /// \param msg Bid / Ask Existing Level (009) Not Involved Message.
103  /// \param msgInfo information about this particular message.
104  virtual void onBidAskExistingLevelNotInvolved(const BidAskExistingLevelNotInvolved& msg, const MessageInfo& msgInfo) = 0;
105 
106  /// Is called once Position Modification (010) Involved Message received.
107  ///
108  /// \param msg Position Modification (010) Involved Message.
109  /// \param msgInfo information about this particular message.
110  virtual void onPositionModificationInvolved(const PositionModificationInvolved& msg, const MessageInfo& msgInfo) = 0;
111 
112  /// Is called once Position Modification (011) Not Involved Message received.
113  ///
114  /// \param msg Position Modification (011) Not Involved Message.
115  /// \param msgInfo information about this particular message.
116  virtual void onPositionModificationNotInvolved(const PositionModificationNotInvolved& msg, const MessageInfo& msgInfo) = 0;
117 
118  /// Is called once Position Cancellation (001) Message received.
119  ///
120  /// \param msg Position Cancellation (001) Message.
121  /// \param msgInfo information about this particular message.
122  virtual void onPositionCancellation(const PositionCancellation& msg, const MessageInfo& msgInfo) = 0;
123 
124  /// Is called once Combined Bid / Ask (015) Involved Message received.
125  ///
126  /// \param msg Combined Bid / Ask (015) Involved Message.
127  /// \param msgInfo information about this particular message.
128  virtual void onCombinedBidAskInvolved(const CombinedBidAskInvolved& msg, const MessageInfo& msgInfo) = 0;
129 
130  /// Is called once Combined Bid / Ask (016) Not Involved Message received.
131  ///
132  /// \param msg Combined Bid / Ask (016) Not Involved Message.
133  /// \param msgInfo information about this particular message.
134  virtual void onCombinedBidAskNotInvolved(const CombinedBidAskNotInvolved& msg, const MessageInfo& msgInfo) = 0;
135 
136  /// Is called once Switching Bid / Ask (023) Involved Message received.
137  ///
138  /// \param msg Switching Bid / Ask (023) Involved Message.
139  /// \param msgInfo information about this particular message.
140  virtual void onSwitchingBidAskInvolved(const SwitchingBidAskInvolved& msg, const MessageInfo& msgInfo) = 0;
141 
142  /// Is called once Switching Bid / Ask (024) Not Involved Message received.
143  ///
144  /// \param msg Switching Bid / Ask (024) Not Involved Message.
145  /// \param msgInfo information about this particular message.
146  virtual void onSwitchingBidAskNotInvolved(const SwitchingBidAskNotInvolved& msg, const MessageInfo& msgInfo) = 0;
147 
148  /// Is called once Operation Confirmation (004) Involved Message received.
149  ///
150  /// \param msg Operation Confirmation (004) Involved Message.
151  /// \param msgInfo information about this particular message.
152  virtual void onOperationConfirmationInvolved(const OperationConfirmationInvolved& msg, const MessageInfo& msgInfo) = 0;
153 
154  /// Is called once Operation Confirmation (005) Not involved Message received.
155  ///
156  /// \param msg Operation Confirmation (005) Not involved Message.
157  /// \param msgInfo information about this particular message.
158  virtual void onOperationConfirmationNotInvolved(const OperationConfirmationNotInvolved& msg, const MessageInfo& msgInfo) = 0;
159 
160  /// Is called once Trading Session Start-Up (013) Message received.
161  ///
162  /// \param msg Trading Session Start-Up (013) Message.
163  /// \param msgInfo information about this particular message.
164  virtual void onTradingSessionStartUp(const TradingSessionStartUp& msg, const MessageInfo& msgInfo) = 0;
165 
166  /// Is called once Trading Session End (014) Message received.
167  ///
168  /// \param msg Trading Session End (014) Message.
169  /// \param msgInfo information about this particular message.
170  virtual void onTradingSessionEnd(const TradingSessionEnd& msg, const MessageInfo& msgInfo) = 0;
171 
172 protected:
174 };
175 
176 }}}
Buy / Sell Exchange Notified to Involved Members.
Combined Bid / Ask Publication Message. Involved.
Switching Bid / Ask Publication Message. Involved.
Switching Bid / Ask Publication Message. Not Involved.
Defines the interface through which the Handler notifies subscribers about Market Publication Message...
Bid / Ask Opening New Level. Not Involved.
Combined Bid / Ask Publication Message. Not Involved.
Buy / Sell Exchange Notified to Members. Not Involved.
Bid / Ask Opening New Level. Involved.