API Guide

The Polymarket API: What Traders Actually Need to Know

Jay MalaviaUpdated November 24, 2026

The short answer

The Polymarket API is a Central Limit Order Book (CLOB) interface for programmatic trading on the world's largest prediction market. It covers market data, order execution, and positions over REST, with WebSocket streams for real-time data. Official SDKs exist in TypeScript, Python, and Rust. Kairos connects to Polymarket, Kalshi, and Predict.fun in one terminal without a custom build.

Polymarket API at a Glance

Interface typeCLOB-based REST API plus WebSocket streams
Official documentationdocs.polymarket.com
TypeScript SDK@polymarket/clob-client-v2
Python SDKpy_clob_client_v2
Rust SDKpolymarket_client_sdk_v2
AuthenticationCredentials-based wallet signing
Exchange coveragePolymarket only
Builder programYes, rewards volume generated via API
Terminal alternativeKairos (Polymarket, Kalshi, Predict.fun)

What Does the Polymarket API Cover?

The Polymarket API covers market data, order execution, and positions through its Central Limit Order Book (CLOB). REST endpoints return live prices, contract details, and order book depth, and let you submit and cancel orders. WebSocket streams push real-time updates. Official SDKs exist in TypeScript, Python, and Rust.

The CLOB, or Central Limit Order Book, is the architecture at the center of how Polymarket works. The API exposes it directly. Market data endpoints return live prices, contract details, and order book depth. Our Polymarket order book guide shows how to read that depth before placing an order. These are the same prices traders see on the web app, delivered as structured data instead of browser pixels.

Order execution lets you submit, modify, and cancel orders programmatically. An order goes in with a contract identifier, a side, a price, and a size. The CLOB queues it in the book and returns a fill when it executes. This is what systematic trading on Polymarket requires: direct access to the order book, at code speed.

Portfolio management covers open positions, active orders, and account balance. It is the accounting layer for managing exposure without a browser tab.

The WebSocket interface handles real-time streaming. You maintain a persistent connection and receive order book updates as they arrive, instead of polling REST endpoints on a loop. For active trading, that distinction matters. Polling adds latency. A persistent connection removes it.

Official SDKs exist in three languages: TypeScript (@polymarket/clob-client-v2), Python (py_clob_client_v2), and Rust (polymarket_client_sdk_v2). Developer documentation lives at docs.polymarket.com. The API is the infrastructure. Builders use it for automated market makers, cross-venue arbitrage systems, and signal-driven strategies. The Polymarket bot guide explains how each type works.

What are the Polymarket API base URLs?

Polymarket runs four separate APIs and four WebSocket feeds. Each has its own base URL and its own rate limits.

  • Gamma API (market discovery and metadata): https://gamma-api.polymarket.com
  • CLOB API (prices, order books, orders): https://clob.polymarket.com
  • Data API (positions, trades, activity; now v2): https://data-api.polymarket.com
  • Relayer (gasless transactions): https://relayer-v2.polymarket.com
  • CLOB WebSocket: wss://ws-subscriptions-clob.polymarket.com/ws/market and /ws/user
  • Real-time data: wss://ws-live-data.polymarket.com; sports: wss://sports-api.polymarket.com/ws

What are the Polymarket API rate limits?

Polymarket API rate limits come in two layers. The first is per IP, enforced by Cloudflare over 10-second sliding windows. Going over throttles requests (they are delayed or queued) rather than rejecting them.

The second layer is per signing wallet, based on 30-day volume. It has run in warning mode since July 24, 2026, with enforcement still to be announced. Over the limit it returns HTTP 429 with a Retry-After header. Check your tier with GET /v1/user/rate-limit-tier.

  • CLOB general: 9,000 requests per 10s; /book, /price, and /midpoint: 1,500 per 10s each
  • POST /order: 5,000 per 10s burst, 120,000 per 10 minutes sustained
  • POST /orders (batch, up to 15 orders): 2,000 per 10s
  • Gamma general: 4,000 per 10s; /markets: 300; /events: 500
  • Data API v2 general: 800 per 10s
  • Per-wallet order tiers: Standard 40 orders per second, Silver ($100k+ volume) 200, Gold ($500k+) 400, Elite ($10M+) 600

How does Polymarket API authentication work?

Polymarket uses two levels. L1 is an EIP-712 signature from your wallet, used once to create or derive API credentials (POST /auth/api-key or GET /auth/derive-api-key). L2 signs every request with HMAC-SHA256 using the apiKey, secret, and passphrase that L1 returns.

L2 requests send POLY_ADDRESS, POLY_SIGNATURE, POLY_TIMESTAMP, POLY_API_KEY, and POLY_PASSPHRASE. Each order also carries a wallet signature. Wallets deployed on or after May 4, 2026 default to the Deposit Wallet type (signature type 3); proxy and Safe wallets are legacy.

Which Polymarket SDK should you use in 2026?

The current official SDKs are @polymarket/client for TypeScript and polymarket-client for Python. The older clob-client and py-clob-client packages, including their v2 versions, are legacy and being replaced. A unified Rust SDK is in development. Most tutorials still ranking on Google show the legacy packages.

Does Polymarket US have a separate API?

Yes. Polymarket US, the CFTC-regulated exchange, has its own API at https://api.polymarket.us, documented at docs.polymarket.us. It requires identity verification, then a key from polymarket.us/developer, signed with Ed25519 through the X-PM-Access-Key, X-PM-Timestamp, and X-PM-Signature headers. The general limit is 25 requests per second per IP.

The international Polymarket API is close-only for US users: you can exit positions but not open new ones. US residents trading through code should use the Polymarket US API.

How many tools are built on the Polymarket API?

More than any other venue. The Kairos tool census tracks 288 prediction market tools, verified by hand between August 27 and September 8, 2026. 240 support Polymarket, against 82 for Kalshi.

37 of those are data and API tools, and 29 of them are open source. Another 23 are trading bots, all able to place orders. Only 12 of the 37 data tools cover a second venue, which is the gap a multi-venue API fills.

What Building Against the Polymarket API Actually Requires

The documentation is solid. That is not the same as easy to build against for active trading.

Authentication on the CLOB API is credentials-based and requires wallet signing. Before any order reaches the book, you are managing credential storage, signing logic, and session state. That is infrastructure work before your trading logic starts.

A real build requires all of the following.

  • Credential setup and secure key management, including wallet signing integration
  • WebSocket connection handling and reconnection logic for dropped sessions
  • Order book parsing and your own position state tracking
  • Tick size configuration per market
  • Logic for order types not natively exposed as ready-to-trade features
  • Ongoing maintenance as Polymarket ships API updates

The Multi-Venue Problem

The Polymarket API covers Polymarket only. If you also trade on Kalshi, you are building a second integration, normalizing two different data formats, and managing two separate authentication schemes.

Prediction market liquidity is split across venues. Kalshi and Polymarket often list markets on the same events. The best price on a given contract at any moment might be on either venue. A Polymarket-only integration means you miss that comparison on every single trade.

Community developers have built around this gap. Third-party analytics tools and data aggregators exist specifically because the raw APIs require significant normalization work before they are useful for multi-venue analysis. Those tools exist because the problem is real and the engineering cost of solving it yourself is not trivial. See the Polymarket analytics guide for a breakdown of the best options. For traders also active on Predict.fun alongside Polymarket, the Predict.fun farming guide covers the cross-venue yield strategies worth knowing.

Solving the data layer is step one. You still need the execution layer to act on what you find, at the speed that actually matters.

Build for one venue and you are already behind.

Teams building products or trading systems that need every venue through one integration can skip the normalization work entirely: the Kairos enterprise prediction market API unifies execution, market data, and on-chain settlement across Polymarket, Kalshi, Predict.fun, and more behind one set of credentials.

For a focused example of the analytics layer built above public market data, the Hashdive review covers its market screens, wallet analysis, and execution boundary.

Institutional teams comparing a custom API build with outsourced execution and risk infrastructure can use the River Markets review to see what that model offers.

Is there one API for Polymarket and Kalshi?

Yes. The Kairos Enterprise API is one REST and WebSocket integration for market data and order execution across Polymarket, Kalshi, Predict.fun, and Hyperliquid.

It normalises market IDs and data formats across venues, supports GTC, GTD, FOK, FAK, and IOC orders with post-only and slippage caps, and stays self-custodial: Kairos signs within policy, or builds an EIP-712 payload you sign yourself.

Trading desks, apps, and quant teams use it to add Polymarket without maintaining a second, third, and fourth integration.

The Terminal Route

Kairos is a trading terminal built specifically for prediction markets. It connects to Polymarket, Kalshi, and Predict.fun in one interface, with a unified order book, global best bid and best ask across all three venues, and sub-second data.

The terminal handles what a raw API build requires you to ship yourself. Low-latency execution. Advanced order types. Aggregated liquidity. Real-time data without polling logic. No servers to run. No integration to maintain.

Traders who build their own Polymarket API clients often arrive at the same realization: getting the data is the tractable part. Building and maintaining the execution layer that makes the data usable at real trading speeds is where the engineering hours go.

Kairos is that layer. Backed by a16z. Built for traders who want institutional-grade tooling without the engineering team behind it.

For the full venue comparison, read Kalshi vs. Polymarket. For context on the Kalshi side of the book, read the Kalshi API guide. For a side-by-side of the best terminals, see best prediction market terminals.

The Polymarket API is the right tool for systematic strategies that need full code-level control. For every other trader, Kairos is the faster path to the same execution quality.

Trade Polymarket like a pro. On Kairos.

For how this compares to Kalshi, Novig and the venues with no public API at all, see the API comparison across every prediction market app.

Anyone moving off Fireplace will end up here, because programmatic access is the piece a closing terminal takes with it.

Developers comparing a single-venue build with normalized access across exchanges can use the prediction market API guide to choose between native and unified infrastructure. For trading both venues through one credentialed surface, the Kairos API docs cover authentication and order types.

Polymarket MCP Servers for AI Agents

A Polymarket MCP server translates Polymarket API functions into tools an AI client can discover and call. Polymarket owns the APIs underneath: the Gamma API, the CLOB API, the Data API, and WebSocket feeds. The MCP servers available today are community projects, and none reviewed by Kairos is presented as an official Polymarket product.

The pab1it0 server is built for research. Its tools cover markets, events, keyword search, order books, recent trades, and market history, and traders can enable only the tools they need. The Caiovicentino server publishes 45 tools across discovery, analysis, trading, portfolio management, and real-time monitoring. Its repository documents a demo mode with trading disabled, configurable order and exposure limits, and an order confirmation flow. Those are maintainer claims, so inspect the current code and tests first.

An agent connects through an MCP-compatible client such as Claude, with the server running inside infrastructure the trader controls. Begin with read-only tools. Keep wallet keys and API secrets outside prompts and model context, restrict the enabled tool set, and require confirmation for every order action. The MCP tools specification recommends a human who can deny invocations.

A larger tool count does not create a trading edge. A venue-specific server covers only the APIs its maintainer implemented, so the multi-venue problem above still applies. Kairos covers Polymarket, Kalshi, and Predict.fun from one terminal.

Frequently asked questions

Polymarket does not charge a separate fee to access its API. Developers trade through it under the same terms as the web interface. The platform also offers a Builder Program that rewards volume generated through the API.
Polymarket publishes official CLOB client SDKs in three languages: TypeScript (@polymarket/clob-client-v2), Python (py_clob_client_v2), and Rust (polymarket_client_sdk_v2). The underlying REST and WebSocket interfaces work from any language capable of making HTTP requests.
Developer documentation is at docs.polymarket.com. The CLOB API uses credentials-based authentication with wallet signing. Polymarket also publishes a status page at status.polymarket.com to check API uptime and service health.
No. The Polymarket API covers Polymarket only. Kalshi has its own separate API. Traders who want access to both venues without building two integrations use Kairos, which connects to Polymarket, Kalshi, and Predict.fun in one terminal.
CLOB stands for Central Limit Order Book. It is the matching engine architecture used by most professional trading venues. The Polymarket CLOB API gives developers direct access to the order book: submitting limit orders with a price and size, reading depth data, and receiving fills when orders execute.
The Polymarket API is a developer interface for programmatic exchange access. It requires authentication, coding, and ongoing maintenance. Kairos is a trading terminal that connects to Polymarket, Kalshi, and Predict.fun with sub-second data and advanced order types built in. The API gives full code-level control. Kairos gives the same execution quality without the custom integration.
Yes. Community-built Polymarket MCP servers can connect compatible AI clients to market data and, in some implementations, trading tools. Polymarket publishes the APIs they use, not the servers. Review the source, begin with read-only access, and keep order actions behind explicit human confirmation.
The CLOB API allows 9,000 requests per 10 seconds in general and 1,500 per 10 seconds on /book and /price. POST /order allows 5,000 per 10 seconds. Over the IP limit, Polymarket throttles requests instead of rejecting them.
Yes. Polymarket US has a separate API at api.polymarket.us with Ed25519 keys issued after identity verification, and a limit of 25 requests per second per IP.

Building on Kalshi and Polymarket?

One REST and WebSocket API for market data and execution across Kalshi, Polymarket, and more. Built for trading desks, apps, and quant teams.

See the Enterprise API

Related reading