> For the complete documentation index, see [llms.txt](https://coinone-1.gitbook.io/coinone/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://coinone-1.gitbook.io/coinone/chinese/chan-pin-gong-neng/perpettual-contract/untitled-1.md).

# 资金费率

定期收取资金费是交易所常见的处理永续合约交易的方式，其目的是使**标记价格**与**指数价格**的价差收敛，使交易者的交易价格尽可能趋近市场真实价格。

永续协议使用了[FTX的资金费率](https://help.ftx.com/hc/zh-cn/articles/360027659812-%E8%B5%84%E9%87%91%E8%B4%B9%E7%94%A8)计算方法，具体公式如下

资金费 = 持仓头寸 \*资金费率资金费=持仓头寸∗资金费率

该公式中资金费率的计算方式：首先从标记价格的每小时TWAP减去指数价格的TWAP，再将这一结果除以24。

资金费率 = {TWAP\_{标记} - TWAP\_{指数} \over 24}资金费率=24TWAP标记​−TWAP指数​​

**我们使用Chainlink作为指数价格的喂价来源，**&#x56E0;为Chainlink是目前市场上应用范围最广泛最被认可的预言机之一。

如果资金费率是正的，意味着持有多头仓位的交易者要向持有空头仓位的交易者交付资金费，反之则相反。**资金费的结算与付给时间为每小时结束时**，这与我们常见的期货合约每天进行一次资金费结算与付给相似。


---

# 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:

```
GET https://coinone-1.gitbook.io/coinone/chinese/chan-pin-gong-neng/perpettual-contract/untitled-1.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.
