# 代币交易对

**API:** Data API

**Endpoint:** `GET /v1/beta/coingecko/coins/{id}/tickers`

**Tags:** CoinGecko

单个代币在所有交易场所的每个交易对：`base`、`target`、`market`、`last`、`volume`、`converted_last`、`converted_volume`、`trust_score`、`bid_ask_spread_percentage`、`last_traded_at`、`trade_url`，以及异常标志 `is_anomaly` 和 `is_stale`。设置 `depth` 会增加 `cost_to_move_up_usd` 和 `cost_to_move_down_usd`。可用 `exchange_ids` 收窄范围、`page` 分页、`order` 排序（信任评分或成交量）。用于比较同一资产在哪些场所交易，以及每个订单簿的深度。需要某个场所不区分代币的所有交易对时，请使用 `get_coingecko_exchanges_id_tickers`。

### 计费参考

- 计量方式：套餐资源单位。
- 参考请求估算：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 |
| --- | --- | --- | --- | --- |
| `id` | path | yes | string, default: "bitcoin" | 代币 ID。 *参见 [`/coins/list`](/reference/coins-list) |
| `depth` | query | no | boolean | 包含 2% 订单簿深度，即 `cost_to_move_up_usd` 和 `cost_to_move_down_usd`。 默认：false |
| `dex_pair_format` | query | no | string, enum: "contract_address", "symbol" | 设为 `symbol` 可将 DEX 交易对的基础货币和目标货币显示为符号。 默认：`contract_address` |
| `exchange_ids` | query | no | string | 交易所 ID。 *参见 [`/exchanges/list`](/reference/exchanges-list) |
| `include_exchange_logo` | query | no | boolean | 包含交易所徽标。 默认：false |
| `order` | query | no | string, enum: "trust_score_desc", "trust_score_asc", "volume_desc", "volume_asc" | 对响应排序。 默认：trust_score_desc |
| `page` | query | no | integer | 分页浏览结果 |

## Responses

### 200 — 代币交易对

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

**application/json**

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

Example:

```json
{
  "name": "Bitcoin",
  "tickers": [
    {
      "base": "BTC",
      "target": "USDT",
      "market": {
        "name": "Binance",
        "identifier": "binance",
        "has_trading_incentive": false,
        "logo": "https://coin-images.coingecko.com/markets/images/52/small/binance.jpg?1706864274"
      },
      "last": 76894.07,
      "volume": 13786.06991,
      "cost_to_move_up_usd": 19320706.3958517,
      "cost_to_move_down_usd": 16360235.3694131,
      "converted_last": {
        "btc": 0.99664066,
        "eth": 36.004874,
        "usd": 76856
      },
      "converted_volume": {
        "btc": 13740,
        "eth": 496366,
        "usd": 1059536991
      },
      "trust_score": null,
      "bid_ask_spread_percentage": 0.010013,
      "timestamp": "2026-05-18T13:37:29+00:00",
      "last_traded_at": "2026-05-18T13:37:29+00:00",
      "last_fetch_at": "2026-05-18T13:37:29+00:00",
      "is_anomaly": false,
      "is_stale": false,
      "trade_url": "https://www.binance.com/en/trade/BTC_USDT?ref=37754157",
      "token_info_url": null,
      "coin_id": "bitcoin",
      "target_coin_id": "tether",
      "coin_mcap_usd": 1544810408447.1313
    }
  ]
}
```

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response860C3Ae68Ea5_CoinsIdTickers

`#/components/schemas/Response860C3Ae68Ea5_CoinsIdTickers`

```json
{
  "type": "object",
  "required": [
    "name",
    "tickers"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "代币名称"
    },
    "tickers": {
      "type": "array",
      "description": "Ticker 列表",
      "items": {
        "type": "object",
        "required": [
          "base",
          "target",
          "market",
          "last",
          "volume",
          "converted_last",
          "converted_volume",
          "trust_score",
          "bid_ask_spread_percentage",
          "timestamp",
          "last_traded_at",
          "last_fetch_at",
          "is_anomaly",
          "is_stale",
          "trade_url",
          "token_info_url",
          "coin_id",
          "target_coin_id",
          "coin_mcap_usd"
        ],
        "properties": {
          "base": {
            "type": "string",
            "description": "Ticker 基础货币"
          },
          "target": {
            "type": "string",
            "description": "Ticker 目标货币"
          },
          "market": {
            "type": "object",
            "description": "交易所信息",
            "properties": {
              "name": {
                "type": "string",
                "description": "交易所名称"
              },
              "identifier": {
                "type": "string",
                "description": "交易所标识符"
              },
              "has_trading_incentive": {
                "type": "boolean",
                "description": "交易所交易激励"
              },
              "logo": {
                "type": "string",
                "description": "交易所徽标 URL"
              }
            }
          },
          "last": {
            "type": "number",
            "description": "最新价"
          },
          "volume": {
            "type": "number",
            "description": "交易量"
          },
          "cost_to_move_up_usd": {
            "type": "number",
            "description": "使价格上涨 2% 的成本（美元）"
          },
          "cost_to_move_down_usd": {
            "type": "number",
            "description": "使价格下跌 2% 的成本（美元）"
          },
          "converted_last": {
            "type": "object",
            "description": "换算后最新价",
            "properties": {
              "btc": {
                "type": "number"
              },
              "eth": {
                "type": "number"
              },
              "usd": {
                "type": "number"
              }
            }
          },
          "converted_volume": {
            "type": "object",
            "description": "换算后交易量",
            "properties": {
              "btc": {
                "type": "number"
              },
              "eth": {
                "type": "number"
              },
              "usd": {
                "type": "number"
              }
            }
          },
          "trust_score": {
            "type": [
              "string",
              "null"
            ],
            "description": "信任评分"
          },
          "bid_ask_spread_percentage": {
            "type": "number",
            "description": "买卖价差百分比"
          },
          "timestamp": {
            "type": "string",
            "description": "Ticker 时间戳"
          },
          "last_traded_at": {
            "type": "string",
            "description": "最后成交时间戳"
          },
          "last_fetch_at": {
            "type": "string",
            "description": "最后抓取时间戳"
          },
          "is_anomaly": {
            "type": "boolean",
            "description": "表示 Ticker 是否异常"
          },
          "is_stale": {
            "type": "boolean",
            "description": "表示 Ticker 数据是否陈旧"
          },
          "trade_url": {
            "type": "string",
            "description": "交易 URL"
          },
          "token_info_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "代币信息 URL"
          },
          "coin_id": {
            "type": "string",
            "description": "基础货币代币 ID"
          },
          "target_coin_id": {
            "type": "string",
            "description": "目标货币代币 ID"
          },
          "coin_mcap_usd": {
            "type": "number",
            "description": "代币市值（美元）"
          }
        }
      }
    }
  }
}
```
