The Paradex WebSocket API uses JSON-RPC 2.0 for communication, which includes standardized error handling. This page explains the error format and common error codes.
When an error occurs, the WebSocket API returns an error message with the following format:
The Paradex WebSocket API uses standard JSON-RPC error codes as well as custom error codes.
Error codes from -32768 to -32000 are pre-defined errors per the JSON-RPC specification:
Other errors are specific to the Paradex WebSocket API:
Authentication errors occur when there are issues with the JWT token:
Subscription errors occur when there are issues with channel subscriptions:
Method errors occur when an invalid method is called: