exchange
Low-latency exchange in C++
Loading...
Searching...
No Matches
orderbook_asserts.hpp
Go to the documentation of this file.
1#pragma once
2#include "orderbook.hpp"
4
5#include <utility>
6#include <vector>
7
8namespace exchange::server
9{
10
21void assertOrderBookInvariants(const OrderBook &orderBook, bool onlyOrderBookAsserts = false);
22
32void assertRestingOrderInvariants(const Order &order, Side bookSide, Price priceLevel);
33
47void assertMatchingInvariants(const Order &aggressor, Quantity aggressorFilledQuantity,
48 std::vector<std::pair<Trade, Order>> tradeRestingPairs);
49
50} // namespace exchange::server
Definition orderbook.hpp:25
Definition main.hpp:4
void assertOrderBookInvariants(const OrderBook &orderBook, bool onlyOrderBookAsserts=false)
Definition orderbook_asserts.cpp:8
Side
Definition side.hpp:7
void assertRestingOrderInvariants(const Order &order, Side bookSide, Price priceLevel)
Definition orderbook_asserts.cpp:39
void assertMatchingInvariants(const Order &aggressor, Quantity aggressorFilledQuantity, std::vector< std::pair< Trade, Order > > tradeRestingPairs)
Definition orderbook_asserts.cpp:46
Definition order.hpp:14
Definition price.hpp:10
Definition quantity.hpp:9