---
updatedAt: 2025-04-25T06:37:32.000Z
agentTools:
  projectIndex: https://docs.coinglass.com/v4.0-zh/llms.txt
---

# ETF价格历史

该接口提供比特币ETF的历史价格数据，包括每个数据点的开盘价、最高价、最低价、收盘价（OHLC）以及交易量信息。

***缓存/ 更新频率 :*** 1天一次.

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

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

### 响应数据

```json
{
  "code": "0",                         
  "msg": "success",                   
  "data": [
    {
      "time": 1731056460000,     // 时间戳（毫秒）
      "open": 60.47,                  // 开盘价
      "high": 60.47,                  // 最高价
      "low": 60.47,                   // 最低价
      "close": 60.47,                 // 收盘价
      "volume": 100                   // 成交量
    },
    ...
  ]
}

```

# 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/etf/bitcoin/price/history": {
      "get": {
        "summary": "ETF Price History",
        "description": "This API retrieves historical price data for ETFs, including open, high, low, and close (OHLC) prices.",
        "operationId": "etf-price-ohlc-history",
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "description": "ETF 股票代码 (例如., GBTC, IBIT).",
            "schema": {
              "type": "string",
              "default": "GBTC"
            }
          },
          {
            "name": "range",
            "in": "query",
            "required": true,
            "description": "数据的时间范围（ (例如, 1d,7d,all).",
            "schema": {
              "type": "string",
              "default": "1d"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"code\": \"0\",                         \n  \"msg\": \"success\",                   \n  \"data\": [\n    {\n      \"time\": 1731056460000,     // 时间戳（毫秒）\n      \"open\": 60.47,                  // 开盘价\n      \"high\": 60.47,                  // 最高价\n      \"low\": 60.47,                   // 最低价\n      \"close\": 60.47,                 // 收盘价\n      \"volume\": 100                   // 成交量\n    },\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
}
```