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 free

OHLCV candles for one perpetual market at a chosen resolution, optionally bounded by ISO timestamps.

Parameters

nameintypedescription
marketpathstrrequiredPerpetual market ticker.
example: BTC-USD
resolutionquerystr
1MIN | 5MINS | 15MINS | 30MINS | 1HOUR | 4HOURS | 1DAY
requiredCandle resolution.
example: 1HOUR
limitqueryintoptionalMaximum number of candles to return.
example: 2
fromISOquerystroptionalStart timestamp in ISO 8601 format.
example: 2026-11-28T10:21:48.000Z
toISOquerystroptionalEnd 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"