OpenDepth Raw-Data Pipeline & Aligned Backtest Methodology
01 · Built from Raw Trades — Never Copied from Exchange Candles
Every 1-minute bar across Binance, OKX, Bybit, Bitget, Hyperliquid, Aster, and newly integrated CEXs & Perp DEXs is aggregated from raw execution fills on strict UTC boundaries and published across 12 timeframes (1m–1w) within 6–9 seconds past minute close. Exact aggressive taker buy vs. sell volume, notional, and trade count unlock true CVD, average ticket size, and 1h/4h/24h spot-vs-perp flow Z-scores.
02 · 1-Second Time-Weighted Order Books & book_complete_bps Guard
Single-point snapshots are easily distorted by transient spoofing. OpenDepth samples raw L2 books every second and time-weights liquidity across ±20, ±100, ±200, and ±500 bps, computing passive absorption (absorb_60), wall refill time (refill_min), directional Kyle's lambda, and T1 sweep slippage. Every bar records book_complete_bps; conditions referencing uncovered depth evaluate safely to null.
03 · Zero Look-Ahead Deterministic Backtest & Live Engine
Signals compute on settled closed bars and fill on the next bar's open. Recursive indicators (EMA, Wilder RSI, ATR, MACD) auto-warmup; higher-timeframe bars hitting both SL and TP refine chronologically via 1-minute bars; fills model maker/taker fees, book_spread / book_impact slippage, and real historical funding settlements.
04 · Survivorship-Bias-Free History (Delisted Contracts Retained)
OpenDepth preserves delisted perpetual and spot contract histories with explicit delisted, lifecycle, delistedAt, and lastTradeAt metadata across charts, REST API, and whole-market backtests.
Frequently Asked Questions
- Why does OpenDepth use 1-second time-weighted depth instead of bar-close snapshots?
- Single-point bar-close snapshots are easily distorted by transient spoofing walls. Weighting 1Hz orderbook snapshots by dwell time across each minute reduces transient quote noise by up to 60x.
- What does `book_complete_bps` do in strategy evaluation?
- It records the maximum basis-point radius covered by an exchange's orderbook feed for each bar. Conditions referencing deeper bands evaluate to
nullwhenbook_complete_bpsis smaller than the requested band, preventing false signals.