Skip to main content
QFEX provides 2 endpoints for websocket: Market Data 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.

Getting Started

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

Authentication is required for the trade.qfex.com endpoint.
  1. Connect: Include your public API key as a query parameter:
  2. 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.