CoinGecko
Cryptocurrency prices, market data and historical series.
代币市场
一次调用即可获取覆盖多个代币的排名市场表:每个代币一行,包含 current_price、market_cap、market_cap_rank、total_volume、high_24h、low_24h、price_change_percentage_24h、circulating_supply、total_supply、max_supply、ath 和 atl 及其日期,以及 image。可用 per_page 和 page 分页,order 排序(市值、成交量或 id,升序或降序),ids 或 category 收窄范围。传入 price_change_percentage 会增加对应的 price_change_percentage_24h_in_currency 字段。适用于排行榜和板块扫描。查询少量已知代币的价格时,get_coingecko_simple_price 轻量得多;查看单个代币的完整信息请使用 get_coingecko_coins_id。
计费参考
- 计量方式:套餐资源单位。
- 参考请求估算:0.008 美元。
- 单位成本基准:0.0 美元。
- 资源单位:
provider_credit。 - 成本基准不构成最终客户价格,即使为零也不例外。
仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。
- 类型: stringcategory
按代币类别筛选。 *参见
/coins/categories/list - 类型: stringids
代币 ID,查询多个代币时以逗号分隔。 *参见
/coins/list - 类型: booleaninclude
_rehypothecated 在结果中包含再质押代币。为 true 时返回
market_cap_rank_with_rehypothecated字段。 默认:false - 类型: string 枚举include
_tokens 使用
symbols查询时,指定all可包含所有匹配的代币。 默认的top返回按市值或成交量排名靠前的代币。值- top
- all
- 类型: string 枚举locale
语言背景。 默认:en
值- ar
- bg
- cs
- da
- de
- 类型: stringnames
代币名称,查询多个代币时以逗号分隔。
- 类型: string 枚举order
按字段对结果排序。 默认:market_cap_desc
值- market
_cap _asc - market
_cap _desc - volume
_asc - volume
_desc - id
_asc - id
_desc
- 类型: integerpage
分页浏览结果。 默认:1
- 类型: integerper
_page 每页结果总数。 默认:100 有效值:1...250
- 类型: string 枚举precision
货币价格值的小数位数
值- full
- 0
- 1
- 2
- 3
- 类型: stringprice
_change _percentage 包含价格变化百分比的时段,查询多个时段时以逗号分隔。 有效值:
1h、24h、7d、14d、30d、200d、1y - 类型: booleansparkline
包含 7 天 sparkline 数据。 默认:false
- 类型: stringsymbols
代币符号,查询多个代币时以逗号分隔。
- 类型: stringvs
_currency 必填代币和市场数据的计价货币。 *参见
/simple/supported_vs_currencies
- 类型: array object[] · Response860C3Ae68Ea5_CoinsMarkets200
带市场数据的代币列表
- ath类型: number | null必填
目标货币下的历史最高价
- ath类型: number | null
_change _percentage 必填历史最高价变化百分比
- ath类型: string | null 格式: date-time
_date 必填历史最高价日期
- atl类型: number | null必填
目标货币下的历史最低价
- atl类型: number | null
_change _percentage 必填历史最低价变化百分比
- atl类型: string | null 格式: date-time
_date 必填历史最低价日期
- circulating类型: number | null
_supply 必填流通供应量
- current类型: number | null
_price 必填目标货币下的当前价格
- fully类型: number | null
_diluted _valuation 必填目标货币下的完全稀释估值
- high类型: number | null
_24h 必填目标货币下的 24 小时最高价
- id类型: string必填
代币 ID
- image类型: string必填
代币图片 URL
- last类型: string 格式: date-time
_updated 必填最后更新时间戳
- low类型: number | null
_24h 必填目标货币下的 24 小时最低价
- market类型: number | null
_cap 必填目标货币下的市值
- market类型: number | null
_cap _change _24h 必填目标货币下的 24 小时市值变动
- market类型: number | null
_cap _change _percentage _24h 必填24 小时市值变动百分比
- market类型: integer | null
_cap _rank 必填市值排名
- max类型: number | null
_supply 必填最大供应量
- name类型: string必填
代币名称
- price类型: number | null
_change _24h 必填目标货币下的 24 小时价格变动
- price类型: number | null
_change _percentage _24h 必填24 小时价格涨跌幅
- roi类型: object | null必填
投资回报率数据
- currency类型: string
投资回报率货币
- percentage类型: number
投资回报率百分比
- times类型: number
投资回报率倍数
- symbol类型: string必填
代币符号
- total类型: number | null
_supply 必填总供应量
- total类型: number | null
_volume 必填目标货币下的总交易量
- market类型: integer | null
_cap _rank _with _rehypothecated 包含再抵押代币的市值排名
- price类型: number | null
_change _percentage _14d _in _currency 目标货币下的 14 天价格涨跌幅
- price类型: number | null
_change _percentage _1h _in _currency 目标货币下的 1 小时价格涨跌幅
- price类型: number | null
_change _percentage _1y _in _currency 目标货币下的 1 年价格涨跌幅
- price类型: number | null
_change _percentage _200d _in _currency 目标货币下的 200 天价格涨跌幅
- price类型: number | null
_change _percentage _24h _in _currency 目标货币下的 24 小时价格涨跌幅
- price类型: number | null
_change _percentage _30d _in _currency 目标货币下的 30 天价格涨跌幅
- price类型: number | null
_change _percentage _7d _in _currency 目标货币下的 7 天价格涨跌幅
- sparkline类型: object
_in _7d 最近 7 天的 sparkline 价格数据
- price类型: array number[]
价格值数组
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/markets?vs_currency=usd' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[
{
"id": "bitcoin",
"symbol": "btc",
"name": "Bitcoin",
"image": "https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400",
"current_price": 77671,
"market_cap": 1555886872303,
"market_cap_rank": 1,
"fully_diluted_valuation": 1555914058873,
"total_volume": 33235034316,
"high_24h": 78419,
"low_24h": 76696,
"price_change_24h": -747.3360347281705,
"price_change_percentage_24h": -0.95302,
"market_cap_change_24h": -15184401491.513184,
"market_cap_change_percentage_24h": -0.9665,
"circulating_supply": 20030493,
"total_supply": 20030843,
"max_supply": 21000000,
"ath": 126080,
"ath_change_percentage": -38.39571,
"ath_date": "2025-10-06T18:57:42.558Z",
"atl": 67.81,
"atl_change_percentage": 114443.23093,
"atl_date": "2013-07-06T00:00:00.000Z",
"roi": null,
"last_updated": "2026-05-18T12:49:21.599Z",
"market_cap_rank_with_rehypothecated": 1,
"sparkline_in_7d": {
"price": [
81045.84776489827,
81001.73089268175,
80898.20817826076
]
},
"price_change_percentage_1h_in_currency": 0.5823392426906319,
"price_change_percentage_24h_in_currency": -0.9530164743774191,
"price_change_percentage_7d_in_currency": -4.042267423689584,
"price_change_percentage_14d_in_currency": -1.5720857443461431,
"price_change_percentage_30d_in_currency": 1.9453890367549207,
"price_change_percentage_200d_in_currency": -29.452371850925864,
"price_change_percentage_1y_in_currency": -25.214612207475373
}
]