General WSS information
Base Address
production environment: wss://f-ws.azverse.net/ws/account/futures
production environment: wss://f-ws.azverse.xyz/ws/account/futures
sandbox environment: wss://f-ws.az-qa2.xyz/ws/account/futures
Request Headers
The request header of the compression extension protocol must be added.
Sec-Websocket-Extensions:permessage-deflate
Protocol
-
Authentication is at handshake time (fail-closed). Carry a valid, unexpired login token on the WebSocket upgrade request in any one of: query string (
?token=<token>or?zToken=<token>), cookie (token/zToken), orAuthorization: Bearer <token>header. If the token is missing / invalid / expired, the server rejects the handshake with HTTP 401 and closes the connection (there is no in-band error frame). -
Subscribe with plain channel names (no
@listenKeysuffix):{"method":"SUBSCRIBE","params":["order"],"id":"test1"}; the ack is{"id":"test1","code":200,"msg":"success"}. -
Push frames are flat and carry a
chfield (the channel name), the payloaddata, and a server millisecond timestampts:{"ch":"order","data":{...},"ts":1731231231000}. -
Heartbeat is the plain text
ping->pong; the connection is disconnected after 60s reader idle. -
User-related data is pushed after a successful subscription.