Skip to main content
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 ethers@5

Quick Example

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

const client = new ClobClient({
  host: "https://api.copilot.markets/clob",
  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-sdkgithub.com/Polymarket/rs-clob-client-v2
Each repository includes working examples in the /examples directory.

Relayer SDK

For gasless transactions using proxy wallets, the relayer client handles submitting transactions through Polymarket’s relayer:
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.