5#include <nlohmann/json.hpp>
14using L2Levels = std::vector<std::pair<price_t, qty_t>>;
30 nlohmann::json::array_t& bids, nlohmann::json::array_t& asks,
std::vector< std::pair< price_t, qty_t > > L2Levels
std::string encode_l2_diff(const nlohmann::json &payload)
void split_book_snapshot(const MDLevel *levels, uint32_t num_bid, uint32_t num_ask, nlohmann::json::array_t &bids, nlohmann::json::array_t &asks, L2Levels &curr_bid, L2Levels &curr_ask)
constexpr uint32_t L2_PUBLISH_DEPTH
L2Diff compute_l2_diff(const L2Levels &prev_bid, const L2Levels &prev_ask, const L2Levels &curr_bid, const L2Levels &curr_ask)