> For the complete documentation index, see [llms.txt](https://docs.megatao.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.megatao.com/core/funding-and-interest.md).

# Funding and Interest

MegaTAO uses two fee mechanisms to keep the protocol balanced and compensate liquidity providers. Both accrue continuously while a position is open.

## Funding rates

Perpetual futures have no expiry date, so there is no natural convergence between the futures price and the spot price. Funding rates solve this by creating periodic payments between longs and shorts based on which side is more crowded.

**When there are more longs than shorts**, longs pay shorts. This makes it more expensive to be long and cheaper to be short, encouraging traders to take the other side and rebalance the market.

**When there are more shorts than longs**, shorts pay longs. The same rebalancing effect works in reverse.

**When the market is balanced**, the funding rate is zero and no payments are made.

Funding is a peer-to-peer payment. The protocol does not collect funding fees. They flow directly between position holders. The rate is recalculated based on the ratio of long to short open interest and is capped at 0.75% per 8-hour interval.

## Interest fees

Separate from funding, an interest fee is charged to all position holders (both longs and shorts). This fee compensates vault depositors for the capital the vault puts at risk when acting as counterparty.

The interest rate scales with vault utilization:

* **Low utilization:** When the vault has plenty of available reserves relative to its exposure, the interest rate is minimal.
* **High utilization:** When the vault's capital is heavily committed, the rate increases to compensate depositors for the higher risk and to discourage further position opening.

This creates a self-regulating system: as the vault becomes more utilized, it becomes more expensive to hold positions, which naturally limits protocol exposure.

## Impact on traders

Both funding and interest reduce your margin over time. For short-duration trades, these costs are typically small. For longer-held positions, they can become meaningful.

Before opening a position, check the current funding rate and vault utilization on the market page. Your net P\&L includes:

* Price movement (unrealized P\&L)
* Funding paid or received (directional, based on market skew)
* Interest paid (always a cost, based on utilization)
* Trading fees (0.25% on open and close)

For detailed formulas and parameters, see [Funding](/trading/funding.md) in the Trading section.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.megatao.com/core/funding-and-interest.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
