QUANT_API
UTCSign inGet a key ↗
ORDER BOOK · ✓ LIVE

Top-of-Book Spread (bps)

Top-of-book spread in basis points.

orderbook.spread_bpsspread / mid · 1e4Binance · Bybit · OKX

What it measures

The bid–ask spread at the top of the book, expressed in basis points of the mid price (spread / mid × 10⁴). It is the most direct read on instantaneous transaction cost and on market-maker confidence: spreads widen when liquidity providers pull back ahead of volatility, news, or one-sided flow, and compress when the book is calm and competitive. Because it is normalized by the mid, it is comparable across assets and price levels.

References: Microprice + book imbalance Binance L1.

Point-in-time, leak-free

Like every QUANT_API feature, orderbook.spread_bps is computed point-in-time: each value uses only data that had actually arrived at the timestamp you query — live or historical. No restatements, no backfills that quietly rewrite the past, no look-ahead. The value your backtest sees at a given stamp is the value the live API would have returned at that stamp. How we enforce this is documented on the methodology page.

Windows & transforms

The signal is computed over rolling windows; each window can be served raw or through a transform (z-score, percentile rank, delta…). Which windows and transforms you can query depends on your plan — the signal itself supports:

WINDOWS
1s5s15s30s1m5m15m30m45m1h2h4h12h24h
TRANSFORMS
leveldeltaratezscorepctrankewmaminmaxrange

Plan & access

orderbook.spread_bps unlocks on the Signal plan ($99/mo) and every plan above it. It is also one of the three preview signals on the free Discover plan — you can query it today at @1h:level without paying anything. Every new account starts with a 14-day free trial of the Signal plan — no card required.

Try it free →Compare plans

Example call

Resolve the latest value for BTC (5m window, delta transform — both available on the Signal plan):

curl -G https://api.quant-api.dev/v1/features/live \
  -H "Authorization: Bearer fk_live_<your_key>" \
  --data-urlencode "asset=BTC" \
  --data-urlencode "features=orderbook.spread_bps@5m:delta"

Same key works on /v1/features/historical for point-in-time backtesting — see the API docs.

RELATED SIGNALS
Microprice Deviation orderbook.microprice_devBook Imbalance (L1) orderbook.book_imbalanceBid-Side Book Slope orderbook.book_slope_bidGuide: how this family trades in practiceRead ↗