OnixS C++ B3 Binary UMDF Market Data Handler  1.3.3
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 namespace OnixS {
27 namespace B3 {
28 namespace MarketData {
29 namespace UMDF {
30 
31  /// Message listener
32  class ONIXS_B3_UMDF_MD_API MessageListener
33  {
34  public:
36  virtual void onSequence_2(const Messaging::Sequence_2&, const DataSource&) {}
37  virtual void onEmptyBook_9(const Messaging::EmptyBook_9&, const DataSource&) {}
42 
45 
46  virtual void onNews_5(const Messaging::News_5&, const DataSource&) {}
49  virtual void onPriceBand_22(const Messaging::PriceBand_22&, const DataSource&) {}
50 
54  virtual void onPriceBand_20(const Messaging::PriceBand_20&, const DataSource&) {}
55  virtual void onHighPrice_24(const Messaging::HighPrice_24&, const DataSource&) {}
56  virtual void onLowPrice_25(const Messaging::LowPrice_25&, const DataSource&) {}
60  virtual void onOrder_MBO_50(const Messaging::Order_MBO_50&, const DataSource&) {}
63  virtual void onTrade_53(const Messaging::Trade_53&, const DataSource&) {}
67  virtual void onTradeBust_57(const Messaging::TradeBust_57&, const DataSource&) {}
68 
69  virtual void onUnknownMessage(const Messaging::SbeMessage&, const DataSource&) {}
70 
71  virtual void onInstrumentChannelGap() {}
73  virtual void onInstrumentRecoveryStarted() {}
74  virtual void onInstrumentRecoveryFinished() {}
75 
76  virtual void onSnapshotChannelGap() {}
77  virtual void onSnapshotChannelInactivity() {}
78  virtual void onSnapshotRecoveryStarted() {}
79  virtual void onSnapshotRecoveryFinished() {}
80 
81  virtual void onIncrementalChannelGap() {}
83 
85 
86  protected:
87  virtual ~MessageListener() = 0;
88  };
89 }
90 }
91 }
92 }
The theoretical opening price is also sent on this block and is calculated and updated based on the o...
Definition: Messages.h:3138
Used to reset the incremental stream or indicate the loop on instrument definition or snapshot recove...
Definition: Messages.h:34
virtual void onQuantityBand_21(const Messaging::QuantityBand_21 &, const DataSource &)
Conveys market information of B3 market surveillance notifications and news produced by agencies...
Definition: Messages.h:2512
Carries auction imbalance information, indicating the remaining quantity and to which side (buyer or ...
Definition: Messages.h:3700
Carries the summary information about opening trading session events per market data stream...
Definition: Messages.h:2856
Summary information about closing trading sessions per market data stream..
Definition: Messages.h:3413
virtual void onClosingPrice_17(const Messaging::ClosingPrice_17 &, const DataSource &)
Total number of contracts in a commodity or options market that are still open..
Definition: Messages.h:5995
Disseminates the creation or modification of a new order..
Definition: Messages.h:6512
The lowest price traded for the security in the trading session..
Definition: Messages.h:5094
Header for the snapshot of a single instrument.
Definition: Messages.h:6257
virtual void onLowPrice_25(const Messaging::LowPrice_25 &, const DataSource &)
The highest price traded for the security in the trading session..
Definition: Messages.h:4839
Market Data Incremental Refresh - Empty Book.
Definition: Messages.h:360
virtual void onPriceBand_20(const Messaging::PriceBand_20 &, const DataSource &)
virtual void onHighPrice_24(const Messaging::HighPrice_24 &, const DataSource &)
virtual void onTrade_53(const Messaging::Trade_53 &, const DataSource &)
virtual void onSnapshotFullRefresh_Orders_MBO_71(const Messaging::SnapshotFullRefresh_Orders_MBO_71 &, const DataSource &)
virtual void onSnapshotFullRefresh_Header_30(const Messaging::SnapshotFullRefresh_Header_30 &, const DataSource &)
virtual void onSecurityStatus_3(const Messaging::SecurityStatus_3 &, const DataSource &)
virtual void onTradeBust_57(const Messaging::TradeBust_57 &, const DataSource &)
virtual void onNews_5(const Messaging::News_5 &, const DataSource &)
virtual void onMassDeleteOrders_MBO_52(const Messaging::MassDeleteOrders_MBO_52 &, const DataSource &)
virtual void onOpenInterest_29(const Messaging::OpenInterest_29 &, const DataSource &)
virtual void onSequence_2(const Messaging::Sequence_2 &, const DataSource &)
The latest price traded for the security in the trading session..
Definition: Messages.h:5349
virtual void onAuctionImbalance_19(const Messaging::AuctionImbalance_19 &, const DataSource &)
Channel Reset (remove all instruments, empty all books and statistics).
Definition: Messages.h:585
Definition: Handler.h:26
Settlement price or the previous day’s adjusted closing price..
Definition: Messages.h:5702
Relays execution summary information on one instrument..
Definition: Messages.h:8016
virtual void onOpeningPrice_15(const Messaging::OpeningPrice_15 &, const DataSource &)
Relays execution summary statistics information on one instrument..
Definition: Messages.h:8303
virtual void onDeleteOrder_MBO_51(const Messaging::DeleteOrder_MBO_51 &, const DataSource &)
virtual void onPriceBand_22(const Messaging::PriceBand_22 &, const DataSource &)
Disseminates the deletion of a new order..
Definition: Messages.h:6817
virtual void onForwardTrade_54(const Messaging::ForwardTrade_54 &, const DataSource &)
virtual void onOrder_MBO_50(const Messaging::Order_MBO_50 &, const DataSource &)
virtual void onSettlementPrice_28(const Messaging::SettlementPrice_28 &, const DataSource &)
virtual void onUnknownMessage(const Messaging::SbeMessage &, const DataSource &)
Partial list of orders for the snapshot of a single instrument..
Definition: Messages.h:8887
virtual void onSecurityDefinition_12(const Messaging::SecurityDefinition_12 &, const DataSource &)
virtual void onSequenceReset_1(const Messaging::SequenceReset_1 &, const DataSource &)
virtual void onTheoreticalOpeningPrice_16(const Messaging::TheoreticalOpeningPrice_16 &, const DataSource &)
Relays trade information on one Forward instrument.
Definition: Messages.h:7664
Relays trade information on one instrument..
Definition: Messages.h:7336
UInt64 SecurityID
Security ID as defined by B3's Trading System.
Definition: Fields.h:168
virtual void onLastTradePrice_27(const Messaging::LastTradePrice_27 &, const DataSource &)
virtual void onEmptyBook_9(const Messaging::EmptyBook_9 &, const DataSource &)
virtual void onExecutionSummary_55(const Messaging::ExecutionSummary_55 &, const DataSource &)
virtual void onSecurityGroupPhase_10(const Messaging::SecurityGroupPhase_10 &, const DataSource &)
virtual void onChannelReset_11(const Messaging::ChannelReset_11 &, const DataSource &)
Sent in incremental, snapshot and instrument list feeds in periods of no activity..
Definition: Messages.h:196
virtual void onInstrumentSequenceGap(Messaging::SecurityID)
Relays trade bust (trade reversal) information on one instrument..
Definition: Messages.h:8599
virtual void onExecutionStatistics_56(const Messaging::ExecutionStatistics_56 &, const DataSource &)