OnixS C++ CME Market Data Handler  4.8.0.10
API documentation
Pages/BookUpdateNotificationStrategies.md
Go to the documentation of this file.
1 \addtogroup book-update-notification-strategies
2 
3 \brief Provides information on how and when the Handler exposes order books
4 to the users and which parameters are available affecting Handler's behavior
5 in the case.
6 
7 By default, the Handler raises the **Book Update** event at the end of the
8 corresponding market event. In particular, it triggers updates for:
9 - MBO and direct books at the end of the **End Of Real Quotes** sub-event,
10 - implied books upon reaching the **End Of Implied Quotes** sub-event,
11 - consolidated books at the end of the entire event (**End Of Event**).
12 
13 This behavior is dictated by rules of MDP to guarantee books validity.
14 
15 However, considering the fact a single event and sub-event accordingly
16 may consist of multiple packets which in their turn may have multiple
17 messages, sometimes there's a need to have books as sooner as possible.
18 
19 To satisfy the needs and to consider current implementation details of CME MDP,
20 the Handler provides additional control over the way it raises the book updates.
21 In particular, the Handler exposes OnixS::CME::MDH::HandlerSettings::bookManagement::updateNotification
22 member defining the way how to raise the book updates.
23 
24 The following table depicts currently available strategies
25 and describes how the Handler behaves in each particular case.
26 
27 <table>
28  <tr>
29  <th>Strategy</th>
30  <th>Description</th>
31  </tr>
32  <tr>
33  <td>OnixS::CME::MDH::BookUpdateNotification::OnEndOfEvent</td>
34  <td>
35  Book update event is raised at the end of market (sub-) event.
36 
37  The Handler raises book updates for:
38  - direct books at the end of real quotes updates,
39  - implied books at the end of implied quotes updates,
40  - consolidated books at the end of entire event.
41 
42  \note The given strategy strictly follows MDP rules on
43  publishing order books and is used by the Handler by default.
44  </td>
45  </tr>
46  <tr>
47  <td>OnixS::CME::MDH::BookUpdateNotification::OnSecurityChange</td>
48  <td>
49  The Handler raises book update event once security id is changed
50  in a sequence of market data entries being processed by the Handler
51  and without waiting till the end of a market event.
52 
53  \warning **Given strategy does not satisfy MDP policies on exposing
54  order books and thus can be used at own risk!** Also, books may not
55  be in a valid state (especially consolidated) because are published
56  earlier than entire data for a market event is processed.
57  </td>
58  </tr>
59 </table>