Subscribe
Create a subscription to receive real-time events matching your filters.Request
Fields
| Field | Required | Description |
|---|---|---|
action | Yes | "subscribe" |
platform | Yes | "polymarket" |
version | Yes | 1 |
type | Yes | Channel: "orders", "activity", "lifecycle", "orderbook", or "oracle" |
filters | Yes | Object with exactly one key: users, token_ids, condition_ids, or market_slugs. Optionally includes status for the orders channel. |
["*"] to receive all events on that channel (wildcard subscription, Pro plan only).
Status Filter (Orders Channel)
Thestatus filter controls whether you receive pending (mempool) events, confirmed (on-chain) events, or both on the orders channel.
| Value | Behavior | Plan Required |
|---|---|---|
"confirmed" (default) | Only confirmed (mined) events | Any plan |
"all" | Both pending + confirmed events | Dev+ |
"pending" | Only pending (mempool) events | Dev+ |
status defaults to "confirmed" - fully backward compatible.
Filter Types
| Filter | Description | Example |
|---|---|---|
users | Wallet addresses | ["0x123...", "0xabc..."] |
token_ids | CLOB token IDs (orderbook only) | ["82855...", "55194..."] |
condition_ids | Market condition IDs | ["0x456...", "0x789..."] |
market_slugs | Market URL slugs | ["will-donald-trump-win-the-2024-us-presidential-election"] |
Not all filters are available on all channels. See the filter availability table for details.
The orderbook channel requires exactly one of
token_ids, condition_ids, or market_slugs. The users filter is not supported. Update (action: "update") is also not supported. Unsubscribe and resubscribe to change filters.The oracle channel supports
condition_ids and market_slugs. The users and token_ids filters are not supported.Success Response
subscription_id to update or unsubscribe later.
Examples
Subscribe to trade alerts for wallets
Track trades from specific wallet addresses:Subscribe to activity for a market
Track splits, merges, and redemptions on a specific market:Subscribe to lifecycle events
Track token registrations and market resolutions:Subscribe to pending + confirmed trades
Get early trade signals from the mempool alongside confirmed events:Wildcard subscription (Pro only)
Subscribe to all trades across Polymarket:Unsubscribe
Remove an existing subscription using its ID.Request
Response
Update Subscription
Replace the entire filter set on an existing subscription.Request
status filter on an existing orders subscription:
Response
Updating replaces the existing filters entirely. Include all items you want to track.
