Files
PolymarketDocumentation/docs/api-reference/clients-sdks.md
T
2026-05-04 14:56:14 +02:00

3.4 KiB

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.

Clients & SDKs

Official open-source libraries for interacting with Polymarket

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

```bash TypeScript theme={null} npm install @polymarket/clob-client-v2 viem ```
pip install py-clob-client-v2
cargo add polymarket_client_sdk_v2 --features clob

Quick Example

```typescript TypeScript theme={null} 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();


```python Python theme={null}
from py_clob_client_v2 import ClobClient

client = ClobClient(
    "https://clob.polymarket.com",
    key=private_key,
    chain_id=137,
    creds=api_creds,
)

markets = client.get_markets()
use polymarket_client_sdk_v2::clob::{Client, Config};

let client = Client::new("https://clob.polymarket.com", Config::default())?
    .authentication_builder(&signer)
    .authenticate()
    .await?;

let markets = client.markets(None).await?;

Source Code

Language Package Repository
TypeScript @polymarket/clob-client-v2 github.com/Polymarket/clob-client-v2
Python py-clob-client-v2 github.com/Polymarket/py-clob-client-v2
Rust polymarket_client_sdk_v2 github.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:

Language Package Repository
TypeScript @polymarket/builder-relayer-client github.com/Polymarket/builder-relayer-client
Python py-builder-relayer-client github.com/Polymarket/py-builder-relayer-client

Next Steps

Set up your client and place your first order. Understand L1/L2 auth and API credentials.