|
BetaTrader
A HFT Eco-System
|
A client-side representation of the exchange's order book. More...
#include <OrderBook.h>

Classes | |
| struct | Snapshot |
Public Member Functions | |
| OrderBook (const std::string &symbol) | |
| ~OrderBook ()=default | |
| const std::string & | getSymbol () const |
| Snapshot | getUISnapshot (size_t maxDepth=10) const |
| void | handleIncremental (const fix::MarketDataIncrementalRefresh &refresh) |
| void | handleSnapshot (const fix::MarketDataSnapshotFullRefresh &snapshot) |
Private Member Functions | |
| void | updateLevel (char type, double price, uint64_t qty, char action) |
Private Attributes | |
| std::map< double, uint64_t, std::less< double > > | mAsks |
| std::map< double, uint64_t, std::greater< double > > | mBids |
| std::mutex | mMutex |
| std::string | mSymbol |
A client-side representation of the exchange's order book.
Maintains a sorted Bid/Ask ladder using snapshots and incremental updates.
| orderbook::OrderBook::OrderBook | ( | const std::string & | symbol | ) |
|
default |
|
inline |
| OrderBook::Snapshot orderbook::OrderBook::getUISnapshot | ( | size_t | maxDepth = 10 | ) | const |

| void orderbook::OrderBook::handleIncremental | ( | const fix::MarketDataIncrementalRefresh & | refresh | ) |

| void orderbook::OrderBook::handleSnapshot | ( | const fix::MarketDataSnapshotFullRefresh & | snapshot | ) |
|
private |

|
private |
|
private |
|
mutableprivate |
|
private |