> For the complete documentation index, see [llms.txt](https://tradewithonyx.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tradewithonyx.gitbook.io/docs/trading/funding-rate.md).

# Funding Rate

The funding rate is a recurring payment exchanged between traders holding long and short positions in perpetual contracts. Its purpose is to maintain alignment between the perpetual contract price, reflected by the mark price, and the underlying spot index price.

<figure><img src="/files/m4MzWKV0raJAr6g1HxYu" alt=""><figcaption></figcaption></figure>

#### **What It Means:**

* If the funding rate is positive: Traders holding long positions pay traders holding short positions.
* If the funding rate is negative: Traders holding short positions pay traders holding long positions.

This mechanism ensures that if the price of the perpetual diverges from spot (due to demand imbalance), there is a financial incentive for traders to take the opposite side, pulling prices back in line.

#### **How It Works:**

* Funding payments are settled at the beginning of each UTC hour between longs and shorts.
* You only pay or receive funding if you’re holding a position at the funding timestamp.
* The amount you pay/receive is proportional to your position size and the prevailing funding rate.

#### **Why Its Important:**

Funding rate has a direct impact on your profit and loss (PnL) over time. Even if price doesn’t move, a high funding rate can eat into returns (if you’re paying), or enhance gains (if you’re receiving).


---

# 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://tradewithonyx.gitbook.io/docs/trading/funding-rate.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.
