本文へスキップ

単一アセットの最新価格を取得

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"
}

Playground

認証
変数
キー

サンプル