# 带市场数据的分类

**API:** Data API

**Endpoint:** `GET /v1/beta/coingecko/coins/categories`

**Tags:** CoinGecko

约 749 个加密分类及其市场数据：`id`、`name`、`market_cap`、`market_cap_change_24h`、`volume_24h`、`top_3_coins_id`、`top_3_coins`、`content` 和 `updated_at`。可用 `order` 按市值、名称或 24 小时市值变化排序。用于观察哪些板块在变动。需要 `category` 筛选器所要求的纯标识符列表时，`get_coingecko_coins_categories_list` 更小也更快。

### 计费参考

- 计量方式：套餐资源单位。
- 参考请求估算：0.008 美元。
- 单位成本基准：0.0 美元。
- 资源单位：`provider_credit`。
- 成本基准不构成最终客户价格，即使为零也不例外。

仅供参考的元数据，不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `order` | query | no | string, enum: "market_cap_desc", "market_cap_asc", "name_desc", "name_asc", "market_cap_change_24h_desc", "market_cap_change_24h_asc" | 按字段对结果排序。 默认：`market_cap_desc` |

## Responses

### 200 — 带市场数据的代币分类列表

Headers:
- `X-Request-Id` (string) — 联系 Felo 支持时需提供的请求标识符。

**application/json**

Schema: `Response860C3Ae68Ea5_Categories` (`#/components/schemas/Response860C3Ae68Ea5_Categories`)

Example:

```json
[
  {
    "id": "smart-contract-platform",
    "name": "Smart Contract Platform",
    "market_cap": 2176528015490.1301,
    "market_cap_change_24h": -0.4907335508040635,
    "content": "Smart contract platforms are usually blockchains that host smart contracts or decentralized applications.",
    "top_3_coins_id": [
      "bitcoin",
      "ethereum",
      "binancecoin"
    ],
    "top_3_coins": [
      "https://coin-images.coingecko.com/coins/images/1/small/bitcoin.png",
      "https://coin-images.coingecko.com/coins/images/279/small/ethereum.png",
      "https://coin-images.coingecko.com/coins/images/825/small/bnb-icon2_2x.png"
    ],
    "volume_24h": 45616943988.58024,
    "updated_at": "2026-05-26T10:02:24.777Z"
  },
  {
    "id": "layer-1",
    "name": "Layer 1 (L1)",
    "market_cap": 2152576804747.1516,
    "market_cap_change_24h": -0.538526079299288,
    "content": "Layer 1 serves as the primary and autonomous chain on which transactions are directly executed and confirmed.",
    "top_3_coins_id": [
      "bitcoin",
      "ethereum",
      "binancecoin"
    ],
    "top_3_coins": [
      "https://coin-images.coingecko.com/coins/images/1/small/bitcoin.png",
      "https://coin-images.coingecko.com/coins/images/279/small/ethereum.png",
      "https://coin-images.coingecko.com/coins/images/825/small/bnb-icon2_2x.png"
    ],
    "volume_24h": 44289945362.19749,
    "updated_at": "2026-05-26T10:01:55.213Z"
  }
]
```

### 400 — 无法处理该请求。请检查请求参数。

### 401 — 需要有效的 Felo API 密钥。

### 402 — 由于未满足计费要求，请求无法继续。

### 403 — 该账户无权执行此操作。

### 429 — 已达到请求或支出限额。

### 502 — 服务无法完成该请求。

### 503 — API 或计费服务暂时不可用。

### 504 — 服务在处理请求时超时。

### default — 错误响应；上游透传响应可能采用提供方格式

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response860C3Ae68Ea5_Categories

`#/components/schemas/Response860C3Ae68Ea5_Categories`

```json
{
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "id",
      "name",
      "market_cap",
      "market_cap_change_24h",
      "content",
      "top_3_coins_id",
      "top_3_coins",
      "volume_24h",
      "updated_at"
    ],
    "properties": {
      "id": {
        "type": "string",
        "description": "类别 ID"
      },
      "name": {
        "type": "string",
        "description": "类别名称"
      },
      "market_cap": {
        "type": "number",
        "description": "类别市值"
      },
      "market_cap_change_24h": {
        "type": "number",
        "description": "类别市值 24 小时变化"
      },
      "content": {
        "type": "string",
        "description": "类别描述"
      },
      "top_3_coins_id": {
        "type": "array",
        "description": "类别中前 3 个代币的 ID",
        "items": {
          "type": "string"
        }
      },
      "top_3_coins": {
        "type": "array",
        "description": "类别中前 3 个代币的图片 URL",
        "items": {
          "type": "string"
        }
      },
      "volume_24h": {
        "type": "number",
        "description": "类别 24 小时交易量"
      },
      "updated_at": {
        "type": "string",
        "description": "类别最后更新时间戳"
      }
    }
  }
}
```
