本文へスキップ

アセットと間隔を指定して最新ローソク足を取得

GET
/candles/{id}/{interval}/latest

認証

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

パラメータ

パスパラメータ

id*

Asset ID, symbol, or supported source ID.

string
必須
"bitcoin""BTC"
interval*

Candle interval.

string
必須
有効な値
"1h""1d""1w""1M"

レスポンス

Latest candle in [open_time_ms, open, high, low, close] format.

application/json
JSON
[
  
1704067200000,
  
"67890.123456",
  
"67890.123456",
  
"67890.123456",
  
"67890.123456"
]

Playground

認証
変数
キー

サンプル