Skip to Content
Public

Mark Prices

GET
/v1/mark-prices

Retrieves mark prices of futures instruments within the specified date range. Mark prices are those recorded at futures position settlement, one record per instrument and settlement time.

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

Futures instrument code (e.g. BTC_USD_P), or a comma-separated list of codes. If not provided, returns records for all futures instruments.

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
mark_prices*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/mark-prices?instrument_code=BTC_USD_P&order=DESC&from=2026-09-01T00%3A00%3A00Z&to=2026-09-08T00%3A00%3A00Z&limit=2'
Example Response
{  "mark_prices": [    {      "instrument_code": "BTC_USD_P",      "timestamp": "2026-09-28T08:00:00.000000000Z",      "mark_price": "109420.1"    },    {      "instrument_code": "ETH_USD_P",      "timestamp": "2026-09-28T08:00:00.000000000Z",      "mark_price": "4012.9"    }  ],  "from": "2026-09-21T00:00:00.000000000Z",  "to": "2026-09-28T10:01:30.123456789Z",  "cursor": "eyJlcG9jaCI6IjE3NTkwNDY0MDAwMDAwMDAwMDEifQ=="}