---
updatedAt: 2025-04-25T02:38:55.000Z
agentTools:
  projectIndex: https://docs.coinglass.com/v4.0-zh/llms.txt
---

# 比特币流通量与年产量

该接口提供比特币 S2F（Stock-to-Flow）模型相关数据，包括特定时间点的价格、比特币的流通总量、年产量，以及距离下次减半的天数等信息。

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

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

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

### 响应数据

```json
{
  "code": "0",
  "msg": "success",
  "data": [
    {
      "timestamp": 1282003200000,       // 时间戳（毫秒）
      "price": 0.07,                    // 当日价格
      "next_halving": 834              // 距离下一次比特币减半的天数
    },
    {
      "timestamp": 1282089600000,       // 时间戳（毫秒）
      "price": 0.068,                   // 当日价格
      "next_halving": 833              // 距离下一次比特币减半的天数
    }
  ]
}

```

# 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/index/stock-flow": {
      "get": {
        "summary": "Stock-to-Flow Model",
        "description": "",
        "operationId": "stock-flow",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"code\": \"0\",\n  \"msg\": \"success\",\n  \"data\": [\n    {\n      \"timestamp\": 1282003200000,       // 时间戳（毫秒）\n      \"price\": 0.07,                    // 当日价格\n      \"next_halving\": 834              // 距离下一次比特币减半的天数\n    },\n    {\n      \"timestamp\": 1282089600000,       // 时间戳（毫秒）\n      \"price\": 0.068,                   // 当日价格\n      \"next_halving\": 833              // 距离下一次比特币减半的天数\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
}
```