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 ethers@5

Quick Example

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

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

const markets = await client.getMarkets();

Source Code

LanguagePackageRepository
TypeScript@polymarket/clob-clientgithub.com/Polymarket/clob-client
Pythonpy-clob-clientgithub.com/Polymarket/py-clob-client
Rustpolymarket-client-sdkgithub.com/Polymarket/rs-clob-client
Each repository includes working examples in the /examples directory.

Builder SDKs

If you’re building an app through the Builder Program, additional signing SDKs are available:
LanguagePackageRepository
TypeScript@polymarket/builder-signing-sdkgithub.com/Polymarket/builder-signing-sdk
Pythonpy_builder_signing_sdkgithub.com/Polymarket/py-builder-signing-sdk
See Order Attribution for usage details.

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