|
Leka
A low-latency C++20 price-time-priority limit order book and matching engine
|
Describes one match between an incoming and resting order. More...
#include <execution.hpp>
Public Member Functions | |
| Execution (OrderId incomingOrderId, OrderId restingOrderId, Price executionPrice, Quantity executionQuantity) | |
| Constructs an execution at the resting order's price. | |
| OrderId | getIncomingOrderId () const |
| Returns the incoming order ID. | |
| OrderId | getRestingOrderId () const |
| Returns the resting order ID. | |
| Price | getExecutionPrice () const |
| Returns the execution price. | |
| Quantity | getExecutionQuantity () const |
| Returns the executed quantity. | |
| bool | isValid () const |
| Returns whether all execution fields are valid. | |
Describes one match between an incoming and resting order.
Definition at line 11 of file execution.hpp.
| lob::Execution::Execution | ( | OrderId | incomingOrderId, |
| OrderId | restingOrderId, | ||
| Price | executionPrice, | ||
| Quantity | executionQuantity ) |
Constructs an execution at the resting order's price.
Records one execution between an incoming and resting order.
Definition at line 6 of file execution.cpp.
| OrderId lob::Execution::getIncomingOrderId | ( | ) | const |
Returns the incoming order ID.
Definition at line 9 of file execution.cpp.
| OrderId lob::Execution::getRestingOrderId | ( | ) | const |
Returns the resting order ID.
Definition at line 13 of file execution.cpp.
| Price lob::Execution::getExecutionPrice | ( | ) | const |
Returns the execution price.
Definition at line 17 of file execution.cpp.
| Quantity lob::Execution::getExecutionQuantity | ( | ) | const |
Returns the executed quantity.
Definition at line 21 of file execution.cpp.
| bool lob::Execution::isValid | ( | ) | const |
Returns whether all execution fields are valid.
Checks that all execution identifiers, price, and quantity are valid.
Definition at line 26 of file execution.cpp.
References lob::Quantity::isValid().