|
dxFeed Graal CXX API v9.0.0
|
Checks the consistency of a list of price levels (Order events) received from a PriceLevelService. More...
#include <PriceLevelChecker.hpp>
Static Public Member Functions | |
| static bool | validate (const std::vector< std::shared_ptr< Order > > &orders, std::chrono::milliseconds timeGapBound, bool printQuotes) |
| Checks the consistency of the list of orders. | |
Checks the consistency of a list of price levels (Order events) received from a PriceLevelService.
The list is not valid when:
The check logs the crosses and the gaps. With printQuotes it also logs the bid and ask with the minimal period of 1 second and the spikes in them.
|
static |
Checks the consistency of the list of orders.
| orders | The list of orders sorted by time (as PriceLevelService::getOrders() returns them). |
| timeGapBound | The bound of the gap between subsequent orders. |
| printQuotes | true to log the bid and ask and their spikes during the check. |