> For the complete documentation index, see [llms.txt](https://guide.moontrader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.moontrader.com/en-moontrader-docs/trading/trading-algorithms/general-algorithm-settings/funding-rate-filter.md).

# Funding Rate Filter

The "Funding Rate" filter allows the algorithm to place orders only if the funding rate is within the specified range.

**Availability:** Only on USDT-M and COIN-M markets.

### How to Use

Specify the funding rate range in percentages from minimum to maximum value.

**How it works:** The algorithm checks the current funding rate. If it falls within the range — orders are placed, if it goes outside — the pair is excluded.

**Example:** If you set a range from -0.1% to 0.1%, the algorithm will only work on pairs with relatively neutral funding rate, excluding markets with extreme values.

### What is Funding Rate

**Funding Rate** is a periodic payment between traders holding long and short positions on perpetual contracts.

**How it works:**

* Updates every minute in real time
* Charged periodically at specific intervals (usually every 4 or 8 hours, depending on the exchange and trading pair)
* Helps keep the perpetual contract price close to the spot price of the underlying asset

**Payment direction:**

* Positive funding → longs pay shorts
* Negative funding → shorts pay longs

### Why This is Needed

**Assess market sentiment:**

* High positive funding → crowd is in longs (overheating)
* Negative funding → crowd is in shorts

**Avoid entering overheated positions:** When everyone is long and funding is too high, you can skip such a market or conversely enter a short.

**Application:** Enable the filter and set an acceptable range. The algorithm will only work with pairs where the funding rate matches your strategy.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.moontrader.com/en-moontrader-docs/trading/trading-algorithms/general-algorithm-settings/funding-rate-filter.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
