按 ID 获取币种数据
币种
按 ID 获取币种数据
CoinGecko 收录的某个币种的全部信息:档案、链接、板块、合约地址和完整行情数据。
GET
按 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。授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
路径参数
CoinGecko 代币 ID(例如 bitcoin、ethereum)。通过 /coins/list 获取列表。
查询参数
响应
200 - application/json
币种对象。
The response is of type object.