Viewing: Errors

Real-time WebSocket - Errors

Handle websocket failures with a unified error envelope and reconnect policy.

WS_AUTH_OR_POLICYMARKET_DATA_ENTITLEMENT_*

Account policy or entitlement issue blocks streaming access.

Action: Do not auto-reconnect. Resolve account state first.

WS_RATE_LIMITDEPTH_WS_*_LIMIT / *_RATE_LIMITED

Connection, subscription, or action throttles were exceeded.

Action: Backoff, reduce load, and retry.

WS_INVALID_REQUESTINVALID_JSON / UNKNOWN_ACTION / SYMBOL_REQUIRED

Malformed payload or unsupported action.

Action: Fix payload and retry immediately.

Error Envelope

json
{
  "type": "error",
  "code": "ERROR_CODE",
  "message": "Human-readable message",
  "details": {}
}