Skip to content
First Access Exchange

Fees

Trading fees

Trading fees are dYdX's: a maker fee and a taker fee in ppm of each fill's notional, by fee tier, the same on every market. The tier depends on the account's trailing 30-day volume (x/stats). A negative maker fee is a rebate.

The testnet runs dYdX's genesis schedule (/dydxprotocol/v4/feetiers/perpetual_fee_params):

Tier30-day volume at leastShare of total volumeMaker shareMakerTaker
1———−0.011% (−110 ppm)0.050% (500 ppm)
2$1,000,000——−0.011%0.045%
3$5,000,000——−0.011%0.040%
4$25,000,000——−0.011%0.035%
5$125,000,000——−0.011%0.030%
6$125,000,0000.5%—−0.011%0.025%
7$125,000,0000.5%1%−0.011%0.025%
8$125,000,0000.5%2%−0.011%0.025%
9$125,000,0000.5%4%−0.011%0.025%

Governance can change the schedule. Query your tier with /dydxprotocol/v4/feetiers/user_fee_tier?user=dydx1.... A fill's fee is in the indexer's fee field on each fill.

Example: a taker on tier 1 buys 10 contracts of the perpetual at $50.00. The notional is $500, the taker fee 0.05% × $500 = $0.25; the maker receives 0.011% × $500 = $0.055.

Builder fees

An order can carry a builder code: an address and a fee of up to 10,000 ppm (1%) of each fill's notional, paid by the order's owner to the builder on every fill, on top of the trading fee. The exchange's own app sets none. See builder codes.

Liquidation fees

A liquidated position pays a fee of at most 1.5% of the notional closed (max_liquidation_fee_ppm), into the market's insurance fund (margin and liquidation).

Gas

  • Order and cancel transactions are free. A transaction of x/clob messages runs on an infinite, free gas meter and needs no fee. Short-term orders and cancels also skip the account's sequence number: they are replay-protected by their good-til-block.
  • Every other transaction (deposits, withdrawals, transfers, bank sends, admin and governance messages) pays gas at the node's minimum gas price: 25,000,000,000 adv4tnt a unit of gas (about 0.005 native tokens for a deposit), or 0.025 micro-USDC a unit if paid in USDC. Simulate the transaction for its gas and add a margin, as the clients do.
  • The faucet's 5 native tokens pay for about a thousand transfers.

Funding

Funding is a payment between longs and shorts, not a fee: the exchange takes no part of it (funding).