API Guide

The Polymarket API: What Traders Actually Need to Know

Updated 2026-07-19

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?

Polymarket is the world's largest prediction market. Its API gives developers programmatic access to the same prices and order book its web interface uses, with the ability to act on them at machine speed.

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. 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. The question is what you build on top of it.

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.

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.

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 actionable 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.

Frequently asked questions

Is the Polymarket API free to use?

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.

What programming languages does the Polymarket API support?

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.

How do I get access to the Polymarket API?

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.

Can I use the Polymarket API to trade on Kalshi too?

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.

What is a CLOB API?

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.

What is the difference between the Polymarket API and Kairos?

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.

Trade Polymarket Like a Pro

Sub-second data. Advanced order types. Polymarket and Kalshi in one terminal. No integration to build. No server to run.

Start Trading on Kairos

More comparisons