# Snapshot vs. 1-Second Time-Weighted Orderbook Depth Across CEXs & Perp DEXs

> Canonical URL: https://opendepth.io/docs/research/time-weighted-orderbook-depth · Published: 2026-12-06 · Category: Orderbook Microstructure

Why minute-close orderbook snapshots distort liquidity analytics through transient spoofing, and how OpenDepth's 1-second time-weighted depth bands (±20/100/200/500 bps), absorption, refill latency, and book_complete_bps completeness gating produce reliable microstructure signals.

## Key Takeaways

- A single snapshot at the bar close treats a 200-millisecond spoofed wall identically to liquidity resting for all 60 seconds.
- Time-weighting 1-second samples across each 1-minute bar reduces transient quote noise by up to 60× and aligns resting depth with actual execution capacity.
- OpenDepth pairs four symmetric depth bands (±20, ±100, ±200, ±500 bps) with explicit `book_complete_bps` completeness gating so shallow books emit `null` instead of false zero-depth breakouts.
- Every metric is publicly inspectable via `GET https://api.opendepth.io/api/kline-depth` and the zero-auth MCP tool `get_microstructure_klines`.

## 01 · The Snapshot Distortion Problem in Crypto Orderbooks

Most market-data terminals record orderbook depth once per minute or once per five minutes at bar close. In high-frequency crypto derivatives venues — across both centralized exchanges (Binance, OKX, Bybit, Bitget) and on-chain CLOB Perp DEXs (Hyperliquid, Aster) — resting quotes are canceled and replaced tens of times per second.

When a liquidity provider flashes a large passive wall for 1–2 seconds right around the minute boundary, a snapshot database records that transient size as if the entire minute enjoyed deep support. Conversely, a brief sweep immediately before `:59` makes a deeply supported minute appear completely hollow.

| Property | Bar-Close Snapshot | OpenDepth 1s Time-Weighted Bar |
| --- | --- | --- |
| Sampling cadence | 1 sample / bar (at close) | 60 samples / 1m bar (1 Hz weighted by dwell time) |
| Transient 1s spoof impact | 100% distortion if aligned with close | ≤ 1.67% weight inside a 60s bar |
| Shallow book handling | Silent 0 or truncated partial sums | Explicit `book_complete_bps` gate → `null` if incomplete |
| Execution cost modeling | Static midpoint or fixed bps guess | Bar-level `book_spread`, `T1` sweep slippage & `book_impact` |

## 02 · Time-Weighted Depth, Absorption & Completeness Gating

Inside each strict UTC 1-minute bucket, OpenDepth integrates cumulative bid and ask notional within ±20, ±100, ±200, and ±500 bps of mid-price weighted by each snapshot's dwell duration Δt. Higher timeframes (`5m` through `1w`) roll up from 1-minute bars using duration-weighted aggregation rather than end-of-period overwrites.

Crucially, every bar also records `book_complete_bps` — the widest basis-point radius actually covered by the exchange's streamed depth levels. If an altcoin's top-N levels only span ±140 bps, strategies referencing ±200 bps or ±500 bps depth evaluate to `null` instead of misreading truncated data as a liquidity collapse.

### TIME-WEIGHTED DEPTH & COMPLETENESS GATE

```bash
TW_Depth(band) = sum_i( Depth_i(band) * dt_i ) / sum_i( dt_i )

# Completeness guard enforced identically in backtest & live evaluation:
effective_depth(band) = TW_Depth(band)  if book_complete_bps >= band
                      = null            otherwise

# Companion liquidity resilience metrics inside the 75-field schema:
#   absorb_60   -> aggressive volume absorbed per unit price move over 60s
#   refill_min  -> median minutes required for depleted top-band depth to replenish
#   kyle_lambda -> marginal price impact per unit signed net orderflow
```

## 03 · Reproduce Live Across CEXs & Perp DEXs (Zero Auth)

You can verify 1-second time-weighted orderbook depth across Binance, OKX, Bybit, Bitget, Hyperliquid, and Aster directly against OpenDepth's public edge-cached API or MCP server:

### CURL · COMPARE BINANCE VS HYPERLIQUID 1s DEPTH

```bash
curl -sS "https://api.opendepth.io/api/kline-depth?exchange=binance&marketId=binance:perp:BTC:USDT&interval=15m&limit=10&format=compact"
curl -sS "https://api.opendepth.io/api/kline-depth?exchange=hyperliquid&marketId=hyperliquid:perp:BTC:USDC&interval=15m&limit=10&format=compact"
```

## Frequently Asked Questions

### Why does OpenDepth use ±20, ±100, ±200, and ±500 bps bands?

±20 bps captures immediate execution spread and scalping liquidity, ±100–200 bps measures intraday support/resistance walls, and ±500 bps tracks structural resting market-maker inventory.

### What happens if a strategy references ±500 bps depth on a coin whose feed only spans ±150 bps?

Because `book_complete_bps < 500`, the condition evaluates safely to `null` rather than treating missing levels as zero liquidity.
