# Fee Structure

<figure><picture><source srcset="/files/WaqGmDsJ76CHAQ6majBb" media="(prefers-color-scheme: dark)"><img src="/files/KwpOuXOKmcUJPw3rq4TJ" alt=""></picture><figcaption></figcaption></figure>

## Overview

D8X applies three types of fees: trading fees, conditional order fees and liquidation fees. D8X offers white-label partners and traders options to reduce some of the fees by increasing their trade volume and by holding $D8X at the address involved in the trade.&#x20;

* [Trading fees](#trading-fees) are implemented to maintain operations. The fees occur at every point of transaction when traders purchase or sell perpetual future contracts
* [Order execution fees](#order-execution-fees) are small fixed amounts that are paid to the order executor. This fee is set so that it slightly overcompensates the gas fees that the order executor pays to execute the order
* [Liquidation fees](#liquidation-fees) are fees that occur when a trader is liquidated. Liquidations require an additional fee, because they are executed through a third party that is remunerated for their liquidation service

## Trading Fees

Trading fees occur at every point of transaction when traders purchase or sell perpetual future contracts. D8X offers separate fee structures for *API traders* and *white-label partners:*

* If traders directly interact with the exchange over the API, they pay according to the [API traders' fee structure](#api-trader-fees).
* If traders interact with the exchange over a white-label partner, they pay according to their [white-label partner's fee structure](#trader-fees-when-trading-via-white-label-partner).&#x20;

### API Trader Fees

API trader fees depend on:

* a trader's 30 day trading volume in the entire exchange &#x20;
* a trader's $D8X Balance&#x20;

<table><thead><tr><th width="78" align="right">Tier</th><th width="260" align="right">30 Day USD Trade Volume (*)</th><th width="86" align="right">and/or</th><th width="175" align="right">$D8X Balance (**)</th><th width="144" align="right">Fee</th></tr></thead><tbody><tr><td align="right">1</td><td align="right">&#x3C; 100,000 USD</td><td align="right">and</td><td align="right">&#x3C; 36 $D8X</td><td align="right">0.020%</td></tr><tr><td align="right">2</td><td align="right">≥ 100,000 USD</td><td align="right">and</td><td align="right">≥ 36 $D8X</td><td align="right">0.016%</td></tr><tr><td align="right">3</td><td align="right">≥ 1,000,000 USD</td><td align="right">and</td><td align="right">≥ 360 $D8X</td><td align="right">0.014%</td></tr><tr><td align="right">4</td><td align="right">≥ 5,000,000 USD</td><td align="right">and</td><td align="right">≥ 1800 $D8X</td><td align="right">0.012%</td></tr><tr><td align="right">5</td><td align="right">≥ 10,000,000 USD</td><td align="right">and</td><td align="right">≥ 3600 $D8X</td><td align="right">0.010%</td></tr><tr><td align="right">6</td><td align="right">≥ 25,000,000 USD</td><td align="right">and</td><td align="right">≥ 9000 $D8X</td><td align="right">0.008%</td></tr><tr><td align="right">7</td><td align="right">≥ 50,000,000 USD</td><td align="right">and</td><td align="right">≥ 18000 $D8X</td><td align="right">0.006%</td></tr><tr><td align="right">8</td><td align="right">≥ 100,000,000 USD</td><td align="right">and</td><td align="right">≥ 36000 $D8X</td><td align="right">0.004%</td></tr><tr><td align="right">9</td><td align="right">≥ 200,000,000 USD</td><td align="right">and</td><td align="right">≥ 72000 $D8X</td><td align="right">0.002%</td></tr><tr><td align="right">10</td><td align="right">≥ 300,000,000 USD</td><td align="right">and</td><td align="right">≥ 108000 $D8X</td><td align="right">0%</td></tr></tbody></table>

(\*) 30 Day volume of a trader at time *t* is computed as a function of the 30 Day Exponential Moving Average (EMA) of the trader's trade volume over the entire exchange: $$TradeVol30\_t = EMA(30)\_t\*30$$. The EMA implementation optimizes gas costs.

(\*\*) $D8X balance relevant for the fee is the one in the trader's wallet that executes the trade at the moment the trade occurs.&#x20;

### Trader Fees When Trading via White-label Partner

Traders that trade over a white-label partner pay fees that depend on their white-label partner's fee structure. If the [trader's token holdings and trade volume](#api-trader-fees) lead to a lower fee than the fee implied by the white-label partner's credentials, the trader pays the lower fee. On top of that, traders pay an additional white-label partner charge, if a white-label partner decides to levy such a charge.

White-label partner have a liquidity-pool-specific fee structure that depends on:&#x20;

* a white-label partner's trading volume per pool
* a white-label partner's $D8X Balance&#x20;
* the number of liquidity lots a white-label partner bought per pool

<table data-full-width="false"><thead><tr><th width="78">Tier</th><th width="184">30 Day Trade Volume in liquidity pool (USD)</th><th width="76">and/or</th><th width="112">$D8X Balance (**)</th><th width="68">and/or</th><th width="97"># lots paid by partner (***)</th><th>Fee</th></tr></thead><tbody><tr><td>1</td><td>≥ 0</td><td>and</td><td>≥ 0</td><td>and</td><td>≥ 0</td><td>0.024%</td></tr><tr><td>1</td><td>≥ 1,000,000</td><td>and</td><td>≥ 120</td><td>and</td><td>≥ 2</td><td>0.020%</td></tr><tr><td>2</td><td>≥ 10,000,000</td><td>and</td><td>≥ 1,200</td><td>and</td><td>≥ 6</td><td>0.016%</td></tr><tr><td>3</td><td>≥ 50,000,000</td><td>and</td><td>≥ 6,000</td><td>and</td><td>≥ 19</td><td>0.014%</td></tr><tr><td>4</td><td>≥ 100,000,000</td><td>and</td><td>≥ 12,000</td><td>and</td><td>≥ 44</td><td>0.012%</td></tr><tr><td>5</td><td>≥ 250,000,000</td><td>and</td><td>≥ 30,000</td><td>and</td><td>≥ 105</td><td>0.010%</td></tr><tr><td>6</td><td>≥ 500,000,000</td><td>and</td><td>≥ 60,000</td><td>and</td><td>≥ 226</td><td>0.008%</td></tr><tr><td>7</td><td>≥ 1,000,000,000</td><td>and</td><td>≥ 120,000</td><td>and</td><td>≥ 467</td><td>0.006%</td></tr><tr><td>8</td><td>≥ 2,000,000,000</td><td>and</td><td>≥ 240,000</td><td>and</td><td>≥ 948</td><td>0.004%</td></tr><tr><td>9</td><td>≥ 3,000,000,000</td><td>and</td><td>≥ 360,000</td><td>and</td><td>≥ 1669</td><td>0.002%</td></tr><tr><td>10</td><td>≥ 5,000,000,000</td><td>and</td><td>≥ 600,000</td><td>and</td><td>≥ 2870</td><td>0%</td></tr></tbody></table>

(\*) 30 Day volume of a white-label partner at time *t* is computed as a function of the 30 Day Exponential Moving Average (EMA) of the trade volume executed over the white-label partner for perpetuals that share a given liquidity pool *p*: $$TradeVol30\_{t, p} = EMA(30)\_{t, p}\*30$$. The EMA implementation optimizes gas costs.&#x20;

(\*\*) $D8X balance relevant for the fee is the one in the white-label partner's wallet that figures in the brokerage address of the executed trade at the moment the trade occurs.

(\*\*\*) To become a white-label partner for perpetuals in a given liquidity pool *p*, white-label partner have to buy at least one liquidity lot for pool *p*, to be paid in collateral currency of the pool.&#x20;

#### Liquidity lot prices per pool

Lot payments are used by the protocol as protocol-owned liquidity for the pool. Typically lots are sized around $100, for example in the Testnet deployment the mockUSD-pool uses 100 tokens as the lot size, the pragMATIC pool 160 MATIC.&#x20;

## Order Execution Fees

Orders are executed by a third part, once the AMM prices meet the order conditions. The executor earns a fee for their service, paid for by the trader.

Conditional orders fees are defined per perpetual and are in the order of 1-10 cents (USD) per trade, charged in collateral currency.

## Liquidation Fees

When a position needs to be liquidated, a liquidation fee is subtracted from the trader margin. The liquidation fee is 1% of the position size that is to be liquidated for digital assets, and 0.5% for forex.

Liquidation of positions with margins below the maintenance margin are executed by third parties, termed *liquidator*s. To compensate the liquidator for his work, liquidators earn 50% of the total liquidation fee. The other 50% of the fee is going to the exchange.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://d8x.gitbook.io/d8x/perpetual-contracts-guide/fee-structure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
