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 freeHistorical funding rates for one perpetual market, newest first, with the effective time and block height.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
market | path | str | required | Perpetual market ticker. example: BTC-USD |
limit | query | int | optional | Maximum number of funding rows to return. example: 2 |
effectiveBeforeOrAt | query | str | optional | Return rows effective at or before this ISO timestamp. example: 2026-11-28T16:21:48.000Z |
effectiveBeforeOrAtHeight | query | int | optional | Return 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"