MDS is public and does not require authentication.
Trade requires an API key and a connection must authenticate within 1 minute of connecting.If you want the Trade WebSocket session to operate on a subaccount, include account_id in the auth payload. When omitted, the connection uses the primary account.
To access private data or place orders, you must connect to trade.qfex.com and authenticate. The following examples show how to connect, authenticate using HMAC-SHA256, and maintain the connection.
Authentication is required for the trade.qfex.com endpoint.
Connect: Include your public API key as a query parameter:
wss://trade.qfex.com?api_key=YOUR_PUBLIC_KEY
Authenticate: Send an authentication message signed with your secret key within 1 minute.
You can use either an HMAC-SHA256 signature (recommended) or a valid JWT token.
For full details on the authentication payload and parameters, see the Authenticate documentation.