# Dynamic Fee

{% hint style="info" %}
**Note for DEX Teams:**

This plugin adapts to volatility, liquidity, and trading activity. By adjusting fees based on market behavior, it allows DEXes to maintain a competitive edge and attract more trading volume.

Customize it per pool using your parameters and make sure to reflect current logic in your frontend.

Available via **Plugins Marketplace**: <https://market.algebra.finance/plugin/dynamic-fee/>
{% endhint %}

### User-Oriented Overview

In pools where **Dynamic Fees** are enabled, the trading fee adjusts automatically based on market activity.

* If trading is heavy or the market is volatile, the fee may increase slightly to account for risk.
* In calmer conditions, the fee drops to make swaps more affordable.

This ensures that fees remain fair and reflect the current market reality. You don’t need to track or tweak anything—the system adjusts automatically to keep things optimized for both traders and liquidity providers.

> 🔄 Fee recalculations happen automatically after each transaction.


---

# 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://docs.algebra.finance/algebra-integral-documentation/user-guide-template-for-dexes/concentrated-liquidity-and-modular-architecture-basics/fee-mechanics/dynamic-fee.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.
