---
updatedAt: 2026-06-01T02:38:18.000Z
agentTools:
  projectIndex: https://docs.coinglass.com/v4.0-zh/llms.txt
---

# 交易所历史图表

该接口提供交易所历史未平仓合约数据，并将数据格式化为图表形式。

***缓存 / 更新频率:*** 10秒钟更新一次

***该接口以下API等级可用：*** [API 等级](https://www.coinglass.com/zh/pricing)：

| API 等级 | 爱好版 | 创业版 | 标准版 | 专业版 | 企业版 |
| :----- | :-- | :-- | :-- | :-- | :-- |
| 可用性    | ✅   | ✅   | ✅   | ✅   | ✅   |

<br />

```json
{
  "code": "0",
  "msg": "success",
  "data": {
    "time_list": [1721649600000, ...], // 时间戳列表（毫秒）
    "price_list": [67490.3, ...], // 价格列表（与 time_list 对应）

    "data_map": { // 各交易所未平仓合约数据
      "Binance": [8018229234, ...], // Binance 未平仓合约（与 time_list 对应）
      "Bitmex": [395160842, ...] // BitMEX 未平仓合约（与 time_list 对应）
      // ...
    }
  }
}
```

# 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/open-interest/exchange-history-chart": {
      "get": {
        "summary": "交易所历史图表",
        "description": "该接口提供交易所历史未平仓合约数据，并将数据格式化为图表形式。",
        "operationId": "oi-exchange-history-chart",
        "parameters": [
          {
            "name": "symbol",
            "in": "query",
            "required": true,
            "description": "交易币种（例如：BTC）。可通过 support-coins 接口获取支持的币种列表。",
            "schema": {
              "type": "string",
              "default": "BTC"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": true,
            "description": "数据时间范围（例如：all，1m，15m，1h，4h，12h）",
            "schema": {
              "type": "string",
              "default": "12h"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "返回数据的单位，可以选择 'usd' 或 'coin'。",
            "schema": {
              "type": "string",
              "default": "usd"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"code\": \"0\",\n  \"msg\": \"success\",\n  \"data\": {\n    \"time_list\": [1721649600000, ...], // 时间戳列表（毫秒）\n    \"price_list\": [67490.3, ...], // 价格列表（与 time_list 对应）\n\n    \"data_map\": { // 各交易所未平仓合约数据\n      \"Binance\": [8018229234, ...], // Binance 未平仓合约（与 time_list 对应）\n      \"Bitmex\": [395160842, ...] // BitMEX 未平仓合约（与 time_list 对应）\n      // ...\n    }\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```