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.
instrument_code?stringInstrument 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?stringSort order by timestamp. Case-insensitive.
"DESC""ASC""DESC"from?stringStart of the time range (inclusive). Epoch (s, ms, µs or ns), ISO 8601 UTC timestamp ending in Z, or YYYY-MM-DD.
to?stringEnd of the time range (exclusive). Same formats as from. The range may span at most 366 days.
cursor?stringOpaque pagination cursor from the previous response's cursor field.
limit?integerMaximum number of records to return per page.
1 <= value <= 1000100OK
application/json- response
index_prices*array<>from*stringEffective start of the queried range (ISO 8601, microsecond precision).
date-timeto*stringEffective end of the queried range (ISO 8601, microsecond precision).
date-timecursor*|Opaque cursor for the next page; null on the last page.
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'{ "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=="}