GET /pool/candles/{chain}/{pair}/{sym}/{resolution}/{span}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/dextools/pool/candles/{chain}/{pair}/{sym}/{resolution}/{span}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Historical OHLCV candlesticks for a pair over a span bucket.

Parameters

nameintypedescription
chainpathstrrequiredNetwork name or alias (ethereum, eth, matic, 137, solana, …)
example: ethereum
pairpathstrrequiredPair (pool) address.
example: 0xa43fe16908251ee70ef74718545e4fe6c5ccec9f
sympathstr
usd | eth | native
requiredQuote unit (usd or native pair quote).
default: usd
example: usd
resolutionpathstr
1s | 1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 12h | 1d
requiredCandle timeframe resolution.
default: 15m
example: 15m
spanpathstr
3h | 6h | day | week | month
requiredTime span bucket.
default: week
example: week
tsqueryintrequiredEnd unix timestamp in seconds.
example: 1795562000
tzqueryintoptionalUTC timezone offset in hours.
default: 0
example: 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/week?ts=1795562000&tz=0"