Skip to Content
Futures

Funding Rate History

GET
/v1/funding-rate/history

Retrieve the historical settled funding rates for one or more futures instruments. This endpoint provides the settled funding rates, updated at the end of each funding period (every 4 hours, 24/7, for all ONEX futures).

An instrument code is the id property from the Instruments endpoint.

from/to accept epoch (s, ms, µs or ns) or an ISO 8601 UTC timestamp ending in Z (or YYYY-MM-DD). from must be on or after 2024-01-01, not in the future, and strictly before to; to is exclusive. If neither is given, the window is the last 7 days (starting at 00:00 UTC). If only from is given, to is from + 7 days (capped at now); if only to is given, from is 7 days earlier (at 00:00 UTC). The range is applied to each record's timestamp.

cursor is an opaque string. Pass the value from the previous response unchanged; it is null on the last page.

Unknown query parameters are rejected with 400 UNEXPECTED_PARAMETERS.

Info: Funding rates are only available for futures markets.

Query Parameters

instrument_code?string

Instrument code (e.g. BTC_USD_P), or a comma-separated list of codes, to fetch settled funding rates for. If not provided, returns settled funding rates for all futures instruments.

from?string

Start of the time range (inclusive). Epoch (s, ms, µs or ns), ISO 8601 UTC timestamp ending in Z, or YYYY-MM-DD.

to?string

End of the time range (exclusive). Same formats as from. The range may span at most 366 days.

limit?integer

Maximum number of funding rate history records to return per page.

Range1 <= value <= 100
Default10
cursor?string

Opaque pagination cursor from the previous response's cursor field.

order?string

Sort order by timestamp. Case-insensitive.

Default"DESC"
Value in"ASC""DESC"

Response Body

OK

application/json
  1. response
funding_rates*array<>
from*string

Effective start of the queried range (ISO 8601, nanosecond precision).

Formatdate-time
to*string

Effective end of the queried range (ISO 8601, nanosecond precision).

Formatdate-time
cursor*|

Opaque cursor for the next page; null on the last page.

Example Request
curl -X GET 'https://api.onetrading.com/fast/v1/funding-rate/history?instrument_code=BTC_USD_P&from=1733397387858&to=1733411787858&limit=100&order=DESC'
Example Response
{  "funding_rates": [    {      "instrument_code": "BTC_USD_P",      "funding_rate": "0.000017909161806883844",      "mark_price": "87829.7",      "time": "1766491200000",      "timestamp": "2025-12-23T12:00:00Z"    },    {      "instrument_code": "BTC_USD_P",      "funding_rate": "0.00002311127",      "mark_price": "87612.4",      "time": "1766476800000",      "timestamp": "2025-12-23T08:00:00Z"    }  ],  "from": "2025-12-17T00:00:00.000000000Z",  "to": "2025-12-24T09:30:00.000000000Z",  "cursor": "eyJlcG9jaCI6MTc2NjQ3NjgwMDAwMDAwMX0="}