GET /api/v1/fundings

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/lighter/api/v1/fundingsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Historical hourly or daily settled funding rates for a market.

Parameters

nameintypedescription
market_idqueryintrequiredMarket ID (0 = ETH).
example: 0
resolutionquerystr
1h | 1d
requiredFunding resolution (1h or 1d).
example: 1h
start_timestampqueryintrequiredStart Unix timestamp in seconds.
example: 1795796508
end_timestampqueryintrequiredEnd Unix timestamp in seconds.
example: 1795882908
count_backqueryintrequiredNumber of intervals.
example: 5

Response

type: object
data key: fundings
pagination: none
sample: {
  "code": "int",
  "resolution": "str",
  "fundings": "array[24]"
}

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/lighter/api/v1/fundings?market_id=0&resolution=1h&start_timestamp=1795796508&end_timestamp=1795882908&count_back=5"