Skip to content

List candles for an asset and interval

GET
/candles/{id}/{interval}

Authorizations

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

Parameters

Path Parameters

id*

Asset ID, symbol, or supported source ID.

Type
string
Required
Examples
"bitcoin""BTC"
interval*

Candle interval.

Type
string
Required
Valid values
"1h""1d""1w""1M"

Query Parameters

from*

Start time in RFC3339 format.

Type
string
Required
Format
"date-time"
to

End time in RFC3339 format. If omitted, the service returns data through the latest available point.

Type
string
Format
"date-time"

Responses

Candles in [open_time_ms, open, high, low, close] format.

application/json
JSON
[
  
[
  
]
]

Playground

Authorization
Variables
Key
Value

Samples