OnixS C++ CBOE CFE Binary Order Entry (BOE) Handler  1.11.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 
24 
25 
26 namespace OnixS {
27 namespace CboeCFE {
28 namespace Trading {
29 namespace BOE {
30 
31  ONIXS_CBOE_CFE_BOE_API_DECL(struct, OrderAcknowledgement);
32  ONIXS_CBOE_CFE_BOE_API_DECL(struct, OrderRejected);
33  ONIXS_CBOE_CFE_BOE_API_DECL(struct, OrderModified);
34  ONIXS_CBOE_CFE_BOE_API_DECL(struct, ModifyRejected);
35  ONIXS_CBOE_CFE_BOE_API_DECL(struct, OrderExecution);
36  ONIXS_CBOE_CFE_BOE_API_DECL(struct, OrderCancelled);
37  ONIXS_CBOE_CFE_BOE_API_DECL(struct, CancelRejected);
38  ONIXS_CBOE_CFE_BOE_API_DECL(struct, MassCancelAcknowledgement);
39  ONIXS_CBOE_CFE_BOE_API_DECL(struct, MassCancelRejected);
40  ONIXS_CBOE_CFE_BOE_API_DECL(struct, PurgeAcknowledgement);
41  ONIXS_CBOE_CFE_BOE_API_DECL(struct, PurgeRejected);
42  ONIXS_CBOE_CFE_BOE_API_DECL(struct, TradeCancelOrCorrect);
43  ONIXS_CBOE_CFE_BOE_API_DECL(struct, TASRestatement);
44  ONIXS_CBOE_CFE_BOE_API_DECL(struct, VarianceRestatement);
45  ONIXS_CBOE_CFE_BOE_API_DECL(struct, QuoteUpdateAcknowledgement);
46  ONIXS_CBOE_CFE_BOE_API_DECL(struct, QuoteUpdateRejected);
47  ONIXS_CBOE_CFE_BOE_API_DECL(struct, QuoteRestated);
48  ONIXS_CBOE_CFE_BOE_API_DECL(struct, QuoteExecution);
49  ONIXS_CBOE_CFE_BOE_API_DECL(struct, QuoteCancelled);
50  ONIXS_CBOE_CFE_BOE_API_DECL(struct, TASQuoteRestatement);
51  ONIXS_CBOE_CFE_BOE_API_DECL(struct, VarianceQuoteRestatement);
52  ONIXS_CBOE_CFE_BOE_API_DECL(struct, ResetRiskAcknowledgement);
53  ONIXS_CBOE_CFE_BOE_API_DECL(struct, OrderAcknowledgementOptionUSFutures);
54  ONIXS_CBOE_CFE_BOE_API_DECL(struct, OrderExecutionOptionUSFutures);
55  ONIXS_CBOE_CFE_BOE_API_DECL(struct, TradeCancelCorrectOptionUSFutures);
56 
57  /// Incoming (CFE to TPH) message listener
58  class ONIXS_CBOE_CFE_BOE_API MessageListener
59  {
60  public:
61  /// Fires when OrderAcknowledgement is received.
63 
64  /// Fires when OrderRejected is received.
65  virtual void onOrderRejected(const OrderRejected&) {};
66 
67  /// Fires when OrderModified is received.
68  virtual void onOrderModified(const OrderModified&) {};
69 
70  /// Fires when ModifyRejected is received.
71  virtual void onModifyRejected(const ModifyRejected&) {};
72 
73  /// Fires when OrderExecution is received.
74  virtual void onOrderExecution(const OrderExecution&) {};
75 
76  /// Fires when OrderCancelled is received.
77  virtual void onOrderCancelled(const OrderCancelled&) {};
78 
79  /// Fires when CancelRejected is received.
80  virtual void onCancelRejected(const CancelRejected&) {};
81 
82  /// Fires when MassCancelAcknowledgement is received.
84 
85  /// Fires when MassCancelRejected is received.
86  virtual void onMassCancelRejected(const MassCancelRejected&) {};
87 
88  /// Fires when PurgeAcknowledgement is received.
90 
91  /// Fires when PurgeRejected is received.
92  virtual void onPurgeRejected(const PurgeRejected&) {};
93 
94  /// Fires when TradeCancelOrCorrect is received.
96 
97  /// Fires when TASRestatement is received.
98  virtual void onTASRestatement(const TASRestatement&) {};
99 
100  /// Fires when VarianceRestatement is received.
102 
103  /// Fires when QuoteUpdateAcknowledgement is received.
105 
106  /// Fires when QuoteUpdateRejected is received.
108 
109  /// Fires when QuoteRestated is received.
110  virtual void onQuoteRestated(const QuoteRestated&) {};
111 
112  /// Fires when QuoteExecution is received.
113  virtual void onQuoteExecution(const QuoteExecution&) {};
114 
115  /// Fires when QuoteCancelled is received.
116  virtual void onQuoteCancelled(const QuoteCancelled&) {};
117 
118  /// Fires when TASQuoteRestatement is received.
120 
121  /// Fires when VarianceQuoteRestatement is received.
123 
124  /// Fires when ResetRiskAcknowledgement is received.
126 
127  /// Fires when OrderAcknowledgementOptionUSFutures is received.
129 
130  /// Fires when OrderExecutionOptionUSFutures is received.
132 
133  /// Fires when TradeCancelCorrectOptionUSFutures is received.
135 
136  protected:
137  virtual ~MessageListener() {};
138  };
139 
140 }
141 }
142 }
143 }
virtual void onTASRestatement(const TASRestatement &)
Fires when TASRestatement is received.
A Cancel Rejected message is sent in response to a Cancel Order message to indicate that the cancella...
virtual void onQuoteExecution(const QuoteExecution &)
Fires when QuoteExecution is received.
virtual void onCancelRejected(const CancelRejected &)
Fires when CancelRejected is received.
ONIXS_CBOE_CFE_BOE_API_DECL(struct, OutgoingMessage)
virtual void onResetRiskAcknowledgement(const ResetRiskAcknowledgement &)
Fires when ResetRiskAcknowledgement is received.
virtual void onOrderAcknowledgement(const OrderAcknowledgement &)
Fires when OrderAcknowledgement is received.
Modified messages are sent in response to a Modify Order to indicate that the order has been successf...
Definition: OrderModified.h:36
Is sent in response to a New Order Option US Futures message.
virtual void onTradeCancelOrCorrect(const TradeCancelOrCorrect &)
Fires when TradeCancelOrCorrect is received.
Used to provide notification that a trade has been cancelled (busted) or corrected (price change only...
virtual void onOrderCancelled(const OrderCancelled &)
Fires when OrderCancelled is received.
virtual void onMassCancelAcknowledgement(const MassCancelAcknowledgement &)
Fires when MassCancelAcknowledgement is received.
virtual void onMassCancelRejected(const MassCancelRejected &)
Fires when MassCancelRejected is received.
virtual void onQuoteUpdateRejected(const QuoteUpdateRejected &)
Fires when QuoteUpdateRejected is received.
Order Acknowledgement messages are sent in response to a New Order message.
virtual void onOrderRejected(const OrderRejected &)
Fires when OrderRejected is received.
A Variance Quote Restatement is sent post-settlement time for each VA and VAO execution during the as...
A Variance Restatement is sent post-settlement time for each VA and VAO execution during the associat...
Modify Rejected messages are sent in response to a Modify Order for an order which cannot be modified...
virtual void onPurgeAcknowledgement(const PurgeAcknowledgement &)
Fires when PurgeAcknowledgement is received.
A Mass Cancel Rejected message is sent in response to a Mass Cancel Order message to indicate that th...
virtual void onQuoteRestated(const QuoteRestated &)
Fires when QuoteRestated is received.
virtual void onVarianceRestatement(const VarianceRestatement &)
Fires when VarianceRestatement is received.
virtual void onOrderAcknowledgementOptionUSFutures(const OrderAcknowledgementOptionUSFutures &)
Fires when OrderAcknowledgementOptionUSFutures is received.
virtual void onOrderExecution(const OrderExecution &)
Fires when OrderExecution is received.
virtual void onQuoteCancelled(const QuoteCancelled &)
Fires when QuoteCancelled is received.
Used to provide notification that a trade has been cancelled.
Incoming (CFE to TPH) message listener.
virtual void onPurgeRejected(const PurgeRejected &)
Fires when PurgeRejected is received.
virtual void onQuoteUpdateAcknowledgement(const QuoteUpdateAcknowledgement &)
Fires when QuoteUpdateAcknowledgement is received.
A Mass Cancel Acknowledgment is an unsequenced message sent when a Cancel Order or Purge Orders messa...
Quote Restated messages are sent to inform the TPH that an order has been asynchronously modified for...
Definition: QuoteRestated.h:36
A Purge Acknowledgment is an unsequenced message sent when a Purge Orders message requesting an order...
A TAS Quote Restatement is sent post-settlement time for each TAS (VXT, VXMT) quote execution during ...
virtual void onVarianceQuoteRestatement(const VarianceQuoteRestatement &)
Fires when VarianceQuoteRestatement is received.
Quote Update Acknowledgment messages are sent in response to a Quote Update message.
A Quote Cancelled message will be sent to indicate an unsolicited cancellation of a quote entered wit...
virtual void onOrderModified(const OrderModified &)
Fires when OrderModified is received.
virtual void onOrderExecutionOptionUSFutures(const OrderExecutionOptionUSFutures &)
Fires when OrderExecutionOptionUSFutures is received.
virtual void onModifyRejected(const ModifyRejected &)
Fires when ModifyRejected is received.
A TAS Restatement is sent post-settlement time for each TAS execution during the associated business ...
An Order Execution is sent for each fill on an order.
virtual void onTradeCancelCorrectOptionUSFutures(const TradeCancelCorrectOptionUSFutures &)
Fires when TradeCancelCorrectOptionUSFutures is received.
virtual void onTASQuoteRestatement(const TASQuoteRestatement &)
Fires when TASQuoteRestatement is received.
A Purge Rejected message is sent in response to a Purge Orders message to indicate that the mass canc...
Definition: PurgeRejected.h:36
Quote Update Rejected messages are sent in response to a Quote Update message when the entire quote b...
A Quote Execution message is used to indicate an execution has occurred on a resting quote...