Now in Public Beta

Polymarket orderbook data, blazing fast

Historical orderbook snapshots, depth charts, and spread analytics for every market on Polymarket. Sub-2ms queries powered by DuckDB.

terminal
# Get orderbook snapshot for any Polymarket token
curl https://api.smauglabs.com/v1/orderbook/{token_id}/snapshot \
  -H "X-API-Key: your_key"

# Response in <2ms
{
  "bids": [[0.65, 12450.00], [0.64, 8200.00]],
  "asks": [[0.66, 9800.00], [0.67, 5100.00]],
  "spread": 0.01,
  "timestamp": "2026-03-01T12:00:00Z"
}

Why SmaugLabs

Sub-2ms Queries

DuckDB analytical engine on columnar parquet data. Faster than any REST API wrapping a row-store database.

Full History

Hourly orderbook snapshots from pmxt.dev, plus live WebSocket recording between snapshots. No gaps.

Raw SQL Access

Run custom analytical SQL directly against the orderbook dataset. Build your own metrics, your way.

Every Market

All Polymarket events and markets indexed. Search by keyword, filter by category, access any token.

Depth & Spread

Cumulative depth charts and bid-ask spread history endpoints built in. No manual aggregation needed.

Enriched Metadata

Event context from OpenDota, PandaScore, BTC price feeds. Correlate market moves with real-world data.

Endpoints

GET /v1/orderbook/{token_id}/snapshot Point-in-time orderbook
GET /v1/orderbook/{token_id}/history Aggregated time buckets
GET /v1/orderbook/{token_id}/depth Cumulative depth chart
GET /v1/orderbook/{token_id}/spread Bid-ask spread over time
POST /v1/orderbook/query Custom SQL query
GET /v1/events Browse all markets
GET /v1/events/markets/search Search by keyword
GET /v1/metadata/{event_id} Enriched event context

Pricing

Free
$0
Get started instantly
  • 120 requests / minute
  • 10,000 queries / day
  • Public endpoints
  • Community support
Enterprise
Custom
Volume & SLA
  • Unlimited everything
  • WebSocket streaming
  • Dedicated instance
  • SLA guarantee