op field that identifies the operation or message type.
The optional req_id field can be used to correlate client requests with their corresponding server responses.
Client → Server
Example:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Overview of WebSocket message types and structure.
op field that identifies the operation or message type.
The optional req_id field can be used to correlate client requests with their corresponding server responses.
| Operation | Purpose |
|---|---|
auth | Authenticate using a JWT access token |
auth_api_key | Authenticate using an API key |
subscribe | Subscribe to one or more topics |
unsubscribe | Unsubscribe from one or more topics |
ping | Keep the connection alive and measure round-trip latency |
{
"op": "subscribe",
"args": ["ticker.BTC-USDCx"],
"req_id": "2"
}
| Operation | Purpose |
|---|---|
auth | Authentication result |
subscribed | Subscription confirmation |
unsubscribed | Unsubscription confirmation |
pong | Response to a ping message |
error | Error response |
event | Real-time event payload |
{
"op": "event",
"server_ts_ms": 1700000000000,
"topic": "ticker.BTC-USDCx",
"data": {}
}