18 : _market_handler(market_handler),
19 _auxiliary_memory_manager(),
20 _level_memory_manager(_auxiliary_memory_manager),
21 _level_pool(_level_memory_manager),
22 _symbol_memory_manager(_auxiliary_memory_manager),
23 _symbol_pool(_symbol_memory_manager),
24 _order_book_memory_manager(_auxiliary_memory_manager),
25 _order_book_pool(_order_book_memory_manager),
26 _order_memory_manager(_auxiliary_memory_manager),
27 _order_pool(_order_memory_manager),
36 return ((
id < _symbols.size()) ? _symbols[
id] :
nullptr);
41 return ((
id < _order_books.size()) ? _order_books[
id] :
nullptr);
46 assert((
id > 0) &&
"Order Id must be greater than zero!");
50 auto it = _orders.find(
id);
51 return ((it != _orders.end()) ? it->second :
nullptr);
const OrderBook * GetOrderBook(uint32_t id) const noexcept
Get the order book for the given symbol Id.
const Order * GetOrder(uint64_t id) const noexcept
Get the order with the given Id.
const Symbol * GetSymbol(uint32_t id) const noexcept
Get the symbol with the given Id.
C++ Trader project definitions.