Skip to main content
GET
按 ID 获取币种数据
id 返回 CoinGecko 收录的某个币种的全部信息:descriptionlinksimagecategoriesplatformsdetail_platforms(各链上的合约地址)、market_cap_rank,以及包含 current_pricemarket_captotal_volumefully_diluted_valuationathatl(含日期和涨跌幅)的 market_data 区块。体量较大的部分通过 market_datacommunity_datadeveloper_datatickerssparklinelocalization 按需开启——除非确实需要,否则请保持关闭,完整响应体很大。适合用于获取币种档案。如需跨多个币种的价格表,请使用 get_coingecko_coins_markets;如需按合约地址查询同一币种,请使用 get_coingecko_token_data

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

id
string
必填

CoinGecko 代币 ID(例如 bitcoinethereum)。通过 /coins/list 获取列表。

查询参数

localization
boolean
默认值:true
tickers
boolean
默认值:true
market_data
boolean
默认值:true
community_data
boolean
默认值:true
developer_data
boolean
默认值:true
sparkline
boolean
默认值:false

响应

200 - application/json

币种对象。

The response is of type object.