D8X
  • D8X TL;DR
    • D8X Overview
    • Onboarding
      • Pick your D8X Frontend
      • Get Funds on X Layer
      • Get Funds on zkEVM
  • Contribute & Earn
    • White-label D8X
    • Traders
    • Liquidity Providers
    • Refer Traders
    • Order Executors
    • Liquidators
    • Governors
    • D8X Trading Competition
      • Week 1: 16th March 2025
      • Week 2: 23rd March 2025
      • Week 3: 30th of March 2025
      • Week 4: 6th of April
      • Week 5: 13th of April
      • Week 6: 20th of April
  • Perpetual Contracts Guide
    • Overview
    • Order Types
    • Fee Structure
    • Profit/Loss & Position Marking
    • Liquidity Pools & Liquidity Provision
    • Liquidations
    • Oracles
  • Contracts
    • Berachain
    • Arbitrum
    • Polygon ZKEVM
  • D8X Token
    • What is $D8X?
    • Supply
    • Utility
  • Node SDK
    • Getting Started
    • Modules
      • Market Data
      • Parent Class PerpetualDataHandler
      • Traders
      • Liquidity Providers
      • Liquidators
      • Order Executors
      • White-Label Partners
    • Market data API
  • SECURITY
    • Audits
  • Contact
    • Brand assets
    • Contact us
Powered by GitBook
On this page
  • Overview
  • Trading Fees
  • API Trader Fees
  • Trader Fees When Trading via White-label Partner
  • Order Execution Fees
  • Liquidation Fees
  1. Perpetual Contracts Guide

Fee Structure

Last updated 1 year ago

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.

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:

API Trader Fees

API trader fees depend on:

  • a trader's 30 day trading volume in the entire exchange

  • a trader's $D8X Balance

Tier
30 Day USD Trade Volume (*)
and/or
$D8X Balance (**)
Fee

1

< 100,000 USD

and

< 36 $D8X

0.020%

2

≥ 100,000 USD

and

≥ 36 $D8X

0.016%

3

≥ 1,000,000 USD

and

≥ 360 $D8X

0.014%

4

≥ 5,000,000 USD

and

≥ 1800 $D8X

0.012%

5

≥ 10,000,000 USD

and

≥ 3600 $D8X

0.010%

6

≥ 25,000,000 USD

and

≥ 9000 $D8X

0.008%

7

≥ 50,000,000 USD

and

≥ 18000 $D8X

0.006%

8

≥ 100,000,000 USD

and

≥ 36000 $D8X

0.004%

9

≥ 200,000,000 USD

and

≥ 72000 $D8X

0.002%

10

≥ 300,000,000 USD

and

≥ 108000 $D8X

0%

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

Trader Fees When Trading via White-label Partner

White-label partner have a liquidity-pool-specific fee structure that depends on:

  • a white-label partner's trading volume per pool

  • a white-label partner's $D8X Balance

  • the number of liquidity lots a white-label partner bought per pool

Tier
30 Day Trade Volume in liquidity pool (USD)
and/or
$D8X Balance (**)
and/or
# lots paid by partner (***)
Fee

1

≥ 0

and

≥ 0

and

≥ 0

0.024%

1

≥ 1,000,000

and

≥ 120

and

≥ 2

0.020%

2

≥ 10,000,000

and

≥ 1,200

and

≥ 6

0.016%

3

≥ 50,000,000

and

≥ 6,000

and

≥ 19

0.014%

4

≥ 100,000,000

and

≥ 12,000

and

≥ 44

0.012%

5

≥ 250,000,000

and

≥ 30,000

and

≥ 105

0.010%

6

≥ 500,000,000

and

≥ 60,000

and

≥ 226

0.008%

7

≥ 1,000,000,000

and

≥ 120,000

and

≥ 467

0.006%

8

≥ 2,000,000,000

and

≥ 240,000

and

≥ 948

0.004%

9

≥ 3,000,000,000

and

≥ 360,000

and

≥ 1669

0.002%

10

≥ 5,000,000,000

and

≥ 600,000

and

≥ 2870

0%

(**) $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.

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.

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 liquidators. 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.

are implemented to maintain operations. The fees occur at every point of transaction when traders purchase or sell perpetual future contracts

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

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

If traders directly interact with the exchange over the API, they pay according to the .

If traders interact with the exchange over a white-label partner, they pay according to their .

(*) 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: TradeVol30t=EMA(30)t∗30TradeVol30_t = EMA(30)_t*30TradeVol30t​=EMA(30)t​∗30. The EMA implementation optimizes gas costs.

Traders that trade over a white-label partner pay fees that depend on their white-label partner's fee structure. If the 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.

(*) 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: TradeVol30t,p=EMA(30)t,p∗30TradeVol30_{t, p} = EMA(30)_{t, p}*30TradeVol30t,p​=EMA(30)t,p​∗30. The EMA implementation optimizes gas costs.

Trading fees
Order execution fees
Liquidation fees
API traders' fee structure
white-label partner's fee structure
trader's token holdings and trade volume