GET /pool/candles/{chain}/{pair}/{sym}/{resolution}/{amount}/amount
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/dextools/pool/candles/{chain}/{pair}/{sym}/{resolution}/{amount}/amountCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeHistorical OHLCV candlesticks for a pair paginated by candle count.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chain | path | str | required | Network name or alias (ethereum, eth, matic, 137, solana, …) example: ethereum |
pair | path | str | required | Pair (pool) address. example: 0xa43fe16908251ee70ef74718545e4fe6c5ccec9f |
sym | path | strusd | eth | native | required | Quote unit (usd or native pair quote). default: usdexample: usd |
resolution | path | str1s | 1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 12h | 1d | required | Candle timeframe resolution. default: 15mexample: 15m |
amount | path | int | required | Fixed candle batch size enforced per resolution by Dextools (800 for 5m, 650 for 15m, 350 for 1h, 100 for 1d, other values return HTTP 400 'Parameter amount out of range'). default: 650example: 650 |
ts | query | int | optional | End unix timestamp in seconds (auto-defaults to current time if omitted). example: 1795562000 |
tz | query | int | optional | UTC timezone offset in hours (auto-defaults to 0 if omitted). default: 0example: 0 |
Response
type: object
count key: total
cursor key: next
pagination: cursor
sample: {
"statusCode": "int",
"data": "object"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/dextools/pool/candles/ethereum/0xa43fe16908251ee70ef74718545e4fe6c5ccec9f/usd/15m/650/amount?ts=1795562000&tz=0"