skillfed

py-clob-client

Python client for the Polymarket CLOB

py-clob-client v0.34.6 703.6K downloads/30d#5,280 on PyPI1,232
Permissive license Abandoned released

What it is and what it does

py-clob-client is a Python wrapper around Polymarket's Central Limit Order Book API, enabling programmatic access to prediction market trading on the Polygon blockchain. It abstracts the HTTP communication and cryptographic signing required to authenticate orders and account queries, supporting both read-only market data retrieval (prices, order books, markets) and authenticated trading operations (placing limit and market orders, canceling orders, viewing trade history).

The library handles wallet authentication through private keys, with support for different signature types (standard EOA, email/Magic wallets, and proxy contracts). It depends on eth-account, eth-utils, and related Ethereum signing libraries to manage key material and order signatures. The package requires Python 3.9.10 or later and is designed for developers building trading bots, market analysis tools, or direct Polymarket integrations on Polygon.

Use it for:

  • Build automated trading bots that monitor prices and execute limit or market orders on Polymarket prediction markets
  • Fetch real-time order book and midpoint price data for market analysis or research without authentication
  • Manage open orders programmatically—cancel individual orders or clear all positions in a single call
  • Retrieve personal trade history and last executed prices for a specific token to track performance
  • Integrate Polymarket trading into a larger application or service running on Polygon chain

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python client library for trading on Polymarket's Central Limit Order Book (CLOB), supporting read-only market data access, order placement, and account management via the Polymarket API.

No. The repository is archived and abandoned (last commit 2026-05-25, no maintenance expected). While the package itself has low install friction and no known vulnerabilities, the lack of active maintenance means bug fixes, API compatibility updates, and support are unavailable. Use only if you are confident the Polymarket CLOB API remains stable and compatible with version 0.34.6, and you can maintain your own fork if needed.

Install

py-clob-client on PyPI

pip

pip install py-clob-client

uv

uv add py-clob-client

poetry

poetry add py-clob-client

Installing py-clob-client

Before you install

Low install friction with a pure Python wheel distribution. Repository is archived and marked abandoned as of the last commit on 2026-05-25, so maintenance and bug fixes are not expected going forward.

License in practice

Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.

Quickstart

pip install py-clob-client

from py_clob_client.client import ClobClient

client = ClobClient("https://clob.polymarket.com")
ok = client.get_ok()
print(ok)

Requires Python 3.9.10 or later. Trading operations require a private key and funds on Polymarket; read-only operations do not.

Verify before relying

  • Whether the abandoned repository status affects API stability or Polymarket's continued support for the endpoint
  • Current state of Polymarket's CLOB service and whether it remains operational
  • Compatibility of the client with recent Polymarket API changes since the last release

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.9.10)
Install friction low — pure-Python wheel
Runtime dependencies 7 — eth-account, eth-utils, poly_eip712_structs, py-order-utils, python-dotenv, py-builder-signing-sdk, httpx
Maintenance abandoned — 176 days since the last release
Last repo commit (repository archived)
First released
Downloads 703,572/month — #5,280 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: py_clob_client-0.34.6-py3-none-any.whl

License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

polymarket trading clientclob order book apiprediction market tradingpolymarket python sdkethereum wallet order managementpolygon chain tradingmarket order execution
blockchain-tradingpolymarketorder-management

More Internet packages