GET /v4/historicalFunding/{market}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/dydx/v4/historicalFunding/{market}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Historical funding rates for one perpetual market, newest first, with the effective time and block height.

Parameters

nameintypedescription
marketpathstrrequiredPerpetual market ticker.
example: BTC-USD
limitqueryintoptionalMaximum number of funding rows to return.
example: 2
effectiveBeforeOrAtquerystroptionalReturn rows effective at or before this ISO timestamp.
example: 2026-11-28T16:21:48.000Z
effectiveBeforeOrAtHeightqueryintoptionalReturn rows effective at or before this block height.
example: 99999999

Response

type: object
data key: historicalFunding
pagination: none
sample: {
  "historicalFunding": "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/historicalFunding/BTC-USD?limit=2&effectiveBeforeOrAt=2026-11-28T16%3A21%3A48.000Z&effectiveBeforeOrAtHeight=99999999"