Backtest your Polymarket bot on historical order books.

Tick-level order book history, backtesting SDK, and structured analytics for Polymarket. From intraday crypto to structured products and live sports.

Ready to start trading?

Millisecond replay

Replay the full order book at millisecond resolution. Every level, every tick, nothing interpolated.

Real-depth backtesting

Backtest against historical books with real queue priority, latency, and slippage.

Probability surfaces

Extract implied distributions and survival curves across multi-outcome markets.

Self-healing collection

Verified against CLOB ground truth with automatic reseed on drift and redundant connections.

--Book Updates
--Markets Tracked
--Trades Recorded
--Events / Second

See the data. Build with it.

Replay tick-level order books or backtest strategies against real historical data.

Failed to load order book data

Billions of ticks. One SDK.

Hunt edges, not bugs. Tick-by-tick replay with simulated fills, fees, and latency.

Or hand it to an agent via the MCP server. The SDK is open source on GitHub.

python
from marketlens import MarketLens, Strategy class AskHeavyFader(Strategy): def __init__(self): self._entered = False def on_market_start(self, ctx, market, book): self._entered = False def on_trade(self, ctx, market, book, trade): if book.imbalance(5) < -0.2 and not self._entered: ctx.buy_no(size=100) self._entered = True client = MarketLens("<API KEY>") result = client.backtest( AskHeavyFader(), "btc-up-or-down-5m", after="2026-04-15T12:00:00Z", before="2026-04-15T18:00:00Z", initial_cash=10_000, data_dir="data", ) result.save("runs/btc-fader", overwrite=True)

Simple, transparent pricing.

All tiers access the same data and endpoints. Limits are per-user, aggregated across keys.

3 months free

Free

Explore the data

Free
  • 25M data rows / day
  • 600 requests / min
  • 1 API key
  • Bulk exports included
  • Full history & SDK access
Popular

Pro

For researchers & traders

$29/mo
  • 5B data rows / month
  • 3,600 requests / min
  • Unused rows roll over one month
  • 5 API keys
  • Priority support

Scale

For teams & trading desks

$149/mo
  • 50B data rows / month
  • 10,800 requests / min
  • Unused rows roll over one month
  • 25 API keys
  • Dedicated support