Eliminating Survivorship Bias in Crypto Perpetual Backtesting with Delisted Contracts

Backtest Integrity ·

Why backtesting crypto mean-reversion, funding-carry, or momentum strategies solely on currently listed perpetuals systematically overstates Sharpe ratios and masks terminal drawdown tails — and how OpenDepth retains delisted contracts across CEXs & Perp DEXs.

Key Takeaways

  • Every delisted perpetual contract that plunged -90% into settlement disappears from standard exchange REST market lists, hiding worst-case drawdowns from naive backtests.
  • Mean-reversion, RSI oversold, and high-yield funding strategies suffer the heaviest survivorship inflation because dying tokens trigger repeated 'cheap' buy signals right before delisting.
  • OpenDepth preserves historical 1m–1w bars and explicit delisted, lifecycle, delistedAt, and lastTradeAt metadata across connected exchanges.
  • Combined with strict close-computed / next-open fills and 1-minute TP/SL disambiguation, historical backtests reflect real market mortality.

01 · How Survivorship Bias Silently Corrupts Crypto Backtests

When a researcher pulls exchangeInfo today and runs a 1-year or 3-year cross-sectional backtest, every token that collapsed, suffered an exploit, or lost exchange liquidity and got delisted is silently missing from the universe.

This omission is asymmetric: winning tokens survive into today's catalog, while terminal blow-ups vanish. Any strategy that buys deep pullbacks, farms extreme funding rates on small-cap perpetuals, or holds multi-asset baskets sees artificially smooth equity curves until live capital meets the next delisting.

Strategy ArchetypeBias Direction Without Delisted ContractsReal-World Failure Mode
Oversold Mean Reversion (RSI / Dip Buy)Severely overstated win rate & SharpeRepeatedly catches falling knives that delist instead of bouncing
High-APR Altcoin Funding CarryUnderstated tail basis & gap riskDelisting announcement causes sudden basis blow-out and forced settlement
Cross-Sectional Momentum / Top-OIDistorted universe & ranking historyHistorical top movers that later delisted are excluded from entry rankings

02 · OpenDepth's Delisted Lifecycle Schema & 1m Disambiguation

OpenDepth never deletes historical bars when an exchange retires a contract. Both /api/tokens and /api/kline expose explicit lifecycle fields (delisted, lifecycle, delistedAt, lastTradeAt) so research pipelines and AI agents can audit historical universes accurately.

In addition, when a high-timeframe bar (15m, 1h, 4h) touches both stop-loss and take-profit inside the same candle, OpenDepth's backtester automatically drills down into raw 1-minute bars to determine true chronological hit order rather than optimistically assuming profit first.

INSPECT ACTIVE + DELISTED LIFECYCLE VIA PUBLIC API

# Inspect full token lifecycle metadata (active + delisted contracts):
curl -sS "https://api.opendepth.io/api/tokens" \
  | jq '[.markets[] | select(.delisted == true)] | length'

# Query historical bars including delisted contract metadata:
curl -sS "https://api.opendepth.io/api/kline?exchange=binance&marketId=binance:perp:BTC:USDT&interval=1h&limit=24&format=compact" \
  | jq '{marketId, delisted, lifecycle, delistedAt, lastTradeAt}'

Frequently Asked Questions

Does OpenDepth retain delisted perpetual contracts for backtesting?
Yes. Delisted contracts remain stored across our 1m–1w history with explicit delisted, lifecycle, delistedAt, and lastTradeAt metadata.
How does OpenDepth prevent look-ahead bias during backtests?
Signals evaluate strictly on bar close and execute on the next bar's open with real book_spread and book_impact fills, mandatory indicator warmup bars, and 1-minute TP/SL intrabar disambiguation.