Skip to main content
Orderbook WebSocket
curl --request GET \
  --url https://synthesis.trade/api/v1/orderbook/ws \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "<string>",
  "venue": "<string>",
  "markets": [
    "12345",
    "KXBTC-25-T100000"
  ]
}
'

Body

application/json
type
string
required

WebSocket message type. Supported values: subscribe or unsubscribe.

venue
string

Optional venue filter when subscribing without explicit markets. Supported values: polymarket or kalshi.

markets
string[]

Optional market list. Maximum 5000 items. Accepts both Polymarket token IDs and Kalshi market IDs. Mixed-venue lists are supported in the same subscribe request.

Example:
["12345", "KXBTC-25-T100000"]

Response

101

WebSocket connection established