Skip to main content
GET
按 Token 地址获取代币数据
按合约地址而非 CoinGecko id 查询完整的币种档案。id 是资产所在链,contract_address 是代币地址;两者均为必填,且没有其他参数。返回结构与 get_coingecko_coins_id 相同——descriptionlinksimagecategoriesplatformsdetail_platformsmarket_cap_rankmarket_data 区块和内嵌的 tickers 数组——并额外包含 contract_address 本身。适合用于从地址识别未知代币。如果只需要当前价格,get_coingecko_simple_token_price_id 更轻量。

授权

Authorization
string
header
必填

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

路径参数

id
string
默认值:ethereum
必填

资产平台 ID(例如 ethereum)。对应 CoinGecko 上的 /asset_platforms 列表。

contract_address
string
默认值:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
必填

代币的合约地址。

响应

200 - application/json

获取某个加密货币的当前数据。

id
string

代币 ID

symbol
string

代币符号

name
string

币种名称

web_slug
string

币种网页 slug

asset_platform_id
string

加密货币资产平台 ID

platforms
object

加密货币资产平台和合约地址

detail_platforms
object

详细的代币资产平台和合约地址

block_time_in_minutes
number

区块链出块时间(分钟)

hashing_algorithm
string | null

区块链哈希算法

categories
string[]

加密货币类别

preview_listing
boolean

预览待上线代币

public_notice
string | null

公告

additional_notices
string[]

其他通知

localization
object

币种名称本地化

description
object

代币描述

链接

image
object

代币图片 URL

country_origin
string

代币来源国家

genesis_date
string<date-time> | null

代币创世日期

contract_address
string

代币合约地址

sentiment_votes_up_percentage
number

代币情绪支持票百分比

sentiment_votes_down_percentage
number

加密货币负面情绪投票百分比

watchlist_portfolio_users
number

在投资组合中关注此代币的用户数量

market_cap_rank
number

按市值计算的加密货币排名

market_cap_rank_with_rehypothecated
number

按市值计算的代币排名,包括再抵押代币

market_data
object

加密货币市场数据

community_data
object

加密货币社区数据

developer_data
object

加密货币开发者数据

status_updates
string[]

代币状态更新

last_updated
string<date-time>

加密货币最后更新时间戳

tickers
object[]

币种行情代码