public/get_interest_rate_history
Changed onReturns 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.
Request
- Base URLhttps://api.derive.xyz/v3
- Authnone declared
Request body
Parameters for public/get_interest_rate_history. Timestamp fields accept either a JSON number or a string-encoded integer, and are UTC milliseconds.
Restrict to one risk universe's pool. Omit to return every universe's candles for the currency (each candle is tagged with its universe).
Response
Success
Response shape for public/get_interest_rate_history.
Changes
- info
added the media type
application/jsonfor the response with the status
- info