Skip to main content
Trades WebSocket

Body

application/json
type
string
required

WebSocket message type. Supported values: subscribe or unsubscribe.

venue
string

Optional venue filter. Supported values: polymarket or kalshi. If omitted, the all-venues stream is only supported when markets is also omitted.

markets
string[]

Optional list of market IDs. Maximum 100 items. For Polymarket, use condition IDs. For Kalshi, use market IDs. Mixed-venue lists are supported when you provide the matching IDs for each venue.

Example:
offset
integer
default:0

Historical pagination offset. Historical queries return trades up to limit per venue/query shape. Live subscription is only attached when offset is 0 or omitted.

Example:

100

limit
integer
default:100

Maximum historical trades to return per query. Capped at 500.

Example:

500

Response

101 - application/json

WebSocket connection established