Crypto Order-Book Deltas: Event Time vs Retrieval Time
Each depth diff message carries an event time, a transaction time and update IDs. The IDs, not the clocks, decide the order in which updates apply.
Short answer
Binance's diff book depth stream sends updates with event time (E), transaction time (T) and first/final update IDs. Apply updates in update-ID order, check that each event chains from the previous one, and use T to align book changes with trades. Your receipt time measures delay. If IDs don't chain, the local book is invalid until resynchronised from a snapshot — and changes during the gap have no reliable times.
Which times the data carries
| Time | Present? | Meaning |
|---|---|---|
| E (event time) | Yes | Message time |
| T (transaction time) | Yes | Engine time |
| Update IDs | Yes | Order and continuity |
| Receipt time | No | Record it |
See Crypto Order-Book Deltas on live data in the free ChartsPod terminal.
Open the ChartsPod terminalWhat to record yourself
| Field to store | Why |
|---|---|
| first/final update ID | Ordering |
| previous final ID | Chain check |
| T | Align with trades |
| received_at | Delay |
| resync events | Gap markers |
Example
Illustrative: two messages arrived out of order over the network; applying them by receipt time produced a book with a phantom level. Applying by update ID fixed it.
Related: Crypto Order-Book Deltas: Null vs Zero - Handle Missing Fields Correctly, Crypto Order-Book Snapshots: Event Time vs Retrieval Time.
If IDs don't chain, the local book is invalid until resynchronised from a snapshot — and changes during the gap have no reliable times.
Test Crypto Order-Book Deltas on a perpetual chart; no account is needed to chart.
Launch ChartsPodQuestions readers ask
How should depth updates be ordered?
By update ID.
Which time aligns with trades?
Transaction time T.
What if IDs don't chain?
Resync from a snapshot.
Sources and methodology
Field definitions come from DEX Screener's API reference and CoinGecko's onchain API documentation, read 17 October 2026. Where a schema doesn't document a timestamp, this guide says so and recommends recording retrieval time yourself.
- Binance USD-M: Diff. book depth streams — event time, transaction time, update IDs.
- Binance: USD-M Futures market data API — trades, depth, funding and open interest.
This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.
CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.