> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qfex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Builder Codes

> Create a builder code, share it with traders, and earn builder rewards

<Info>
  Builder codes are not yet released. This page will be updated once this is
  available.
</Info>

Builder codes let integrators and partners earn a share of trading fees when users trade through their application. Fills attributed to a builder code generate **builder rewards** for the code owner.

This is separate from the [referral program](/qfex/referral). A referral code is used at signup. A builder code is used when a user trades through an integration.

## How it works

1. You create one builder code for your user. QFEX generates the code as a UUID.
2. You configure two fee shares in basis points (1 bp = 0.01%):
   * QFEX's share of the trading fee must be at least **50%**.
   * The builder's share can be set up to **50%**.
   * The two shares do not need to add up to 100%.
3. A trader uses your builder code when trading through your application.
4. Orders placed through that attributed connection generate builder rewards according to your configured share. The trader still pays the full trading fee.

If the code is missing or invalid, the trader pays the full fee and nobody receives builder rewards.

## Create a builder code

Each user may create **one** builder code.

1. Sign in at [qfex.com](https://qfex.com) and open your profile.
2. Open **Developer Settings**.
3. Use the **Builder code** section to create your code and set the QFEX and builder fee shares.

QFEX generates the UUID. Copy it and share it with traders, or embed it in your application.

## Builder rewards

The trader continues to pay the normal trading fee. The configured builder share is credited to the builder-code owner's account as builder rewards.

For example, if QFEX's share is 50% and the builder share is 30%, QFEX keeps 50% of the trading fee, the builder receives 30% as builder rewards, and the remaining 20% is not paid out as builder rewards.

## For developers

To create or retrieve builder codes over REST, attach them to Trade WebSocket sessions, or read builder rewards programmatically, see the [Builder Codes API reference](/api-reference/builder-codes).
