OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and 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
28#include <string>
29
31
44
47
52void brief(std::string& str, const ConsolidatedBook& book);
53
57inline ONIXS_CMEMDH_NODISCARD std::string brief(const ConsolidatedBook& book)
58{
59 std::string str;
60
61 brief(str, book);
62
63 return str;
64}
65
70void toStr(std::string& str, const ConsolidatedBook& book);
71
75inline ONIXS_CMEMDH_NODISCARD std::string toStr(const ConsolidatedBook& book)
76{
77 std::string str;
78
79 toStr(str, book);
80
81 return str;
82}
83
88void toFormattedStr(std::string& str, const ConsolidatedBook& book);
89
94{
95 std::string str;
96
97 toFormattedStr(str, book);
98
99 return str;
100}
101
117void consolidate(ConsolidatedBook& consolidated, const DirectBook& direct, const ImpliedBook& implied);
118
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:69
#define ONIXS_CMEMDH_NAMESPACE_END
Definition Bootstrap.h:73
#define ONIXS_CMEMDH_EXPORTED
Definition Compiler.h:163
#define ONIXS_CMEMDH_NODISCARD
Definition Compiler.h:165
Serves as a factory for book of given type.
Definition MbpBook.h:249
void consolidate(ConsolidatedBook &consolidated, const DirectBook &direct, const ImpliedBook &implied)
Rebuilds a consolidated book from direct and implied books.
MbpBook< ImpliedPriceLevel, MbpBookDepth > ImpliedBook
Defines implied book.
Definition ImpliedBook.h:30
void toFormattedStr(std::string &str, const ConsolidatedBook &book)
Appends a human-readable formatted serialization of a consolidated book to a string.
MbpBookFactory< ConsolidatedPriceLevel, MbpBookDepth > ConsolidatedBookFactory
Allocates and constructs consolidated books with contiguous level storage.
void brief(std::string &str, const ConsolidatedBook &book)
Appends a compact summary of a consolidated book to a string.
MbpBook< DirectPriceLevel, MbpBookDepth > DirectBook
Multi-depth order book containing direct price levels.
Definition DirectBook.h:35
MbpBook< ConsolidatedPriceLevel, MbpBookDepth > ConsolidatedBook
Consolidated multi-depth order book.
void toStr(std::string &str, BookState::Enum bookState)
Appends a string representation of a book state.