Market Data

public/get_index_chart_data

Changed on

Returns spot index OHLC candles for a currency between required start_timestamp and end_timestamp (UTC seconds) at the given period granularity (1m up to 1w). Each candle includes open/high/low/close and a price mirroring the close. The requested range is clamped to a maximum number of buckets. Public endpoint.

post/public/get_index_chart_data

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    none declared

Request body

GetIndexChartDataRequest required

Parameters for public/get_index_chart_data. Numeric fields accept either a JSON number or a string-encoded integer. Timestamps are UTC seconds.

currency, string required
end_timestamp, integer required
period, integer required
start_timestamp, integer required

Response

Success

IndexCandle[] required
close_price, string required
high_price, string required
low_price, string required
open_price, string required
price, string required
timestamp, integer required
timestamp_bucket, integer required

Changes