REST API
Get Crypto Candlesticks
Query public OHLCV candlesticks by currency code, including request parameters, time units, and response fields.
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
Case-insensitive currency code. Currently supported: BTC, ETH, HYPE, XRP, SOL, DOGE, and BNB. Provide either symbol or tag_id.
Example:
"BTC"
Compatibility parameter: positive cryptocurrency tag ID. Provide either symbol or tag_id. Use symbol for new integrations.
Required range:
x >= 1Example:
235
Display interval.
Available options:
1m, 5m, 15m, 1h, 4h, 1d, 1w, 1mon, 1y, all Start time in Unix seconds; omitted or 0 follows the server's default rule.
Required range:
x >= 0End time in Unix seconds; omitted or 0 follows the server's default rule.
Required range:
x >= 0