Connection
Protocol
The WebSocket sends live updates. It does not store a complete history that clients can replay. It supports exactly three client methods:subscribeunsubscribeping
subscriptionResponse, pong, or error.
Subscribe
type field chooses the subscription. This page calls each subscription type a topic:
- User-scoped topics require the actual user address, not an approved API-wallet address.
activeAssetDataadditionally requirescoin.- Global topics omit
user.
Unsubscribe
Send the same subscription fields used to subscribe:subscriptionResponse with data.method: "unsubscribe".
First Message After Subscribing
A snapshot is a point-in-time copy of the topic’s current data. Not every topic sends one:
Do not treat silence after the confirmation as an empty result: a snapshot read can fail after
the subscription is acknowledged. Use the corresponding HTTP endpoint to recover current data.
The order snapshot also retains terminal Polymarket orders with provisional matched fills until
their settlement completes.
Available Topics
Topics for one user
- Fill Updates
- Account Summary
- Order Rejections
- Order Updates
- Market Trading Updates
- User Transactions
- TWAP Updates
Global topics
Global topics are subscriptions without auser field.
Global Subscription Messages
New Blocks
Subscribe:New Transactions
Subscribe:Connection Management
Notional measures idle time from messages received from the client. Updates sent by the server do not keep an otherwise silent connection alive. Send a JSON ping about every 30 seconds:1000 and
reason Idle timeout.
After a Disconnect
Subscriptions apply only to the current socket and disappear when it closes. The WebSocket cannot replay every missed message. After reconnecting:- Recreate every required subscription.
- Call the corresponding HTTP endpoint to check the current data.
- Match later WebSocket messages using the order ID, transaction ID, or other field documented by that topic.
