GET /official/margin/funding_rates/historical
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/kalshi/official/margin/funding_rates/historicalCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeHistorical funding rates for a perpetual market.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
ticker | query | str | required | Perps market ticker example: KXBCHPERP |
start_ts | query | int | required | UNIX seconds range start example: 1787400000 |
end_ts | query | int | required | UNIX seconds range end (<= market close) example: 1787500000 |
Response
type: object
data key: funding_rates
pagination: none
sample: {
"funding_rates": "array[4]"
}
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/kalshi/official/margin/funding_rates/historical?ticker=KXBCHPERP&start_ts=1787400000&end_ts=1787500000"