Skip to main content
Version: testnet (v0.77)

Fees

Participants who place orders on the order book, provide liquidity and run the network infrastructure receive the fees that traders pay on filled trades and transfers. The protocol does not charge gas fees for interacting with the network.

You can offset some of those fees, or earn even more, by receiving discounts or getting rewards based on trading activity. Rewards can be funded by anyone, and can be in any asset. See the rewards that are currently available on Console ↗.

Trading fees

The Vega protocol does not charge gas fees, but rather has a fee structure that rewards participants who fill essential roles in a decentralised system.

Fees are incurred on every trade on a market in continuous trading, but it's the price taker who pays the fee. The price taker is the party that traded using a market order, or placed a limit order that traded immediately. The price maker (the party whose passive order was on the book prior to the trade) receives some of the trading fees as a reward for placing orders on the book.

The amount a trader pays in fees for each order is the same regardless of how many trades it takes to fill the order. Even though, if an order crosses with more than one other order, multiple trades are created and multiple fees are incurred, in the end they would balance out. See an example fee calculation below.

During a market's opening auction, no fees are collected. If a market is in a protective auction, each side of a matched trade contributes 50% of the infrastructure and liquidity fees. Maker fees are not collected.

Asset fees are paid in

Derivatives markets' fees are charged in the market's settlement asset.

Spot markets' fees are charged in the market's quote asset.

The aggressor buying the base asset for the quote asset pays more in their trade to cover the fees. The aggressor selling the base asset has the fees deducted from the quote asset amount they receive.

Fee distribution and breakdown

Fees are calculated when a trade is filled, and paid in the market's settlement currency. The fees due are taken from the collateral in the trader's general account.

The fee is divided between the maker for the trade, the infrastructure providers, the liquidity provider(s) for each market, and the network treasury.

Maker fee

The maker portion of the fee is paid by the aggressive party in a trade (the taker), and transferred to the non-aggressive, or passive party in the trade (the maker, as opposed to the taker). This is done as soon as the trade settles.

The maker fee percentage is set through a network parameter: 🔗market.fee.factors.makerFee: 0.0002.

Infrastructure fee

The infrastructure portion of the fee is paid to validators as a reward for running the network infrastructure, and transferred to the infrastructure fee pool for the market's settlement asset. It is then distributed to the validators at the end of each epoch, in proportion to the number of tokens they represent.

Some of the infrastructure fee paid to validators is then distributed to the validators' nominators.

The infrastructure fee is set through a network parameter: 🔗market.fee.factors.infrastructureFee: 0.0005.

Liquidity fee

The liquidity portion of the fee is paid by a trader who hits an order on the order book, and is paid to those who commit liquidity to the market.

The liquidity fee percentage is set per market. There are several possible methods for how the fee is determined - a constant amount, a marginal cost rate depending on what liquidity providers submit, or the weighted average of what providers submit.

The fees paid are transferred to a liquidity fee account, and distributed to each liquidity provider's margin account at a defined time (based on network parameter 🔗market.liquidity.providers.fee.distributionTimeStep: 0m), and depending on how much liquidity they have contributed to the market.

Network treasury fee

The network treasury fee is collected from takers and transferred to the network treasury.

The amount charged for this fee is set by a network parameter.

Buyback fee

The buyback fee is collected from takers and is used to buy governance tokens on a spot market via regular auctions. If there is no relevant spot market, and the fee is set to a value higher than 0, the accrued fee payments are transferred to the network treasury.

The amount charged for this fee is set by a network parameter.

Fee calculations

At a high level, the trading fee that someone pays is calculated using the following formulas:

  • Total fee = (infrastructure fee factor + maker fee factor + liquidity fee factor + buyback fee + network treasury fee) x trade value for fee purposes
  • Trade value for fee purposes = notional value of the trade = size of trade x price of trade

Fee calculation example

  • Trade value for fee purposes: If you were to place an order for 100 at USDC50, the trade value for fee purposes is: 100 x USDC50 = USDC5000.
  • Fee factor: For this example, each of the 5 fees is 0.001, meaning total fee factor is 0.005.
  • Trade value and fee factor: USDC5000 x 0.005 = USDC25
  • The fee is the same regardless of the number of transactions the order needs to be completely filled, as long as they trade at the same price.

Four of the five fee factors are set through network parameters. The liquidity fee is set by the liquidity providers on the market.

Transfer fees

You may need to pay a fee to transfer assets, whether from one Vega key to another, or from a Vega key to a reward pool to fund trading rewards. The fee amount is taken when the transfer is executed, on top of the total amount to be transferred. It's charged in the same asset that is being transferred.

You only pay a fee if you haven't already paid or accrued enough trading fee revenue in past epochs to cover the calculated transfer fee. The trading fees you've paid or accrued act like a discount balance that's subtracted from with every transfer. You'd also pay a fee if you use up your fee discount balance.

Transfers initiated by governance don't incur a fee.

The fee goes to validators for providing the network infrastructure that supports transfers, and goes into the infrastructure fee pool.

The fee is calculated by multiplying the transfer amount and the 🔗transfer.fee.factor: 0.01 network parameter.