CoinGecko
Cryptocurrency prices, market data and historical series.
代币交易对
单个代币在所有交易场所的每个交易对: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 计费记录为准。
- 类型: stringid必填
代币 ID。 *参见
/coins/list
- 类型: booleandepth
包含 2% 订单簿深度,即
cost_to_move_up_usd和cost_to_move_down_usd。 默认:false - 类型: string 枚举dex
_pair _format 设为
symbol可将 DEX 交易对的基础货币和目标货币显示为符号。 默认:contract_address值- contract
_address - symbol
- 类型: stringexchange
_ids 交易所 ID。 *参见
/exchanges/list - 类型: booleaninclude
_exchange _logo 包含交易所徽标。 默认:false
- 类型: string 枚举order
对响应排序。 默认:trust_score_desc
值- trust
_score _desc - trust
_score _asc - volume
_desc - volume
_asc
- 类型: integerpage
分页浏览结果
- 类型: object · Response860C3Ae68Ea5_CoinsIdTickers200
代币交易对
- 类型: stringname必填
代币名称
- 类型: array object[]tickers必填
Ticker 列表
- base类型: string必填
Ticker 基础货币
- bid类型: number
_ask _spread _percentage 必填买卖价差百分比
- coin类型: string
_id 必填基础货币代币 ID
- coin类型: number
_mcap _usd 必填代币市值(美元)
- converted类型: object
_last 必填换算后最新价
- btc类型: number
- eth类型: number
- usd类型: number
- converted类型: object
_volume 必填换算后交易量
- btc类型: number
- eth类型: number
- usd类型: number
- is类型: boolean
_anomaly 必填表示 Ticker 是否异常
- is类型: boolean
_stale 必填表示 Ticker 数据是否陈旧
- last类型: number必填
最新价
- last类型: string
_fetch _at 必填最后抓取时间戳
- last类型: string
_traded _at 必填最后成交时间戳
- market类型: object必填
交易所信息
- has类型: boolean
_trading _incentive 交易所交易激励
- identifier类型: string
交易所标识符
- logo类型: string
交易所徽标 URL
- name类型: string
交易所名称
- target类型: string必填
Ticker 目标货币
- target类型: string
_coin _id 必填目标货币代币 ID
- timestamp类型: string必填
Ticker 时间戳
- token类型: string | null
_info _url 必填代币信息 URL
- trade类型: string
_url 必填交易 URL
- trust类型: string | null
_score 必填信任评分
- volume类型: number必填
交易量
- cost类型: number
_to _move _down _usd 使价格下跌 2% 的成本(美元)
- cost类型: number
_to _move _up _usd 使价格上涨 2% 的成本(美元)
application/json - 400
无法处理该请求。请检查请求参数。
- 401
需要有效的 Felo API 密钥。
- 402
由于未满足计费要求,请求无法继续。
- 403
该账户无权执行此操作。
- 429
已达到请求或支出限额。
- 502
服务无法完成该请求。
- 503
API 或计费服务暂时不可用。
- 504
服务在处理请求时超时。
- default
错误响应;上游透传响应可能采用提供方格式
application/json
curl https://openapi.felo.ai/v1/beta/coingecko/coins/bitcoin/tickers \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"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
}
]
}