---
updatedAt: 2026-09-28T06:56:04.000Z
agentTools:
  projectIndex: https://docs.coinglass.com/v4.0-zhtw/llms.txt
---

# 資金費率歷史（K 線）

該接口提供合約交易對的資金費率 K 線數據，包含開盤價、最高價、最低價和收盤價（OHLC）。

***該接口以下 API 等級可用：*** [API 等級](https://www.coinglass.com/zh-TW/pricing)：

| API 等級 | 業餘版    | 創業版      | 標準版 | 專業版 | 企業版 |
| :----- | :----- | :------- | :-- | :-- | :-- |
| 可用性    | ✅      | ✅        | ✅   | ✅   | ✅   |
| 颗粒度    | `>=4h` | ​`>=30m` | 無限制 | 無限制 | 無限制 |

資金費用結算可能會有延遲。例如，在 08:00:05 (UTC) 開倉的倉位仍可能參與本次資金費用結算。

### 響應數據

```json
{
  "code": "0",
  "msg": "success",
  "data": [
    {
      "time": 1658880000000, // 時間戳（毫秒）
      "open": "0.004603",     // 開盤資金費率
      "high": "0.009388",     // 最高資金費率
      "low": "-0.005063",     // 最低資金費率
      "close": "0.009229"     // 收盤資金費率
    },
    {
      "time": 1658966400000, // 時間戳（毫秒）
      "open": "0.009229",     // 開盤資金費率
      "high": "0.01",         // 最高資金費率
      "low": "0.007794",      // 最低資金費率
      "close": "0.01"         // 收盤資金費率
    }
  ]
}

```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "coinglass",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://open-api-v4.coinglass.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "CG-API-KEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/futures/funding-rate/history": {
      "get": {
        "summary": "資金費率歷史（K 線）",
        "description": "該接口提供合約交易對的資金費率 K 線數據，包含開盤價、最高價、最低價和收盤價（OHLC）。",
        "operationId": "fr-ohlc-histroy",
        "parameters": [
          {
            "name": "exchange",
            "in": "query",
            "required": true,
            "description": "合約交易所名稱（例如：Binance、OKX）。可透過 support-exchange-pair 接口獲取支持的交易所。 ",
            "schema": {
              "type": "string",
              "default": "Binance"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "required": true,
            "description": "交易對（例如：BTCUSDT）。可透過 support-exchange-pair 接口查詢支持的交易對。 ",
            "schema": {
              "type": "string",
              "default": "BTCUSDT"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": true,
            "description": "數據時間間隔。支持的取值包括：1m、3m、5m、15m、30m、1h、4h、6h、8h、12h、1d、1w。 ",
            "schema": {
              "type": "string",
              "default": "1d"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "每次請求返回的數據筆數。預設值：1000，最大值：4500。 ",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": "10"
            }
          },
          {
            "name": "start_time",
            "in": "query",
            "required": false,
            "description": "起始時間戳，單位為毫秒（例如：1746776387000）。 ",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": ""
            }
          },
          {
            "name": "end_time",
            "in": "query",
            "required": false,
            "description": "結束時間戳，單位為毫秒（例如：1746776587000）。",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"code\": \"0\",\n  \"msg\": \"success\",\n  \"data\": [\n    {\n      \"time\": 1658880000000, // 時間戳（毫秒）\n      \"open\": \"0.004603\",     // 開盤資金費率\n      \"high\": \"0.009388\",     // 最高資金費率\n      \"low\": \"-0.005063\",     // 最低資金費率\n      \"close\": \"0.009229\"     // 收盤資金費率\n    },\n    {\n      \"time\": 1658966400000, // 時間戳（毫秒）\n      \"open\": \"0.009229\",     // 開盤資金費率\n      \"high\": \"0.01\",         // 最高資金費率\n      \"low\": \"0.007794\",      // 最低資金費率\n      \"close\": \"0.01\"         // 收盤資金費率\n    }\n  ]\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```