OnixS C++ EuroTLX GTP Market Data Handler  1.4.0
API documentation
MessageListener.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 
25 
26 
27 namespace OnixS {
28 namespace EuroTLX {
29 namespace MarketData {
30 namespace GTP {
31 
32  struct StatisticsSnapshotMsg;
33  struct InstrumentDirectoryEquitiesMsg;
34  struct InstrumentDirectoryFixedIncomeMsg;
35  struct SystemEventMsg;
36  struct InstrumentDirectoryMsg;
37  struct InstrumentStatusMsg;
38  struct AddOrderMBOMsg;
39  struct AddOrderShortMBOMsg;
40  struct AddOrderMBPMsg;
41  struct AddOrderShortMBPMsg;
42  struct AddOrderIncrementalMsg;
43  struct ModifyOrderMsg;
44  struct DeleteOrderMsg;
45  struct TopOfBookMsg;
46  struct OrderBookClearMsg;
47  struct TradeMsg;
48  struct StatisticsMsg;
49  struct StatisticsUpdateMsg;
50  struct AnnouncementsMsg;
51  struct IndicativeQuoteInformationMsg;
52  struct MiFIDIITradeMsg;
53  struct TradeSummaryMsg;
54 
55  /// GTP message listener
57  {
58  public:
59  /// Fires when a packet gap happens
60  virtual void onGap(UInt32 /*expectedSeqNum*/, UInt32 /*receivedSeqNum*/) {}
61 
62  /// Fires when sequence reset is detected
63  virtual void onSequenceReset() {}
64 
65  /// Fires when inactivity is detected
66  virtual void onInactivity() {}
67 
68  /// Fires when ReplayAndRecoveryCompleteMsg for instrument is received during recovery process
70 
71  /// Fires when StatisticsSnapshot message is received.
72  virtual void onStatisticsSnapshot(const StatisticsSnapshotMsg&, const DataSource&) {}
73 
74  /// Fires when InstrumentDirectoryEquities message is received.
76 
77  /// Fires when InstrumentDirectoryFixedIncome message is received.
79 
80  /// Fires when SystemEvent message is received.
81  virtual void onSystemEvent(const SystemEventMsg&, const DataSource&) {}
82 
83  /// Fires when InstrumentDirectory message is received.
85 
86  /// Fires when InstrumentStatus message is received.
87  virtual void onInstrumentStatus(const InstrumentStatusMsg&, const DataSource&) {}
88 
89  /// Fires when AddOrderMBO message is received.
90  virtual void onAddOrderMBO(const AddOrderMBOMsg&, const DataSource&) {}
91 
92  /// Fires when AddOrderShortMBO message is received.
93  virtual void onAddOrderShortMBO(const AddOrderShortMBOMsg&, const DataSource&) {}
94 
95  /// Fires when AddOrderMBP message is received.
96  virtual void onAddOrderMBP(const AddOrderMBPMsg&, const DataSource&) {}
97 
98  /// Fires when AddOrderShortMBP message is received.
99  virtual void onAddOrderShortMBP(const AddOrderShortMBPMsg&, const DataSource&) {}
100 
101  /// Fires when AddOrderIncremental message is received.
103 
104  /// Fires when ModifyOrder message is received.
105  virtual void onModifyOrder(const ModifyOrderMsg&, const DataSource&) {}
106 
107  /// Fires when DeleteOrder message is received.
108  virtual void onDeleteOrder(const DeleteOrderMsg&, const DataSource&) {}
109 
110  /// Fires when TopOfBook message is received.
111  virtual void onTopOfBook(const TopOfBookMsg&, const DataSource&) {}
112 
113  /// Fires when OrderBookClear message is received.
114  virtual void onOrderBookClear(const OrderBookClearMsg&, const DataSource&) {}
115 
116  /// Fires when Trade message is received.
117  virtual void onTrade(const TradeMsg&, const DataSource&) {}
118 
119  /// Fires when Statistics message is received.
120  virtual void onStatistics(const StatisticsMsg&, const DataSource&) {}
121 
122  /// Fires when StatisticsUpdate message is received.
123  virtual void onStatisticsUpdate(const StatisticsUpdateMsg&, const DataSource&) {}
124 
125  /// Fires when Announcements message is received.
126  virtual void onAnnouncements(const AnnouncementsMsg&, const DataSource&) {}
127 
128  /// Fires when IndicativeQuoteInformation message is received.
130 
131  /// Fires when MiFIDIITrade message is received.
132  virtual void onMiFIDIITrade(const MiFIDIITradeMsg&, const DataSource&) {}
133 
134  /// Fires when TradeSummary message is received.
135  virtual void onTradeSummary(const TradeSummaryMsg&, const DataSource&) {}
136 
137  protected:
138  virtual ~MessageListener() {};
139  };
140 }
141 }
142 }
143 }
virtual void onTrade(const TradeMsg &, const DataSource &)
Fires when Trade message is received.
virtual void onRecoveryInstrumentTradingStatus(TradingStatus::Enum)
Fires when ReplayAndRecoveryCompleteMsg for instrument is received during recovery process...
virtual void onInactivity()
Fires when inactivity is detected.
virtual void onStatisticsUpdate(const StatisticsUpdateMsg &, const DataSource &)
Fires when StatisticsUpdate message is received.
virtual void onGap(UInt32, UInt32)
Fires when a packet gap happens.
virtual void onSystemEvent(const SystemEventMsg &, const DataSource &)
Fires when SystemEvent message is received.
virtual void onAnnouncements(const AnnouncementsMsg &, const DataSource &)
Fires when Announcements message is received.
virtual void onTopOfBook(const TopOfBookMsg &, const DataSource &)
Fires when TopOfBook message is received.
virtual void onInstrumentDirectoryFixedIncome(const InstrumentDirectoryFixedIncomeMsg &, const DataSource &)
Fires when InstrumentDirectoryFixedIncome message is received.
virtual void onOrderBookClear(const OrderBookClearMsg &, const DataSource &)
Fires when OrderBookClear message is received.
virtual void onAddOrderMBP(const AddOrderMBPMsg &, const DataSource &)
Fires when AddOrderMBP message is received.
virtual void onAddOrderMBO(const AddOrderMBOMsg &, const DataSource &)
Fires when AddOrderMBO message is received.
virtual void onSequenceReset()
Fires when sequence reset is detected.
virtual void onMiFIDIITrade(const MiFIDIITradeMsg &, const DataSource &)
Fires when MiFIDIITrade message is received.
virtual void onIndicativeQuoteInformation(const IndicativeQuoteInformationMsg &, const DataSource &)
Fires when IndicativeQuoteInformation message is received.
virtual void onStatisticsSnapshot(const StatisticsSnapshotMsg &, const DataSource &)
Fires when StatisticsSnapshot message is received.
virtual void onAddOrderIncremental(const AddOrderIncrementalMsg &, const DataSource &)
Fires when AddOrderIncremental message is received.
virtual void onInstrumentStatus(const InstrumentStatusMsg &, const DataSource &)
Fires when InstrumentStatus message is received.
virtual void onTradeSummary(const TradeSummaryMsg &, const DataSource &)
Fires when TradeSummary message is received.
virtual void onAddOrderShortMBO(const AddOrderShortMBOMsg &, const DataSource &)
Fires when AddOrderShortMBO message is received.
virtual void onInstrumentDirectoryEquities(const InstrumentDirectoryEquitiesMsg &, const DataSource &)
Fires when InstrumentDirectoryEquities message is received.
virtual void onInstrumentDirectory(const InstrumentDirectoryMsg &, const DataSource &)
Fires when InstrumentDirectory message is received.
virtual void onDeleteOrder(const DeleteOrderMsg &, const DataSource &)
Fires when DeleteOrder message is received.
virtual void onModifyOrder(const ModifyOrderMsg &, const DataSource &)
Fires when ModifyOrder message is received.
virtual void onStatistics(const StatisticsMsg &, const DataSource &)
Fires when Statistics message is received.
virtual void onAddOrderShortMBP(const AddOrderShortMBPMsg &, const DataSource &)
Fires when AddOrderShortMBP message is received.