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

# Funding

Funding is a periodic payment between long and short position holders that keeps the perpetual contract price anchored to the spot oracle price. Ticko does not take any portion of funding payments.

## Funding rate calculation

The funding rate is composed of two parts:

| Component         | Description                                                                                                                                   |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Interest rate (I) | A fixed base rate representing the cost-of-carry between the quote and base currencies. Default: 0.01% per 8 hours.                           |
| Premium index (P) | Measures the deviation between the Ticko contract price and the oracle price. Sampled every 5 seconds and averaged over the funding interval. |

The premium index is calculated using impact bid/ask prices derived from the order book at a depth defined by the impact margin notional (configured per symbol).

`Funding Rate = clamp(P + clamp(I - P, -d, +d), Floor, Cap) × (funding_interval / 8h)`

Where:

* `d` is the clamp deviation (default: 5 bps)
* `Cap / Floor` are the maximum and minimum rates per interval, derived from the maintenance margin rate
* The `funding_interval / 8h` factor scales the rate proportionally when the interval differs from 8 hours

## Funding interval

All symbols settle funding every 1 hour.

## Settlement

* If funding rate is positive: longs pay shorts.
* If funding rate is negative: shorts pay longs.
* Payment per position: `oracle_price × position_size × funding_rate`
* Settlement uses the oracle price (not mark price).
* Funding is settled per position at the end of each funding interval.


---

# 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.ticko.xyz/trading-on-ticko/funding.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.
