Backtest your Polymarket bot on historical order books.

Tick-level order book history, backtesting SDK, and structured analytics for Polymarket. From pip install to first backtest in 60 seconds.

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.

Full L2 depth, captured continuously. Every endpoint returns a DataFrame — ready for pandas, not parsing.

python
$ pip install marketlens
$ export MARKETLENS_API_KEY=mk_...
from marketlens import MarketLens client = MarketLens() history = client.orderbook.history("crude-oil-cl-hit")

What's in the box?

Every product type tracked continuously with full L2 depth.

Binary

Will X go up or down?

Crypto · Indices · FX · Commodities · Equities

Multi-Strike

What will X close at?

Crypto · Equities

Barrier / Hit-Price

Will X hit a specific price level?

Crypto · Commodities

Macro & Economic

Central banks, economic data, earnings

Rates · Economic

One-off markets are not collected. Every series listed above recurs on a fixed schedule, producing sequential instances you can backtest against.

Simple, transparent pricing.

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

Free

Explore the data

Free
  • 60 requests / min
  • 2,000 requests / day
  • 1 API key
  • Full history & SDK access
Popular

Pro

For researchers & traders

$39/mo
  • 720 requests / min
  • 100,000 requests / day
  • 5 API keys
  • Bulk exports (60 / hr)
  • Priority support

Enterprise

For teams & trading desks

$199/mo
  • 1,800 requests / min
  • 500,000 requests / day
  • 25 API keys
  • Bulk exports (120 / hr)
  • Dedicated support