A single side (buy/sell) of the LimitOrderBook.
More...
#include <limit_tree.hpp>
template<Side side>
struct DataFeed::LOB::LimitTree< side >
A single side (buy/sell) of the LimitOrderBook.
◆ cancel()
Remove an order from the limit tree.
- Parameters
-
order | an order that exists in the limit tree |
◆ count_at()
Return the number of orders at the given limit price.
- Parameters
-
price | the limit price to return the number of orders for |
- Returns
- the number of orders at the given limit price
◆ limit()
Place a limit order on the limit tree.
- Parameters
-
order | an order that matches the side of this tree |
◆ market()
template<Side side>
template<typename Callback >
Perform a market order of given quantity on the given limit tree.
- Template Parameters
-
Callback | a callable function that excepts an order ID |
- Parameters
-
order | the order to find a market order for |
did_fill | the callback handler for when an order is filled |
◆ volume_at()
Return the volume of orders at the given limit price.
- Parameters
-
price | the limit price to return the volume for |
- Returns
- the volume of orders at the given limit price
The documentation for this struct was generated from the following file: