Skip to main content
The Product Candles endpoint returns historical OHLCV (open, high, low, close, volume) candlestick data for any supported trading pair. You specify a time range using Unix timestamps and choose from eight granularity levels — from one-minute bars all the way to daily candles. This data is ideal for powering charts, backtesting trading strategies, or computing technical indicators. This is a public endpoint — no authentication is required.

Endpoint

Authentication

Not required. This is a public endpoint and can be called without an Authorization 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. The end timestamp is the current time and start is 24 hours earlier.

Response