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.
Capabilities
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.
Explore
See the data. Build with it.
Replay tick-level order books or backtest strategies against real historical data.
Failed to load order book data
Quick Start
Billions of ticks. One SDK.
Full L2 depth, captured continuously. Every endpoint returns a DataFrame — ready for pandas, not parsing.
$ pip install marketlens$ export MARKETLENS_API_KEY=mk_...
from marketlens import MarketLens
client = MarketLens()
history = client.orderbook.history("crude-oil-cl-hit")Coverage
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.
Pricing
Simple, transparent pricing.
All tiers access the same data and endpoints. Limits are per-user, aggregated across keys.
Free
Explore the data
- ✓60 requests / min
- ✓2,000 requests / day
- ✓1 API key
- ✓Full history & SDK access
Pro
For researchers & traders
- ✓720 requests / min
- ✓100,000 requests / day
- ✓5 API keys
- ✓Bulk exports (60 / hr)
- ✓Priority support
Enterprise
For teams & trading desks
- ✓1,800 requests / min
- ✓500,000 requests / day
- ✓25 API keys
- ✓Bulk exports (120 / hr)
- ✓Dedicated support