OnixS C++ CME MDP Premium Market Data Handler  5.8.3
API Documentation
ConsolidatedBook.h
Go to the documentation of this file.
1 // Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2 //
3 // This software owned by Onix Solutions Limited [OnixS] and is
4 // protected by copyright law and international copyright treaties.
5 //
6 // Access to and use of the software is governed by the terms of the applicable
7 // OnixS Software Services Agreement (the Agreement) and Customer end user license
8 // agreements granting a non-assignable, non-transferable and non-exclusive license
9 // to use the software for it's own data processing purposes under the terms defined
10 // in the Agreement.
11 //
12 // Except as otherwise granted within the terms of the Agreement, copying or
13 // reproduction of any part of this source code or associated reference material
14 // to any other location for further reproduction or redistribution, and any
15 // amendments to this copyright notice, are expressly prohibited.
16 //
17 // Any reproduction or redistribution for sale or hiring of the Software not in
18 // accordance with the terms of the Agreement is a violation of copyright law.
19 //
20 
21 #pragma once
22 
25 
27 
29 
30 /// Consolidated Order Book.
31 ///
32 /// A set of bid prices and ask prices for the given
33 /// security (bids are descending and asks are ascending).
34 /// The quantity is provided at each price level.
35 ///
36 /// In addition to regular book interface, provides access
37 /// to detailed consolidated price level data like direct
38 /// and implied quantity components.
40 
41 /// Factory for consolidated books.
43 
44 /// Book brief info.
46 void brief(std::string&, const ConsolidatedBook&);
47 
48 /// Book brief info.
49 inline std::string brief(const ConsolidatedBook& book)
50 {
51  std::string str;
52 
53  brief(str, book);
54 
55  return str;
56 }
57 
58 /// Serializes book.
60 void toStr(std::string&, const ConsolidatedBook&);
61 
62 /// Serializes book.
63 inline std::string toStr(const ConsolidatedBook& book)
64 {
65  std::string str;
66 
67  toStr(str, book);
68 
69  return str;
70 }
71 
72 /// Serializes book in formatted form.
74 void toFormattedStr(std::string&, const ConsolidatedBook&);
75 
76 /// Serializes book in formatted form.
77 inline std::string toFormattedStr(const ConsolidatedBook& book)
78 {
79  std::string str;
80 
81  toFormattedStr(str, book);
82 
83  return str;
84 }
85 
86 //
87 
88 /// Consolidates direct and implied
89 /// books into given instance.
91 void consolidate(ConsolidatedBook&, const DirectBook&, const ImpliedBook&);
92 
Base attributes of order book.
Definition: MbpBook.h:59
std::string brief(const ConsolidatedBook &book)
Book brief info.
void consolidate(ConsolidatedBook &, const DirectBook &, const ImpliedBook &)
Consolidates direct and implied books into given instance.
std::string toStr(const ConsolidatedBook &book)
Serializes book.
std::string toFormattedStr(const ConsolidatedBook &book)
Serializes book in formatted form.
MbpBook< ConsolidatedPriceLevel, MbpBookDepth > ConsolidatedBook
Consolidated Order Book.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition: Bootstrap.h:67
#define ONIXS_CMEMDH_EXPORTED
Definition: Compiler.h:135
Serves as a factory for book of given type.
Definition: MbpBook.h:245
MbpBookFactory< ConsolidatedPriceLevel, MbpBookDepth > ConsolidatedBookFactory
Factory for consolidated books.
#define ONIXS_CMEMDH_NAMESPACE_END
Definition: Bootstrap.h:68