Skip to Content
Futures

Index Prices

GET
/v1/funding-rate/index-prices

Retrieve the history of index prices for USD perpetuals (_USD_P), together with the mark price and preliminary funding rate calculated at the same time. A record is produced each time the funding rate is recalculated (roughly every minute).

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).

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.

Query Parameters

instrument_code?string

Instrument code (e.g. BTC_USD_P), or a comma-separated list of codes. Only USD-quoted futures instruments are accepted, but only USD perpetuals (_USD_P) have records; a USD dated future returns an empty list. If not provided, returns records for all USD perpetuals.

order?string

Sort order by timestamp. Case-insensitive.

Default"DESC"
Value in"ASC""DESC"
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.

cursor?string

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

limit?integer

Maximum number of records to return per page.

Range1 <= value <= 1000
Default100

Response Body

OK

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

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

Formatdate-time
to*string

Effective end of the queried range (ISO 8601, microsecond 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/index-prices?instrument_code=BTC_USD_P&order=DESC&from=2026-09-01T00%3A00%3A00Z&to=2026-09-08T00%3A00%3A00Z&limit=100'
Example Response
{  "index_prices": [    {      "instrument_code": "BTC_USD_P",      "timestamp": "2026-09-28T10:01:00.000000Z",      "index_price": "109412.35",      "mark_price": "109420.1",      "funding_rate": "0.0000125"    },    {      "instrument_code": "ETH_USD_P",      "timestamp": "2026-09-28T10:01:00.000000Z",      "index_price": "4012.18",      "mark_price": "4012.9",      "funding_rate": "0.0000087"    }  ],  "from": "2026-09-21T00:00:00.000000Z",  "to": "2026-09-28T10:01:30.123456Z",  "cursor": "eyJlcG9jaCI6IjE3NTkwNTM2MDAwMDAwMDEifQ=="}