lighter.raw.order_books table contains raw order book snapshots. Each row is one snapshot for one market with bids and asks as arrays.
Table Details
| Property | Value |
|---|---|
| Clustering Key(s) | to_date("timestamp") |
Table Columns
| Column Name | Description |
|---|---|
| market_id | Market identifier |
| asks | Array of ask levels (price, size), ordered best to worst |
| bids | Array of bid levels (price, size), ordered best to worst |
| nonce | Global sequence number at snapshot time |
| begin_nonce | Sequence number at the start of the batch |
| offset | Per-market incrementing version counter |
| code | Response code |
| timestamp | UTC timestamp of the snapshot |