Skip to main content
WSS
/
ws
Messages
appId
type:userPassword

App-level auth: pass appId as a query parameter on connect. Required for all connections. The appId must belong to an active app with matching allowed origins.

jwt
type:http

User-level auth: pass JWT as token query param on connect, or send { action: 'authenticate', token } mid-session. Required for user-specific events (orders, balances). Same JWT as the REST API.

Connection acknowledged
type:object

Sent immediately after successful connection. Includes userId if JWT was provided on connect.

User authenticated
type:object

Confirms successful mid-session authentication

Authenticate user mid-session
type:object

Upgrade connection to user-level auth. Uses the same JWT as the REST API. Supports re-authentication for token refresh or user switch.