# 代币列表（ID 映射）

**API:** Data API

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

**Tags:** CoinGecko

完整的 CoinGecko 标识符映射：每个已收录代币的 `id`、`symbol` 和 `name`。用它一次把 ticker 解析成其他所有 CoinGecko 工具所需的 `id`——是 `bitcoin`，而不是 BTC。设置 `include_platform` 还可获取每个代币在各链上的合约地址。注意数据量：这会返回约 18,000 个条目并耗时数秒，因此请缓存结果，而不是每次查询都调用。如果已知 id 且只需要数字，请直接调用 `get_coingecko_simple_price`；如果需要从合约地址识别代币，请使用 `get_coingecko_token_data`。

### 计费参考

- 计量方式：套餐资源单位。
- 参考请求估算：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 |
| --- | --- | --- | --- | --- |
| `include_platform` | query | no | boolean | 包含平台和代币的合约地址。 默认：false |
| `status` | query | no | string, enum: "active", "inactive" | 按代币状态筛选。 默认：active |

## Responses

### 200 — 代币列表

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

**application/json**

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

Example:

```json
[
  {
    "id": "official-trump",
    "symbol": "trump",
    "name": "Official Trump",
    "platforms": {
      "solana": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
    }
  },
  {
    "id": "ondo-finance",
    "symbol": "ondo",
    "name": "Ondo",
    "platforms": {
      "ethereum": "0xfaba6f8e4a5e8ab82f62fe7c39859fa577269be3"
    }
  }
]
```

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response860C3Ae68Ea5_CoinsList

`#/components/schemas/Response860C3Ae68Ea5_CoinsList`

```json
{
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "id",
      "symbol",
      "name"
    ],
    "properties": {
      "id": {
        "type": "string",
        "description": "代币 ID"
      },
      "symbol": {
        "type": "string",
        "description": "代币符号"
      },
      "name": {
        "type": "string",
        "description": "代币名称"
      },
      "platforms": {
        "type": "object",
        "description": "资产平台与合约地址",
        "additionalProperties": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}
```
