Encapsulates price level concept. More...
Public Member Functions | |
PriceLevel () | |
Default initialization. | |
PriceLevel (const Price8 &price, Quantity quantity=0, Quantity numberOfOrders=0, const OrderIds &orderIds=OrderIds()) | |
Initializes the instances according to specified attributes. | |
const Price8 & | getPrice () const |
Price8 value. | |
void | setPrice (const Price8 &value) |
Updates price value. | |
Quantity | quantity () const |
Quantify for the given price. | |
void | quantity (Quantity value) |
Updates quantity value. | |
Quantity | numberOfOrders () const |
Total number of orders of given price. | |
void | numberOfOrders (Quantity value) |
Updates total number of orders. | |
std::string | toString () const |
Returns string representation of the instance. | |
void | toString (std::string &) const |
Appends representation of the instance to the string. | |
void | swap (PriceLevel &) |
swap values | |
const OrderIds & | orderIds () const |
returns list of order IDs for the price level | |
void | addOrderId (OrderId id) |
add OrderId to the list | |
void | removeOrderId (OrderId id) |
remove OrderId from the list | |
Encapsulates price level concept.