CoinGecko
Cryptocurrency prices, market data and historical series.
按 ID 获取代币数据
通过 id 选择并返回 CoinGecko 关于单个代币的全部信息:description、links、image、categories、platforms 和 detail_platforms(各链上的合约地址)、market_cap_rank,以及包含 current_price、market_cap、total_volume、fully_diluted_valuation、ath 和 atl(带日期与涨跌百分比)的 market_data 块。较大的部分需通过 market_data、community_data、developer_data、tickers、sparkline 和 localization 主动开启——除非确有需要,否则请保持关闭,完整负载很大。适用于代币概况。需要跨多个代币的价格表时,请使用 get_coingecko_coins_markets;需要按合约地址查询同一个代币时,请使用 get_coingecko_token_data。
计费参考
- 计量方式:套餐资源单位。
- 参考请求估算:0.008 美元。
- 单位成本基准:0.0 美元。
- 资源单位:
provider_credit。 - 成本基准不构成最终客户价格,即使为零也不例外。
仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。
- 类型: stringid必填
代币 ID。 *参见
/coins/list
- 类型: booleancommunity
_data 已弃用包含社区数据。 已弃用:自 2026 年 8 月 28 日起不再生效;不再返回
community_data对象。 - 类型: booleandeveloper
_data 已弃用包含开发者数据。 已弃用:自 2026 年 8 月 28 日起不再生效;不再返回
developer_data对象。 - 类型: string 枚举dex
_pair _format 设为
symbol可将 DEX 交易对的基础货币和目标货币显示为符号。 默认:contract_address值- contract
_address - symbol
- 类型: booleaninclude
_categories _details 包含类别详情。 默认:false
- 类型: booleanlocalization
在响应中包含所有本地化语言。 默认:true
- 类型: booleanmarket
_data 包含市场数据。 默认:true
- 类型: booleansparkline
包含 7 天 sparkline 数据。 默认:false
- 类型: booleantickers
包含交易对数据。 默认:true
- 类型: object · Response860C3Ae68Ea5_CoinsID200
代币数据
- 类型: array string[]additional
_notices 必填附加声明
- 类型: string | nullasset
_platform _id 必填代币资产平台 ID
- 类型: numberblock
_time _in _minutes 必填区块链出块时间(分钟)
- 类型: array string[]categories必填
代币类别
- 类型: stringcountry
_origin 必填原产国
- 类型: objectdescription必填
代币描述
- property类型: string
Name
- 类型: objectdetail
_platforms 必填详细的代币资产平台和合约地址
- property类型: object
Name - contract类型: string
_address 代币合约地址
- decimal类型: integer | null
_place 代币小数位数
- 类型: string | nullgenesis
_date 必填创世日期
- 类型: booleanhas
_supply _breakdown 必填是否可通过 /coins/supply_breakdown 获取详细的供应量明细数据
- 类型: string | nullhashing
_algorithm 必填区块链哈希算法
- 类型: stringid必填
代币 ID
- 类型: objectimage必填
代币图片 URL
- large类型: string
- small类型: string
- thumb类型: string
- 类型: stringlast
_updated 必填最后更新时间戳
- 类型: objectlinks必填
链接
- announcement类型: array string[]
_url 公告 URL
- bitcointalk类型: integer | null
_thread _identifier Bitcointalk 主题标识符
- blockchain类型: array string[]
_site 区块浏览器 URL
- chat类型: array string[]
_url 聊天 URL
- facebook类型: string
_username Facebook 用户名
- homepage类型: array string[]
网站 URL
- official类型: array string[]
_forum _url 官方论坛 URL
- repos类型: object
_url 代码仓库 URL
- bitbucket类型: array string[]
Bitbucket 仓库 URL
- github类型: array string[]
GitHub 仓库 URL
- snapshot类型: string | null
_url 快照 URL
- subreddit类型: string
_url Subreddit 的 URL
- telegram类型: string
_channel _identifier Telegram 频道标识符
- twitter类型: string
_screen _name Twitter 用户名
- whitepaper类型: string
白皮书 URL
- 类型: integer | nullmarket
_cap _rank 必填市值排名
- 类型: integer | nullmarket
_cap _rank _with _rehypothecated 必填包含再抵押代币的市值排名
- 类型: stringname必填
代币名称
- 类型: objectplatforms必填
代币资产平台与合约地址
- property类型: string
Name
- 类型: booleanpreview
_listing 必填预览上架代币
- 类型: string | nullpublic
_notice 必填公告
- 类型: number | nullsentiment
_votes _down _percentage 必填看跌投票百分比
- 类型: number | nullsentiment
_votes _up _percentage 必填看涨投票百分比
- 类型: array object[]status
_updates 必填状态更新
- category类型: string
状态更新类别
- created类型: string
_at 状态更新创建时间
- description类型: string
状态更新描述
- user类型: string
状态更新用户
- user类型: string
_title 状态更新用户头衔
- 类型: stringsymbol必填
代币符号
- 类型: numberwatchlist
_portfolio _users 必填在投资组合中关注该代币的用户数
- 类型: stringweb
_slug 必填代币网页 slug
- 类型: array object[]categories
_details 代币详细分类
- id类型: string
类别 ID
- name类型: string
类别名称
- 类型: object | nullico
_data ICO 数据
- accepting类型: string
_currencies 接受的货币
- amount类型: number
_for _sale 出售数量
- base类型: number
_pre _sale _amount 基础货币预售数量
- base类型: number
_public _sale _amount 基础货币公开发售数量
- bounty类型: string
_detail _url 赏金详情 URL
- country类型: string
_origin 原产国
- description类型: string
详细描述
- hardcap类型: number
_amount 硬顶金额
- hardcap类型: string
_currency 硬顶货币
- ico类型: string
_end _date ICO 结束日期
- ico类型: string
_start _date ICO 开始日期
- kyc类型: boolean
_required 需要 KYC
- links类型: object
ICO 相关链接
- property类型: string
Name
- pre类型: boolean
_sale _available 可预售
- pre类型: string
_sale _end _date 预售结束日期
- pre类型: boolean
_sale _ended 预售已结束
- pre类型: string
_sale _start _date 预售开始日期
- quote类型: number
_pre _sale _amount 计价货币预售数量
- quote类型: string
_pre _sale _currency 预售计价货币
- quote类型: number
_public _sale _amount 计价货币公开发售数量
- quote类型: string
_public _sale _currency 公开发售计价货币
- short类型: string
_desc 简短描述
- softcap类型: number
_amount 软顶金额
- softcap类型: string
_currency 软顶货币
- total类型: number
_raised 募资总额
- total类型: string
_raised _currency 募资总额货币
- whitelist类型: boolean
_available 可加入白名单
- whitelist类型: string
_end _date 白名单结束日期
- whitelist类型: string
_start _date 白名单开始日期
- whitelist类型: string
_url 白名单 URL
- 类型: objectlocalization
代币名称本地化
- property类型: string
Name
- 类型: objectmarket
_data 市场数据
- ath类型: object
目标货币计价的历史最高价
- property类型: number
Name
- ath类型: object
_change _percentage 历史最高价变化百分比
- property类型: number
Name
- ath类型: object
_date 历史最高价日期
- property类型: string
Name
- atl类型: object
目标货币计价的历史最低价
- property类型: number
Name
- atl类型: object
_change _percentage 历史最低价变化百分比
- property类型: number
Name
- atl类型: object
_date 历史最低价日期
- property类型: string
Name
- circulating类型: number
_supply 流通供应量
- current类型: object
_price 目标货币下的当前价格
- property类型: number
Name
- fdv类型: number | null
_to _tvl _ratio 完全稀释估值与总锁定价值之比
- fully类型: object
_diluted _valuation 目标货币下的完全稀释估值
- property类型: number
Name
- high类型: object
_24h 目标货币下的 24 小时最高价
- property类型: number
Name
- last类型: string
_updated 市场数据最后更新时间戳
- low类型: object
_24h 目标货币下的 24 小时最低价
- property类型: number
Name
- market类型: object
_cap 目标货币下的市值
- property类型: number
Name
- market类型: number
_cap _change _24h 目标货币下的 24 小时市值变动
- market类型: object
_cap _change _24h _in _currency 目标货币下的 24 小时市值变动
- property类型: number
Name
- market类型: number
_cap _change _percentage _24h 24 小时市值变动百分比
- market类型: object
_cap _change _percentage _24h _in _currency 各货币的 24 小时市值变动百分比
- property类型: number
Name
- market类型: number
_cap _fdv _ratio 市值与完全稀释估值之比
- market类型: integer | null
_cap _rank 市值排名
- market类型: integer | null
_cap _rank _with _rehypothecated 包含再抵押代币的市值排名
- max类型: number | null
_supply 最大供应量
- max类型: boolean
_supply _infinite 最大供应量无限
- mcap类型: number | null
_to _tvl _ratio 市值与总锁定价值之比
- outstanding类型: number | null
_supply 市场上的流通代币数量
- outstanding类型: number | null
_token _value _usd 流通代币价值(美元)
- price类型: number
_change _24h 目标货币下的 24 小时价格变动
- price类型: object
_change _24h _in _currency 目标货币下的 24 小时价格变动
- property类型: number
Name
- price类型: number
_change _percentage _14d 14 天价格涨跌幅
- price类型: object
_change _percentage _14d _in _currency 各货币的 14 天价格涨跌幅
- property类型: number
Name
- price类型: object
_change _percentage _1h _in _currency 各货币的 1 小时价格涨跌幅
- property类型: number
Name
- price类型: number
_change _percentage _1y 1 年价格涨跌幅
- price类型: object
_change _percentage _1y _in _currency 各货币的 1 年价格涨跌幅
- property类型: number
Name
- price类型: number
_change _percentage _200d 200 天价格涨跌幅
- price类型: object
_change _percentage _200d _in _currency 各货币的 200 天价格涨跌幅
- property类型: number
Name
- price类型: number
_change _percentage _24h 24 小时价格涨跌幅
- price类型: object
_change _percentage _24h _in _currency 各货币的 24 小时价格涨跌幅
- property类型: number
Name
- price类型: number
_change _percentage _30d 30 天价格涨跌幅
- price类型: object
_change _percentage _30d _in _currency 各货币的 30 天价格涨跌幅
- property类型: number
Name
- price类型: number
_change _percentage _60d 60 天价格涨跌幅
- price类型: object
_change _percentage _60d _in _currency 各货币的 60 天价格涨跌幅
- property类型: number
Name
- price类型: number
_change _percentage _7d 7 天价格涨跌幅
- price类型: object
_change _percentage _7d _in _currency 各货币的 7 天价格涨跌幅
- property类型: number
Name
- roi类型: object | null
投资回报率
- currency类型: string
投资回报率货币
- percentage类型: number
投资回报率百分比
- times类型: number
投资回报率倍数
- sparkline类型: array number[]
_7d 7 天 sparkline 价格数据
- total类型: number
_supply 总供应量
- total类型: number | null
_value _locked 总锁定价值
- total类型: object
_volume 目标货币下的总交易量
- property类型: number
Name
- 类型: array object[]tickers
Ticker 数据
- base类型: string
Ticker 基础货币
- bid类型: number
_ask _spread _percentage Ticker 买卖价差百分比
- coin类型: string
_id Ticker 基础货币代币 ID
- coin类型: number
_mcap _usd 市值(美元)
- converted类型: object
_last Ticker 换算后最新价
- btc类型: number
- eth类型: number
- usd类型: number
- converted类型: object
_volume Ticker 换算后交易量
- btc类型: number
- eth类型: number
- usd类型: number
- is类型: boolean
_anomaly Ticker 异常
- is类型: boolean
_stale Ticker 数据陈旧
- last类型: number
Ticker 最新价
- last类型: string
_fetch _at Ticker 最后抓取时间戳
- last类型: string
_traded _at Ticker 最后成交时间戳
- market类型: object
Ticker 交易所
- has类型: boolean
_trading _incentive 交易所交易激励
- identifier类型: string
交易所标识符
- name类型: string
交易所名称
- target类型: string
Ticker 目标货币
- target类型: string
_coin _id Ticker 目标货币代币 ID
- timestamp类型: string
Ticker 时间戳
- token类型: string | null
_info _url Ticker 代币信息 URL
- trade类型: string
_url Ticker 交易 URL
- trust类型: string | null
_score Ticker 信任评分
- volume类型: number
Ticker 交易量
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 \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"id": "bitcoin",
"symbol": "btc",
"name": "Bitcoin",
"web_slug": "bitcoin",
"asset_platform_id": null,
"platforms": {
"": ""
},
"detail_platforms": {
"": {
"decimal_place": null,
"contract_address": ""
}
},
"block_time_in_minutes": 10,
"hashing_algorithm": "SHA-256",
"categories": [
"Cryptocurrency",
"Layer 1 (L1)"
],
"preview_listing": false,
"public_notice": null,
"additional_notices": [],
"has_supply_breakdown": false,
"description": {
"en": "Bitcoin is the first successful internet money based on peer-to-peer technology..."
},
"links": {
"homepage": [
"http://www.bitcoin.org",
"",
""
],
"whitepaper": "https://bitcoin.org/bitcoin.pdf",
"blockchain_site": [
"https://mempool.space/",
"https://blockchair.com/bitcoin/"
],
"official_forum_url": [
"https://bitcointalk.org/"
],
"chat_url": [
""
],
"announcement_url": [
"",
""
],
"snapshot_url": null,
"twitter_screen_name": "bitcoin",
"facebook_username": "bitcoins",
"bitcointalk_thread_identifier": null,
"telegram_channel_identifier": "",
"subreddit_url": "https://www.reddit.com/r/Bitcoin/",
"repos_url": {
"github": [
"https://github.com/bitcoin/bitcoin",
"https://github.com/bitcoin/bips"
],
"bitbucket": []
}
},
"image": {
"thumb": "https://assets.coingecko.com/coins/images/1/thumb/bitcoin.png?1696501400",
"small": "https://assets.coingecko.com/coins/images/1/small/bitcoin.png?1696501400",
"large": "https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1696501400"
},
"country_origin": "",
"genesis_date": "2009-01-03",
"sentiment_votes_up_percentage": 84.07,
"sentiment_votes_down_percentage": 15.93,
"watchlist_portfolio_users": 1541900,
"market_cap_rank": 1,
"market_cap_rank_with_rehypothecated": 1,
"status_updates": [],
"last_updated": "2024-04-07T15:24:51.021Z",
"market_data": {
"current_price": {
"btc": 1,
"eur": 64375,
"usd": 69840
},
"total_value_locked": null,
"mcap_to_tvl_ratio": null,
"fdv_to_tvl_ratio": null,
"roi": null,
"ath": {
"btc": 1.003301,
"eur": 67405,
"usd": 73738
},
"ath_change_percentage": {
"btc": -0.32896,
"eur": -4.54383,
"usd": -5.33399
},
"ath_date": {
"btc": "2024-03-02T16:05:19.446Z",
"eur": "2024-03-14T07:10:36.635Z",
"usd": "2024-03-14T07:10:36.635Z"
},
"atl": {
"btc": 0.99895134,
"eur": 51.3,
"usd": 67.81
},
"atl_change_percentage": {
"btc": 0.10408,
"eur": 125385.41242,
"usd": 102882.36498
},
"atl_date": {
"btc": "2019-10-21T00:00:00.000Z",
"eur": "2013-07-05T00:00:00.000Z",
"usd": "2013-07-06T00:00:00.000Z"
},
"market_cap": {
"btc": 19675377,
"eur": 1265825267281,
"usd": 1373296629498
},
"fully_diluted_valuation": {
"btc": 21000000,
"eur": 1351831155,
"usd": 1466577759
},
"market_cap_fdv_ratio": 1,
"market_cap_rank": 1,
"outstanding_token_value_usd": null,
"market_cap_rank_with_rehypothecated": 1,
"total_volume": {
"btc": 270165,
"eur": 17368113665,
"usd": 18867210007
},
"high_24h": {
"btc": 1,
"eur": 64343,
"usd": 69805
},
"low_24h": {
"btc": 1,
"eur": 62695,
"usd": 67985
},
"price_change_24h": 1619,
"price_change_percentage_24h": 2.37311,
"price_change_percentage_7d": -0.89706,
"price_change_percentage_14d": 6.36178,
"price_change_percentage_30d": 1.81171,
"price_change_percentage_60d": 62.54292,
"price_change_percentage_200d": 157.51875,
"price_change_percentage_1y": 149.76989,
"market_cap_change_24h": 31172487848,
"market_cap_change_percentage_24h": 2.32219,
"price_change_24h_in_currency": {
"btc": 0,
"eur": 1461.64,
"usd": 1618.95
},
"price_change_percentage_1h_in_currency": {
"btc": 0,
"eur": 0.79523,
"usd": 0.79523
},
"price_change_percentage_24h_in_currency": {
"btc": 0,
"eur": 2.32219,
"usd": 2.37311
},
"price_change_percentage_7d_in_currency": {
"btc": 0,
"eur": -1.01955,
"usd": -0.89706
},
"price_change_percentage_14d_in_currency": {
"btc": 0,
"eur": 5.84662,
"usd": 6.36178
},
"price_change_percentage_30d_in_currency": {
"btc": 0,
"eur": 2.28048,
"usd": 1.81171
},
"price_change_percentage_60d_in_currency": {
"btc": 0,
"eur": 60.98834,
"usd": 62.54292
},
"price_change_percentage_200d_in_currency": {
"btc": 0,
"eur": 148.68948,
"usd": 157.51875
},
"price_change_percentage_1y_in_currency": {
"btc": 0,
"eur": 138.20277,
"usd": 149.76989
},
"market_cap_change_24h_in_currency": {
"btc": -49432,
"eur": 28668703539,
"usd": 31172487848
},
"market_cap_change_percentage_24h_in_currency": {
"btc": -0.25084,
"eur": 2.31801,
"usd": 2.32219
},
"total_supply": 21000000,
"max_supply": 21000000,
"max_supply_infinite": false,
"circulating_supply": 19675377,
"outstanding_supply": null,
"last_updated": "2024-04-07T15:24:51.021Z"
},
"tickers": [
{
"base": "BTC",
"target": "USDT",
"market": {
"name": "Binance",
"identifier": "binance",
"has_trading_incentive": false
},
"last": 69816,
"volume": 19988.82111,
"converted_last": {
"btc": 0.99999255,
"eth": 20.441016,
"usd": 69835
},
"converted_volume": {
"btc": 19783,
"eth": 404380,
"usd": 1381537193
},
"trust_score": null,
"bid_ask_spread_percentage": 0.010014,
"timestamp": "2024-04-07T15:23:02+00:00",
"last_traded_at": "2024-04-07T15:23:02+00:00",
"last_fetch_at": "2024-04-07T15:24:00+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": 230926944910.5146
}
]
}