Skip to main content
GET
Get Crypto Candlesticks
Use a currency code to query public OHLCV candlesticks. Authentication is not required. Base URL: https://api.dexbuilder.com

Request parameters

Provide exactly one of symbol or tag_id. The tag_id parameter remains temporarily supported; existing integrations should migrate to symbol. When both boundaries are nonzero, end_ts must be greater than start_ts. interval selects a display interval and does not guarantee the width of each returned candlestick. Use history[].t to read sample times. interval=all does not guarantee the full price history; specify start_ts and end_ts to query a particular range.

Response

A successful response contains the currency pair, display interval, and candlestick history:
history[].t is a Unix timestamp in seconds. Open, high, low, close, and volume are decimal strings. source is a data source name and is omitted when unavailable. Sources without volume may return "0"; no data returns an empty history array. Invalid parameters return HTTP 400 with label set to INVALID_PARAM_VALUE. An unavailable quote source returns HTTP 503 with label set to QUOTE_UNAVAILABLE.

Query Parameters

symbol
string

Case-insensitive currency code. Currently supported: BTC, ETH, HYPE, XRP, SOL, DOGE, and BNB. Provide either symbol or tag_id.

Example:

"BTC"

tag_id
integer

Compatibility parameter: positive cryptocurrency tag ID. Provide either symbol or tag_id. Use symbol for new integrations.

Required range: x >= 1
Example:

235

interval
enum<string>
required

Display interval.

Available options:
1m,
5m,
15m,
1h,
4h,
1d,
1w,
1mon,
1y,
all
start_ts
integer

Start time in Unix seconds; omitted or 0 follows the server's default rule.

Required range: x >= 0
end_ts
integer

End time in Unix seconds; omitted or 0 follows the server's default rule.

Required range: x >= 0

Response

Request succeeded

Crypto candlestick response.

symbol
string
required

Currency pair identifier.

interval
string
required
history
object[]
required

OHLCV candlesticks in time order.

source
string

Data source name; omitted when unavailable.