# Funding Rate Time Filter

The "Funding Rate Time" filter (Funding Filter) controls algorithm operation depending on the Funding Rate value and time before/after the funding event.

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

**Purpose:** Helps set trading parameters considering volatility caused by funding rate payment.

***

### Filter Parameters

#### Action

Choose what the algorithm should do when conditions are met:

**Run** Algorithm operates if the funding rate matches the specified parameters.

**Pause** Algorithm forcibly stops within the specified range.

***

#### Rate

Set the Funding Rate value range in percentages.

**How it works:** "Rate" sets the range of values within which the funding rate must be for the algorithm to run or stop.

**Example:** If you set a range from -0.1% to 0.1%, the action will be executed only on pairs with funding rate in this range.

***

#### Time Range

Determines the time window before and after the funding event when the selected action is applied.

**Parameters:**

* **Before event:** number of seconds before funding payment
* **After event:** number of seconds after funding payment

**How it works:** "Time Range" displays the amount of time before and after the funding rate payment respectively. If time exceeds the specified values, the corresponding action will be executed with the algorithm.

**Example:** Values 60s / 60s mean: the algorithm will start (or stop) 60 seconds before funding and remain in this state for 60 seconds after.

***

### Usage Example

#### Stopping Algorithm Near Funding Event

**Settings:**

* **Action:** Pause
* **Rate:** from -0.1% to 0.1%
* **Time Range:** 60s / 60s

**Result:** If the funding rate is in the range from -0.1% to 0.1%, the algorithm will stop 60 seconds before funding payment and resume operation 60 seconds after.

**Why:** Avoid trading during high volatility near the funding event.

***

### Why This Filter is Needed

**Volatility Management:** Avoid trading near funding events when increased volatility may occur.

**Fee Control:** Stop the algorithm before funding payment to avoid unexpected fees on open positions.

**Optimal Conditions Selection:** Trade only on markets with an acceptable funding rate level matching your strategy.


---

# 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://guide.moontrader.com/en-moontrader-docs/trading/trading-algorithms/general-algorithm-settings/funding-rate-time-filter.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.
