Market Data

public/get_interest_rate_history

Changed on

Returns lending borrow/supply APY OHLC candles for a currency's pool over an optional time window (UTC milliseconds) at a period of 1h or larger (defaults to 1h; sub-hour periods are rejected). An optional risk_universe_id restricts to one pool; otherwise every universe's candles are returned, each tagged and carrying pool total supply/borrow. Public endpoint.

post/public/get_interest_rate_history

Request

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

Request body

GetInterestRateHistoryRequest required

Parameters for public/get_interest_rate_history. Timestamp fields accept either a JSON number or a string-encoded integer, and are UTC milliseconds.

currency, string required
end_timestamp, integer nullable
period, integer nullable
risk_universe_id, integer nullable

Restrict to one risk universe's pool. Omit to return every universe's candles for the currency (each candle is tagged with its universe).

start_timestamp, integer nullable

Response

Success

InterestRateHistoryResult required

Response shape for public/get_interest_rate_history.

interest_rate_history, InterestRateCandle[] required

Changes