Skip to main content
POST
Create Builder Code

Authorizations

x-qfex-hmac-signature
string
header
required

HMAC-SHA256 signature (hex-encoded).

x-qfex-nonce
string
header
required

Unique request nonce (hex encoded, max 100 characters).

x-qfex-public-key
string
header
required

QFEX API Authentication requires these headers:

  • x-qfex-public-key: Your public API key
  • x-qfex-hmac-signature: HMAC signature of the request (hex encoded)
  • x-qfex-nonce: Unique nonce for the request (hex encoded, max 100 characters)
  • x-qfex-timestamp: Unix timestamp of the request

These four are required. Optionally send x-qfex-requested-account-id (UUID) to act as a subaccount; see Signature Generation below.

Signature Generation:

  1. Generate a cryptographically secure random nonce (hex encoded, max 100 characters) and capture the current Unix timestamp.
  2. Build the string ${nonce}:${unix_ts} and compute an HMAC-SHA256 using your secret key.
  3. Hex-encode the HMAC result to get the signature.
  4. Send the required auth headers below. The nonce must be unique within a 15 minute window.

Important: The signature itself must be hex-encoded before being sent in the x-qfex-hmac-signature header.

Optional header: x-qfex-requested-account-id (UUID) selects a subaccount; omit it to use the primary account.

x-qfex-timestamp
string
header
required

Unix timestamp (seconds since epoch).

Body

application/json
builder_fee_share_bps
integer
required

Builder share of the trading fee in basis points. Must be >= 0. qfex_fee_share_bps + builder_fee_share_bps must be <= 10000.

Required range: 0 <= x <= 5000
Example:

3000

qfex_fee_share_bps
integer
required

QFEX share of the trading fee in basis points. Minimum 5000 (50%).

Required range: 5000 <= x <= 10000
Example:

5000

Response

Created

builder_code
string<uuid>
required

Server-generated UUID to send as params.builder_code on Trade WebSocket auth.

builder_fee_share_bps
integer
required

Builder share of the trading fee in basis points.

Required range: 0 <= x <= 5000
builder_fee_share_percent
number<double>
required

Builder share of the trading fee as a percent (bps / 100).

created_at
string<date-time>
required
qfex_fee_share_bps
integer
required

QFEX share of the trading fee in basis points. Minimum 5000 (50%).

Required range: 5000 <= x <= 10000
qfex_fee_share_percent
number<double>
required

QFEX share of the trading fee as a percent (bps / 100).

updated_at
string<date-time>
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://api.qfex.com/schemas/BuilderCodeDetails.json"