polymarket-client
Official Python client for Polymarket
Decision gist · record as of 2026-08-14
Yes. The SDK is actively maintained (released 1 day ago), has no known vulnerabilities, and offers low installation friction. It is the official client for Polymarket, making it the natural choice for Python developers building on the platform. The main caveat is that 0.x versioning means breaking changes are possible in minor releases, and Perps APIs are explicitly experimental—suitable for production use of core trading workflows but warrant caution if relying on newer features.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later.
- Authenticated workflows require a Polymarket private key or builder API key.
- Low friction install with a pure-Python wheel distribution.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no significant restrictions on use, modification, or distribution. Suitable for commercial and private projects without copyleft obligations.
last release 2026-08-13 (1 days) · last repo commit 2026-08-14 · 100 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 77,458 downloads/mo, #14,520 on PyPI
Alternatives
Verify before relying
from polymarket import PublicClient, Market
with PublicClient() as client:
market: Market = client.get_market(
url="https://polymarket.com/event/example-market"
)- Whether the SDK's experimental Perps APIs are stable enough for production use despite the breaking-change caveat on 0.x releases
- Real-world latency and throughput characteristics for batch position merges and streaming subscriptions
- Completeness of error handling and retry logic for network failures or rate limits
What it is and what it does
polymarket-client is the official Python SDK for Polymarket, a prediction market platform. It provides both synchronous and asynchronous clients to interact with Polymarket's API, supporting workflows from simple market data queries to authenticated trading and wallet operations. The SDK abstracts away the complexity of HTTP requests, web3 signing, and session management, offering a coherent interface for developers building on Polymarket.
The package is built on standard web3 libraries (eth-abi, eth-account, eth-utils) for cryptographic operations and httpx/websockets for network I/O. It supports batch operations like merging multiple market or combo positions, and includes both public (unauthenticated) and authenticated client modes. The SDK is in beta (0.x versioning) and explicitly marks Perps APIs as experimental, meaning breaking changes are possible in minor releases, though the maintainers aim to provide deprecation paths.
Use it for
- Fetch real-time market data and order books from Polymarket without authentication for public analysis or dashboards
- Build automated trading bots that place orders, manage positions, and monitor account state using authenticated client workflows
- Batch merge multiple market positions by condition ID, market ID, or position ID to consolidate holdings
- Stream live market updates and position changes using async client subscriptions for reactive applications
- Integrate Polymarket trading into larger Python applications that already use web3 libraries like eth-account
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The SDK is actively maintained (released 1 day ago), has no known vulnerabilities, and offers low installation friction. It is the official client for Polymarket, making it the natural choice for Python developers building on the platform. The main caveat is that 0.x versioning means breaking changes are possible in minor releases, and Perps APIs are explicitly experimental—suitable for production use of core trading workflows but warrant caution if relying on newer features.
Install
polymarket-client on PyPI
Before you install
Low friction install with a pure-Python wheel distribution. Actively maintained with a release just 1 day old and 100 repository stars. Dependencies are standard web3 and HTTP libraries (eth-abi, eth-account, eth-utils, httpx, pydantic, websockets) with no compiled components.
Requires Python 3.11 or later. Authenticated workflows require a Polymarket private key or builder API key.
License in practice
MIT license is permissive and imposes no significant restrictions on use, modification, or distribution. Suitable for commercial and private projects without copyleft obligations.
Quickstart
from polymarket import PublicClient, Market
with PublicClient() as client:
market: Market = client.get_market(
url="https://polymarket.com/event/example-market"
)
Verify before relying
- Whether the SDK's experimental Perps APIs are stable enough for production use despite the breaking-change caveat on 0.x releases
- Real-world latency and throughput characteristics for batch position merges and streaming subscriptions
- Completeness of error handling and retry logic for network failures or rate limits
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packageseth-abieth-accounteth-utilshttpxmsgpackpydanticwebsockets |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 77,458 / month, #14,520 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Typing :: Typed |
Evidence: polymarket_client-0.6.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “prediction market trading sdk”
- polymarket-clientOfficial Python SDK for Polymarket that provides a unified interface…
- py-clob-clientPython client library for trading on Polymarket's Central Limit Order…
- py-clob-client-v2Python client library for placing and managing orders on Polymarket's…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also py-builder-relayer-client · py-clob-client · py-clob-client-v2 · snaptrade-python-sdk · py-builder-signing-sdk · py-order-utils · hyperliquid-python-sdk · cdp-sdk · kiteconnect · python-binance