# 幣種交易對

**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`。

### 定價參考

- 計量方式：方案資源單位。
- 參考請求預估：USD 0.008。
- 單位成本基礎：USD 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": "代幣市值（美元）"
          }
        }
      }
    }
  }
}
```
