book_snapshot_25
book_snapshot_25
Family book_snapshot_25 · Since contract 2.0.0 · Rows per fact one
Key book_snapshot_25/{exchange}/{yyyy-MM-dd}/{encoded_symbol}.{sha12}.csv.gz
book_snapshot_25: exchange_seq, then asks[0].price,asks[0].amount through
asks[24].price,asks[24].amount, then the corresponding 25 bids. Asks ascend, bids
descend. Missing depth is empty. A row is emitted for the first synced in-window book
observation and each subsequent change to the rendered top 25; deeper-only changes and
identical restatements produce no extra row. After a loss of sync, the first healed
observation emits again even if the top matches the previous valid row. The row’s clocks/ordinal belong to the
triggering fact (the final chunk for a chunked restatement). An unavailable sequence
(-1) is empty. There is no synthetic hour-boundary row: a book primed in lookback
first emits on a valid in-window book fact. Consumers needing state at the exact hour
boundary must carry the previous hour’s last valid row and respect intervening gaps.
Columns
Every family begins with the same 9 columns, in this order; the family’s own follow them.
A file’s first lines
The second line is a row’s shape, read off the contract: <decimal> stands for a value of that type, an enum shows its values, and a cell that may be empty is marked in the table above.
Emission
First synced in-window book fact, each rendered top-25 change, and first healed observation after losing sync. No synthetic hour-boundary row; retain previous valid state when exact boundary state is required.