Authentication
Authentication is required only when connecting to the private WebSocket endpoint. Ekiden supports two authentication methods:- JWT Access Token — recommended for authenticated user sessions.
- API Key — recommended for server-side applications, trading bots, and automated integrations.
/ws/private and before subscribing to private topics.
JWT Authentication
JWT authentication is intended for authenticated Ekiden users. Connection flow:- Connect to the private WebSocket endpoint.
- Send an
authmessage containing a valid JWT access token. - Wait for a successful authentication response.
- Subscribe to one or more private topics.
API Key Authentication
API Key authentication is intended for automated integrations and backend services. Unlike the REST API, WebSocket authentication uses a dedicated signing payload. Connection flow:- Connect to the private WebSocket endpoint.
- Generate the authentication signature.
- Send an
auth_api_keymessage. - Wait for a successful authentication response.
- Subscribe to one or more private topics.