Home / Guides / Polymarket Python and the official SDK

Guide · updated 2026-11-25

Polymarket Python and the official SDK

The current Python package is polymarket-client. It ships async and sync clients. The older py-clob-client package is V1-only.

Polymarket’s Python page says to install polymarket-client and import AsyncPublicClient from polymarket.

Public clients read public data. Secure clients add trading and account calls. Each exists in async and sync form:

Public data Trading and account
Async AsyncPublicClient AsyncSecureClient
Sync PublicClient SecureClient

The quickstart lists markets with client.list_markets(closed=False) and then await pages.first_page(). List methods are paginators: you can walk every page or pull one page when you want to pace yourself. The page notes that realtime subscriptions are async-only.

The TypeScript SDK is the same idea under @polymarket/client, created with createPublicClient().

Do not start from py-clob-client. The V2 migration guide says that package, and @polymarket/clob-client, only speak V1 and no longer work against production.

Kalshi’s Python packages are a different vendor. See Kalshi Python.

Listings: Polymarket Python SDK, Polymarket TypeScript SDK.

Not trading, tax, or legal advice. Vendor figures were read from the linked pages on 2026-11-25 and can change.