> This page is for Datasets.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.immix.xyz/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.immix.xyz/_mcp/server.

# 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.

| Column               | Type       | May be empty | Notes                                                                                                                                                             |
| -------------------- | ---------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `exchange`           | `string`   | No           | Exchange code from refdata, for example `OKX`                                                                                                                     |
| `symbol`             | `string`   | No           | Canonical symbol, for example `BTC/USDT`                                                                                                                          |
| `instrument`         | `string`   | No           | Gateway spelling, `EXCHANGE@SYMBOL`                                                                                                                               |
| `exchange_symbol`    | `string`   | No           | Venue spelling, for example `BTC-USDT`                                                                                                                            |
| `instrument_id`      | `int64`    | No           | Signed 64-bit refdata identifier                                                                                                                                  |
| `timestamp`          | `epoch_ns` | No           | Sequencer consensus time, epoch ns                                                                                                                                |
| `exchange_timestamp` | `epoch_ns` | Yes          | Exchange time, epoch ns; empty when absent                                                                                                                        |
| `local_timestamp`    | `epoch_ns` | Yes          | Connector socket-read time, epoch ns; empty when absent                                                                                                           |
| `global_sequence`    | `int64`    | No           | The fact's envelope ordinal in the source stream. It identifies a row where a fact writes at most one; the rows one fact writes to `incremental_book_L2` share it |
| `exchange_seq`       | `int64`    | Yes          |                                                                                                                                                                   |
| `asks[n].price`      | `decimal`  | Yes          | `n` from 0 to 24: 25 columns, `asks[0].price` to `asks[24].price`.                                                                                                |
| `asks[n].amount`     | `decimal`  | Yes          | `n` from 0 to 24: 25 columns, `asks[0].amount` to `asks[24].amount`.                                                                                              |
| `bids[n].price`      | `decimal`  | Yes          | `n` from 0 to 24: 25 columns, `bids[0].price` to `bids[24].price`.                                                                                                |
| `bids[n].amount`     | `decimal`  | Yes          | `n` from 0 to 24: 25 columns, `bids[0].amount` to `bids[24].amount`.                                                                                              |

## A file's first lines

**`book_snapshot_25: the header, and a row's shape`**

```csv title="book_snapshot_25: the header, and a row's shape"
exchange,symbol,instrument,exchange_symbol,instrument_id,timestamp,exchange_timestamp,local_timestamp,global_sequence,exchange_seq,asks[0].price,asks[0].amount,asks[1].price,asks[1].amount,asks[2].price,asks[2].amount,asks[3].price,asks[3].amount,asks[4].price,asks[4].amount,asks[5].price,asks[5].amount,asks[6].price,asks[6].amount,asks[7].price,asks[7].amount,asks[8].price,asks[8].amount,asks[9].price,asks[9].amount,asks[10].price,asks[10].amount,asks[11].price,asks[11].amount,asks[12].price,asks[12].amount,asks[13].price,asks[13].amount,asks[14].price,asks[14].amount,asks[15].price,asks[15].amount,asks[16].price,asks[16].amount,asks[17].price,asks[17].amount,asks[18].price,asks[18].amount,asks[19].price,asks[19].amount,asks[20].price,asks[20].amount,asks[21].price,asks[21].amount,asks[22].price,asks[22].amount,asks[23].price,asks[23].amount,asks[24].price,asks[24].amount,bids[0].price,bids[0].amount,bids[1].price,bids[1].amount,bids[2].price,bids[2].amount,bids[3].price,bids[3].amount,bids[4].price,bids[4].amount,bids[5].price,bids[5].amount,bids[6].price,bids[6].amount,bids[7].price,bids[7].amount,bids[8].price,bids[8].amount,bids[9].price,bids[9].amount,bids[10].price,bids[10].amount,bids[11].price,bids[11].amount,bids[12].price,bids[12].amount,bids[13].price,bids[13].amount,bids[14].price,bids[14].amount,bids[15].price,bids[15].amount,bids[16].price,bids[16].amount,bids[17].price,bids[17].amount,bids[18].price,bids[18].amount,bids[19].price,bids[19].amount,bids[20].price,bids[20].amount,bids[21].price,bids[21].amount,bids[22].price,bids[22].amount,bids[23].price,bids[23].amount,bids[24].price,bids[24].amount
<string>,<string>,<string>,<string>,<int64>,<epoch_ns>,<epoch_ns>,<epoch_ns>,<int64>,<int64>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>,<decimal>
```

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.