Polymarket · AsyncAPI Specification
Polymarket CLOB WebSocket API
Version 1.0.0
Real-time streaming feed for Polymarket's central-limit order book (CLOB). Two channels are exposed: a public market channel that streams order book snapshots, price level updates, tick size changes, and last trade prices for subscribed assets; and an authenticated user channel that streams a user's own order lifecycle and trade lifecycle events. Clients send PING every 10 seconds and expect a PONG response from the server.
Channels
/ws/market
Subscribe to one or more assets on the market channel.
Public market channel. Subscribe by sending a subscription message with a list of asset_ids (ERC-1155 token IDs for YES/NO outcomes). Streams order book snapshots, price changes, tick size changes, and last trade prices for those assets. No authentication required.
/ws/user
Subscribe to one or more markets on the user channel.
Authenticated user channel. Subscribe by sending a subscription message with API credentials (apiKey, secret, passphrase) and a list of market condition IDs. Streams the user's own order and trade lifecycle events for those markets.
Messages
MarketSubscription
Market Channel Subscription
Subscribe to market channel updates for a list of asset IDs.
UserSubscription
User Channel Subscription
Subscribe to user channel events with API credentials and a list of market condition IDs.
Book
Order Book Snapshot
Full order book snapshot for an asset.
PriceChange
Price Change
One or more price level changes within a market. A size of "0" indicates the price level has been removed from the book.
TickSizeChange
Tick Size Change
Tick size adjustment for an asset's order book.
LastTradePrice
Last Trade Price
Most recent executed trade price for an asset.
Trade
User Trade Lifecycle Event
Trade lifecycle update for the authenticated user. Status transitions from MATCHED through MINED, CONFIRMED, RETRYING, or FAILED.
Order
User Order Lifecycle Event
Order placement, update, or cancellation for the authenticated user.
Servers
wss
production
ws-subscriptions-clob.polymarket.com
Polymarket CLOB WebSocket production server.