Polymarket Developer Resources & Tools

A curated collection of APIs, documentation, historical-data guides, Python tools, and ecosystem resources for developers and researchers working with Polymarket.

Polymarket APIs & Data

Official Polymarket APIs cover market discovery, current order books, trading, and historical price data. Start here to choose the right API for your workflow.

  • Polymarket API data guide

    What Polymarket's official APIs serve, what they omit, and how to query 250ms historical books via PolyOrderbooks.

  • Polymarket API pricing

    What the official API costs (nothing), what does cost money, and the one thing it cannot serve — with endpoint behaviour tested rather than assumed.

  • Polymarket Documentation

    Official documentation for developers building with Polymarket.

  • CLOB API

    Official trading and market-data API for current order books, prices, and trading operations.

  • Gamma API / market discovery

    Primary resource for discovering markets, events, metadata, and token identifiers.

Historical data & backtesting

Looking for historical data? Read the Polymarket historical data guide, download options, crypto coverage, or the price history guide.

Backtesting & strategy replay

  • Polymarket backtest API

    Replay a strategy over 118,251 resolved Polymarket crypto markets on 250ms L2 order books — via plain-English Backtest AI or the REST API.

  • Polymarket backtest guide

    How Polymarket backtesting works: plain-English strategies, fill simulation against the historical book, reports, and the archive behind the backtest.

Query-mapped topic pages

Topic pages that map search queries to the data that answers them — coverage, archives, liquidity, and streams — each measured against the published archive.

  • Polymarket backtest API

    Replay strategies over 118,251 resolved markets on 250ms L2 order books via plain-English Backtest AI or the REST API.

  • Polymarket backtest AI

    Describe a strategy in plain English and replay it on 250ms books with fill simulation, slippage, and an AI-written report. $29/mo standalone or +$19/mo add-on.

  • Polymarket trading bot

    Full L2 order books at 250ms over REST with per-key rate limits — 60 rpm free, up to 2,500 rpm with Heavy — plus an MCP server for AI agents.

  • Polymarket order book archive

    Full L2 ladders captured every 250ms and kept for resolved markets. Open 897,192-snapshot Zenodo dataset and a free BTC CSV/JSON sample.

  • Polymarket liquidity data

    Depth, spread, and VWAP on a 250ms grid — plus measured settlement behavior: 90% of final-second books one-sided across 298 BTC contracts.

  • Polymarket websocket data

    Live streams vs a stored 250ms archive: 67.8% of delta-reconstructed books diverged and 6.4% came back crossed.

  • Polymarket resolved markets

    118,251 resolved crypto up/down markets, kept queryable with the winning outcome on every row — the archive backtest scoring is built on.

  • Polymarket trades data

    Executed trades are public and free via the Data API; the tape tells you what filled, not what was available at each level. Pair it with archived 250ms depth.

  • Polymarket real-time data

    Free live Gamma/CLOB/websocket with a ~24k-events/sec feed, and the 250ms stored history you have to capture — replay divergence measured at 67.8%.

  • Polymarket election data

    Election markets behind the free Gamma and CLOB price APIs, a measured prices-history edge case, and why election depth is forward-only.

  • Polymarket market data

    What the free official API serves vs the 1.16-million-market, 2.5-billion-snapshot archive — discovery, books, prices, metrics, and open datasets.

  • Polymarket price data

    Free 1-minute official prices, and the 250ms mid, spread, depth, and VWAP served on a shared timestamp grid with the book.

  • Polymarket order book snapshots

    What a 250ms L2 snapshot holds: full bid/ask ladders, timestamps, crossed flags — with an open 897,192-snapshot sample to inspect the shape.

  • Polymarket backtest data

    Resolved-only scoring on 118,251 markets, 250ms ladder-walking fills, and fee regimes split at the April 28, 2026 CLOB V2 cutover.

  • Polymarket microstructure data

    Measured microstructure: one-sided and crossed books, 90% final-second one-sidedness, and the replay gap behind delta reconstruction — all reproducible.

  • Polymarket data in ClickHouse

    Load 250ms order books, prices, and metrics into ClickHouse for fast point-in-time and settlement queries at scale.

  • Polymarket data in Postgres

    A relational home for books, prices, and metrics — wide schema, BRIN indexes, and CTEs for spread and depth queries.

  • Polymarket data in Node.js

    A typed client pattern for books and metrics — fetch, zod-aware types, and a cursor loop for long histories.

  • Polymarket arbitrage

    How spot, perps, and Up/Down markets relate, when true cross-venue arbitrage exists, and which gaps are measurement artifacts.

  • Polymarket market creation

    Who makes the markets: venue curation, external creators, question formats, and which ones the archive actually records.

  • Polymarket leverage

    There is none — USDC-collateralized binary contracts with binary payoffs, and what recorded books show about that risk.

  • Filtering Polymarket markets

    Filter by series, coin, window, resolution state, liquidity, and flags — the query recipe for a clean sample.

  • Polymarket weather data

    Temperature and forecast markets and the data behind them, plus how the archive treats non-crypto families.

  • Polymarket and news odds

    How news moves Polymarket odds and where the data lives — reference prints, event ticks, and reprice timing.

Python & developer tools

  • PolyOrderBooks Python SDK PyPI

    Official Python client for the PolyOrderBooks REST API.

  • Polymarket MCP server npm

    Historical L2 order books from Cursor or Claude — npx @polyorderbooks/mcp-server with a free Starter API key.

  • Python examples

    Runnable examples for market discovery, historical prices, order books, and backtesting workflows.

  • Order book research scripts

    Reproducible measurement scripts behind the PolyOrderBooks research posts, mapped to each published figure.

  • API Quickstart

    From API-key creation to the first historical market-data request.

PolyOrderBooks API pricing — Compare Starter and 30–120-day data windows with Fast/Heavy speed add-ons, the Backtest AI add-on (+$19/mo), and the standalone Backtest AI plan ($29/mo); API limits, resolution, and historical data access.

Polymarket & prediction-market ecosystem

  • PolyMart

    Directory for discovering tools and products built around the Polymarket ecosystem.

  • Polymarket on GitHub

    Open-source SDKs, clients, and reference implementations maintained by Polymarket.