JayBeams
0.1
Another project to have fun coding.
|
Represent one side of the book. More...
#include <map_based_order_book.hpp>
Classes | |
struct | side |
template specialization struct to handle differences between BUY and SELL version SELL side More... | |
struct | side< std::greater< price4_t >, DUMMY > |
version BUY side More... | |
Public Member Functions | |
map_based_book_side (map_based_order_book::config const &cfg) | |
Initializes an empty side order book. More... | |
half_quote | best_quote () const |
half_quote | worst_quote () const |
std::size_t | count () const |
bool | add_order (price4_t px, int qty) |
Add a price and quantity to the side order book. More... | |
bool | reduce_order (price4_t px, int reduced_qty) |
Reduce the quantity for a given price. More... | |
bool | is_ascending () const |
Testing hook. More... | |
Private Attributes | |
std::map< price4_t, int, compare_t > | levels_ |
Represent one side of the book.
Class implementation of struct map_based_order_book buy and side types.
compare_t | function object class type to sort the side |
Definition at line 17 of file map_based_order_book.hpp.
|
inlineexplicit |
Initializes an empty side order book.
Definition at line 55 of file map_based_order_book.hpp.
|
inline |
Add a price and quantity to the side order book.
px | the price of the new order |
qty | the quantity of the new order |
Definition at line 88 of file map_based_order_book.hpp.
|
inline |
Definition at line 59 of file map_based_order_book.hpp.
|
inline |
Definition at line 77 of file map_based_order_book.hpp.
|
inline |
Testing hook.
Definition at line 127 of file map_based_order_book.hpp.
|
inline |
Reduce the quantity for a given price.
px | the price of the order that was reduced |
reduced_qty | the quantity reduced in the order |
Definition at line 101 of file map_based_order_book.hpp.
References JB_LOG, and jb::warning.
|
inline |
Definition at line 68 of file map_based_order_book.hpp.
|
private |
Definition at line 155 of file map_based_order_book.hpp.