CppTrader
1.0.4.0
C++ Trader
|
Market handler class. More...
#include <market_handler.h>
Public Member Functions | |
MarketHandler ()=default | |
MarketHandler (const MarketHandler &)=delete | |
MarketHandler (MarketHandler &&)=delete | |
virtual | ~MarketHandler ()=default |
MarketHandler & | operator= (const MarketHandler &)=delete |
MarketHandler & | operator= (MarketHandler &&)=delete |
Protected Member Functions | |
virtual void | onAddSymbol (const Symbol &symbol) |
virtual void | onDeleteSymbol (const Symbol &symbol) |
virtual void | onAddOrderBook (const OrderBook &order_book) |
virtual void | onUpdateOrderBook (const OrderBook &order_book, bool top) |
virtual void | onDeleteOrderBook (const OrderBook &order_book) |
virtual void | onAddLevel (const OrderBook &order_book, const Level &level, bool top) |
virtual void | onUpdateLevel (const OrderBook &order_book, const Level &level, bool top) |
virtual void | onDeleteLevel (const OrderBook &order_book, const Level &level, bool top) |
virtual void | onAddOrder (const Order &order) |
virtual void | onUpdateOrder (const Order &order) |
virtual void | onDeleteOrder (const Order &order) |
virtual void | onExecuteOrder (const Order &order, uint64_t price, uint64_t quantity) |
Friends | |
class | MarketManager |
Market handler class.
Market handler is used to handle all market events from MarketManager with a custom actions. Custom implementations of the market handler could be used to monitor the following changes in the market:
Not thread-safe.
Definition at line 32 of file market_handler.h.
|
default |
|
delete |
|
delete |
|
virtualdefault |
|
inlineprotectedvirtual |
Definition at line 56 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 61 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 51 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 47 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 58 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 63 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 53 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 48 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 66 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 57 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 62 of file market_handler.h.
|
inlineprotectedvirtual |
Definition at line 52 of file market_handler.h.
|
delete |
|
delete |
|
friend |
Definition at line 34 of file market_handler.h.