24 100'000'000LL, 1'000'000'000LL, 10'000'000'000LL, 60'000'000'000LL};
30 std::vector<std::int64_t>
ts;
32 std::vector<std::int64_t>
mid;
45 [[nodiscard]] std::size_t
size() const noexcept {
return ts.
size(); }
54 std::uint64_t resolved = 0;
55 std::uint64_t excluded_past_end = 0;
56 std::uint64_t excluded_no_mid = 0;
63 std::vector<HorizonCoverage> coverage;
64 std::uint64_t events = 0;
65 std::uint64_t book_updates = 0;
66 std::uint64_t skipped_one_sided = 0;
67 std::uint64_t skipped_subsample = 0;
68 std::int64_t start_ts = 0;
69 std::int64_t end_ts = 0;
71 [[nodiscard]] std::size_t size() const noexcept {
return rows.
size(); }
73 [[nodiscard]] std::string summary_table()
const;
75 [[nodiscard]] std::string csv()
const;
Definition feature_table.hpp:22
constexpr std::int64_t kDefaultHorizonsNs[]
Horizons measured by default, in nanoseconds of event time: 100 ms, 1 s, 10 s, 1 minute.
Definition feature_table.hpp:25
std::string horizon_label(std::int64_t ns)
"100ms", "1s", "1m": the shortest exact unit, the spelling MarkoutHorizon::label() uses.
Definition feature_table.hpp:31
std::vector< std::int64_t > spread
best ask - best bid, raw 1e-8
Definition feature_table.hpp:41
std::vector< std::int64_t > bid_qty
displayed quantity at the best bid, raw 1e-8
Definition feature_table.hpp:38
std::vector< std::int64_t > microprice
fastmm::microprice(book), raw 1e-8
Definition feature_table.hpp:35
std::vector< std::int64_t > best_bid
Definition feature_table.hpp:36
std::vector< std::int64_t > ts
venue time of the event that produced the row
Definition feature_table.hpp:32
std::vector< std::vector< std::int64_t > > forward_mid
Definition feature_table.hpp:45
std::vector< std::int64_t > imbalance
fastmm::imbalance(book, levels), Ratio raw 1e-8
Definition feature_table.hpp:40
void reserve(std::size_t n)
std::vector< std::uint32_t > instrument
Definition feature_table.hpp:33
std::vector< std::int64_t > horizon_ns
Horizons in nanoseconds, and the venue mid at ts + horizon.
Definition feature_table.hpp:44
std::vector< std::int64_t > ask_qty
Definition feature_table.hpp:39
std::vector< std::int64_t > mid
(best bid + best ask) / 2, raw 1e-8
Definition feature_table.hpp:34
std::vector< std::int64_t > best_ask
Definition feature_table.hpp:37
std::size_t size() const noexcept
Definition feature_table.hpp:47
Definition feature_table.hpp:63
Per horizon, how many rows got a forward mid and why the rest did not.
Definition feature_table.hpp:54