# Exchange Fees

## Exchange base Fee

![](https://lh7-us.googleusercontent.com/Ymhkdy62VsBEJZngSAN4yK9VxG6fJsCgBc8uYCcene_iMWR8G_GYlXfsA3TyfXqd5ps7qH-4IsvSM_gFXfgaLcWlbUlt1J75IzMSUoBcS84HDPDJgsriISCODEogei5OYrb-xMJdpTsYwh3NN5ZHpfA)

## Dynamic Exchange Fees

Dynamic Exchange Fees is a dynamic fee on top of the normal exchange base fees for the spot exchange and is based on the market's volatility. If there is a lot of market volatility, the dynamic exchange fees increase, while when the market is calm, the dynamic exchange fees decrease to 0.

<br>

### How Dynamic Exchange Fees work

The idea of a dynamic exchange fee is to make it unprofitable for front-runners or parties that are taking advantage of volatility arbitrage.

A dynamic exchange fee contract tracks the price of a zAsset across epochs, and as the price swings, the dynamic exchange fee increases and is applied as an additional fee over the base fee. A decay factor is applied to the dynamic exchange fee the entire time, which means that over time, as the price stabilizes, the dynamic exchange fee goes back down to 0.

<br>

### To simplify:

* price volatility = dynamic exchange fee going up
* price stability = dynamic exchange fee gradually going down to 0

The dynamic exchange fee is different for each zAsset and is dependent on the market volatility for that zAsset.


---

# 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://academy.horizonprotocol.com/english-v2/exchange/trading-on-exchange/exchange-fees.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.
