Endpoint
Authentication
Not required. This is a public endpoint and can be called without anAuthorization header.
Parameters
string
required
The trading pair to retrieve candles for, e.g.
BTC-USD or ETH-USDC. Product IDs follow the BASE-QUOTE format and are case-sensitive.string
required
Start of the requested time range as a Unix timestamp (seconds since epoch). For example,
1714521600 represents 2024-05-01T00:00:00Z.string
required
End of the requested time range as a Unix timestamp (seconds since epoch). Must be greater than
start.string
required
Time interval for each candle. Accepted values:
integer
Maximum number of candles to return. The hard limit is 350 candles per request. Defaults to 350 when omitted.
Response
array
Ordered array of candlestick data. Each element is itself an array of six values in the following fixed order:
[start_unix, low, high, open, close, volume]A maximum of 350 candles can be returned per request. If your desired time range contains more candles at the chosen granularity, paginate by splitting the range into multiple requests and advancing
start by 350 × granularity_seconds on each call.Examples
The examples below fetch the last 24 hours of hourly candles for BTC-USD. Theend timestamp is the current time and start is 24 hours earlier.