获取单个资产的最新价格
GET
/prices/{asset}
授权
ApiKeyAuth
类型
API Key (header: CP-X-API-KEY)
参数
路径参数
asset*
Asset symbol, canonical asset ID, or supported source ID.
类型
必填string
示例
"BTC""bitcoin"响应
Latest price data for the requested asset.
application/json
JSON "id": "bitcoin", "coingecko_id": "bitcoin", "symbol": "BTC", "source": "coingecko", "price_usd": "67890.123456", "market_cap": 0, "market_cap_rank": 0, "last_updated": "string", "pct_change_1h": "67890.123456", "pct_change_24h": "67890.123456", "pct_change_7d": "67890.123456", "pct_change_30d": "67890.123456", "ath": "67890.123456", "ath_change_percentage": "67890.123456", "ath_date": "string"
{
}
