py-clob-client
Python client for the Polymarket CLOB
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-clientuv
uv add py-clob-clientpoetry
poetry add py-clob-clientInstalling 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
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
polymarket-clientOfficial Python SDK for Polymarket that…
permissive · top 15,000 on PyPI
py-clob-client-v2Python client library for placing and managing…
permissive · top 15,000 on PyPI
py-order-utilsGenerates and cryptographically signs orders…
permissive · top 5,000 on PyPI
py-builder-relayer-clientA Python client library for submitting…
permissive · top 15,000 on PyPI
hyperliquid-python-sdkPython SDK for trading on the Hyperliquid…
permissive · top 15,000 on PyPI
pybitpybit is the official Python connector for…
permissive · top 15,000 on PyPI
ib_asyncib_async provides a Python interface to…
permissive · top 15,000 on PyPI
polygon-api-clientProvides REST and WebSocket client libraries…
permissive · top 15,000 on PyPI
dhanhqPython client library for the Dhan trading API,…
permissive · top 15,000 on PyPI
bittensor-cliCommand-line interface for managing Bittensor…
permissive · top 15,000 on PyPI