OnixS C++ CME MDP Premium Market Data Handler 5.9.0
API Documentation
Loading...
Searching...
No Matches
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
40
43
46void brief(std::string&, const ConsolidatedBook&);
47
49inline std::string brief(const ConsolidatedBook& book)
50{
51 std::string str;
52
53 brief(str, book);
54
55 return str;
56}
57
60void toStr(std::string&, const ConsolidatedBook&);
61
63inline std::string toStr(const ConsolidatedBook& book)
64{
65 std::string str;
66
67 toStr(str, book);
68
69 return str;
70}
71
74void toFormattedStr(std::string&, const ConsolidatedBook&);
75
77inline std::string toFormattedStr(const ConsolidatedBook& book)
78{
79 std::string str;
80
81 toFormattedStr(str, book);
82
83 return str;
84}
85
86//
87
92
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:67
#define ONIXS_CMEMDH_NAMESPACE_END
Definition Bootstrap.h:68
#define ONIXS_CMEMDH_EXPORTED
Definition Compiler.h:171
Serves as a factory for book of given type.
Definition MbpBook.h:246
Base attributes of order book.
Definition MbpBook.h:60
void toFormattedStr(std::string &, const ConsolidatedBook &)
Serializes book in formatted form.
MbpBookFactory< ConsolidatedPriceLevel, MbpBookDepth > ConsolidatedBookFactory
Factory for consolidated books.
MbpBook< ImpliedPriceLevel, MbpBookDepth > ImpliedBook
Defines implied book.
Definition ImpliedBook.h:30
MbpBook< ConsolidatedPriceLevel, MbpBookDepth > ConsolidatedBook
Consolidated Order Book.
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
void consolidate(ConsolidatedBook &, const DirectBook &, const ImpliedBook &)
Consolidates direct and implied books into given instance.
void brief(std::string &, const ConsolidatedBook &)
Book brief info.
MbpBook< DirectPriceLevel, MbpBookDepth > DirectBook
Multi-depth (direct) order book.
Definition DirectBook.h:30