exchange
Low-latency exchange in C++
Loading...
Searching...
No Matches
l2_data.hpp
Go to the documentation of this file.
1#pragma once
4
5#include <cstdint>
6#include <array>
7
8namespace exchange::server
9{
10
11struct L2Data
12{
18
19 static constexpr uint8_t MAX_LEVELS = 10U;
20 std::array<PriceQuantityPair, MAX_LEVELS> buyList; // Descending price
21 std::array<PriceQuantityPair, MAX_LEVELS> sellList; // Ascending price
22 uint8_t buyLevels;
23 uint8_t sellLevels;
24};
25
26} // namespace exchange::server
Definition main.hpp:4
Quantity quantity
Definition l2_data.hpp:16
Price price
Definition l2_data.hpp:15
Definition l2_data.hpp:12
std::array< PriceQuantityPair, MAX_LEVELS > sellList
Definition l2_data.hpp:21
uint8_t sellLevels
Definition l2_data.hpp:23
static constexpr uint8_t MAX_LEVELS
Definition l2_data.hpp:19
uint8_t buyLevels
Definition l2_data.hpp:22
std::array< PriceQuantityPair, MAX_LEVELS > buyList
Definition l2_data.hpp:20
Definition price.hpp:10
Definition quantity.hpp:9