GET /v4/candles/perpetualMarkets/{market}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/dydx/v4/candles/perpetualMarkets/{market}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeOHLCV candles for one perpetual market at a chosen resolution, optionally bounded by ISO timestamps.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
market | path | str | required | Perpetual market ticker. example: BTC-USD |
resolution | query | str1MIN | 5MINS | 15MINS | 30MINS | 1HOUR | 4HOURS | 1DAY | required | Candle resolution. example: 1HOUR |
limit | query | int | optional | Maximum number of candles to return. example: 2 |
fromISO | query | str | optional | Start timestamp in ISO 8601 format. example: 2026-11-28T10:21:48.000Z |
toISO | query | str | optional | End timestamp in ISO 8601 format. example: 2026-11-28T16:21:48.000Z |
Response
type: object
data key: candles
pagination: none
sample: {
"candles": "array[2]"
}
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/dydx/v4/candles/perpetualMarkets/BTC-USD?resolution=1HOUR&limit=2&fromISO=2026-11-28T10%3A21%3A48.000Z&toISO=2026-11-28T16%3A21%3A48.000Z"