Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt

Use this file to discover all available pages before exploring further.

Polymarket provides official open-source clients in TypeScript, Python, and Rust. All three support the full CLOB API including market data, order management, and authentication.

Installation

npm install @polymarket/clob-client-v2 viem

Quick Example

import { ClobClient } from "@polymarket/clob-client-v2";

const client = new ClobClient({
  host: "https://clob.polymarket.com",
  chain: 137,
  signer,
  creds: apiCreds,
});

const markets = await client.getMarkets();

Source Code

LanguagePackageRepository
TypeScript@polymarket/clob-client-v2github.com/Polymarket/clob-client-v2
Pythonpy-clob-client-v2github.com/Polymarket/py-clob-client-v2
Rustpolymarket_client_sdk_v2github.com/Polymarket/rs-clob-client-v2
Each repository includes working examples in the /examples directory.

Relayer SDK

For gasless transactions, the relayer client handles deposit wallet creation and signed wallet batches for new API users. Existing Safe and Proxy wallet flows remain supported.
LanguagePackageRepository
TypeScript@polymarket/builder-relayer-clientgithub.com/Polymarket/builder-relayer-client
Pythonpy-builder-relayer-clientgithub.com/Polymarket/py-builder-relayer-client

Next Steps

Quickstart

Set up your client and place your first order.

Authentication

Understand L1/L2 auth and API credentials.