Full Limit Order Book
The Full Limit Order Book data type provides a comprehensive view of the order book for a specific trading pair on an exchange.
Full Limit Order Book
Overview
The Full Limit Order Book (LOB) data type provides a comprehensive view of the order book for a specific trading pair on an exchange. It captures all changes to the order book, allowing for a detailed reconstruction of the market state at any given moment.
File Organization
Full Limit Order Book data is organized in the S3 buckets using the structure below. Paths are identical in coinapi and coinapi-daily-tail; the bucket and partition date determine which dataset you are reading.
T-LIMITBOOK_FULL/
└── D-{YYYYMMDD | YYYYMMDDHH}/
└── E-[EXCHANGE]/
└── IDDI-[IDENTIFIER]+SC-[COINAPI_SYMBOL_ID]+S-[EXCHANGE_SYMBOL].csv.gzExamples:
T-LIMITBOOK_FULL/D-20230701/E-BINANCE/IDDI-1234+SC-BINANCE_SPOT_ETH_USDT+S-ETH-USDT.csv.gz
T-LIMITBOOK_FULL/D-2026011722/E-COINBASE/IDDI-6002426+SC-COINBASE_SPOT_AVAX_USD+S-AVAX__002DUSD.csv.gz
Where:
T-LIMITBOOK_FULL: Indicates the data type (Full Limit Order Book)D-{YYYYMMDD | YYYYMMDDHH}defines the time partition:YYYYMMDDincoinapi→ legacy daily partitions published before 2026-06-09YYYYMMDDincoinapi-daily-tail→ previous day only, retained 24 hoursYYYYMMDDHHincoinapi→ hourly partitions for data published on or after 2026-06-09
E-[EXCHANGE]: Exchange nameIDDI-[IDENTIFIER]: CoinAPI's internal identifierSC-[COINAPI_SYMBOL_ID]: CoinAPI's symbol identifierS-[EXCHANGE_SYMBOL]: The symbol as identified by the exchange
File Format
Files are in CSV format, compressed with gzip. Each row represents a single update to the order book.
Data Fields
| Column Name | Type | Description |
|---|---|---|
| time_exchange | datetime | UTC timestamp of the update provided by the exchange or estimated using the exchange API delay. |
| time_coinapi | datetime | UTC timestamp when CoinAPI first received the update. |
| is_buy | boolean | Indicates if the update is related to the bid side of the book. 0 for ask (sell), 1 for bid (buy). |
| update_type | string or number | Describes the order book operation. Depending on dataset/version, this field may appear either as an operation name (for example ADD, SUB) or as a numeric enum. See Update Types Explained for definitions and the numeric mapping. |
| entry_px | decimal | Price identifying the book level. |
| entry_sx | decimal | Volume associated with the specific update item. |
| order_id | string | ID of the order if the format is Level 3 (order-by-order), empty if the format is Level 2. |
Example Data
time_exchange,time_coinapi,is_buy,update_type,entry_px,entry_sx,order_id
2023-07-01T12:00:00.123456Z,2023-07-01T12:00:00.234567Z,1,ADD,30000.00,1.5,ord123
2023-07-01T12:00:01.123456Z,2023-07-01T12:00:01.234567Z,0,DELETE,30005.00,0.5,ord124
2023-07-01T12:00:02.123456Z,2023-07-01T12:00:02.234567Z,1,SUB,30000.00,0.5,ord123Data Collection Process
- We maintain a real-time connection to each supported exchange.
- Every change to the order book is captured and recorded.
- The data is processed, normalized, and stored in our system.
- Data is uploaded to the
coinapibucket as hourly partitions for data published on or after 2026-06-09. Legacy daily partitions published before that date remain incoinapi. Thecoinapi-daily-tailbucket receives daily files for the previous day only and retains them for 24 hours.
Update Types Explained
- ADD: Adds a new order to the book.
- SUB: Subtracts volume from an existing order.
- MATCH: Similar to SUB, but indicates the subtraction was due to a trade execution.
- SET: Sets a new volume for an existing order.
- DELETE: Removes an order from the book.
- SNAPSHOT: Provides a full snapshot of the order book. All previous data should be discarded before processing a SNAPSHOT.
When update_type is numeric, use this mapping:
- 0 = ADD
- 1 = SUB
- 2 = SET
- 3 = DELETE
- 4 = MATCH
Note: If you see numeric values in Prediction Markets Flat Files, treat them according to the mapping above.
Corner Cases and Special Considerations
- Order ID Usage: Some exchanges provide order IDs (Level 3 data), while others don't (Level 2 data). When order IDs are not available, the
order_idfield will be empty. - Snapshots: Snapshots are typically provided at the start of each day or after a disconnection. Always process SNAPSHOT updates by clearing the existing book first.
- High Frequency Updates: During periods of high volatility, you may observe a very high frequency of updates.
Usage Tips
- To reconstruct the full order book, process updates sequentially, maintaining the state of the book in memory.
- Use the
time_exchangefield for accurate sequencing of updates. - Pay attention to the
update_typefield to correctly apply changes to your local order book representation.
For any questions or issues with the Full Limit Order Book data, please contact our support team.
Hyperliquid L4 Trades
The Hyperliquid L4 Trades data type provides executed transactions with user attribution for both sides of each match on the Hyperliquid L4 exchange.
Hyperliquid L4 Book
The Hyperliquid L4 Book data type provides order-by-order order book snapshots and updates with user attribution on the Hyperliquid L4 exchange.