跳到正文

按资产 ID 获取最新价格列表

GET
/prices

授权

ApiKeyAuth
类型
API Key (header: CP-X-API-KEY)

响应

Latest price data keyed by canonical asset ID.

application/json
JSON
{
  
"additionalProperties": {
  
  
"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"
  
}
}

试验场

授权

示例