GET /pool/candles/{chain}/{pair}/{sym}/{resolution}/{span}/latest
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/dextools/pool/candles/{chain}/{pair}/{sym}/{resolution}/{span}/latestCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeLatest on-the-fly OHLCV candlesticks for a pair.
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 |
span | path | str3h | 6h | day | week | month | required | Time span bucket. default: weekexample: week |
ts | query | int | optional | Current 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/week/latest?ts=1795562000&tz=0"