---
title: "public/get_interest_rate_history"
method: POST
path: "/public/get_interest_rate_history"
tags: ["Market Data"]
---

# public/get_interest_rate_history

`POST /public/get_interest_rate_history`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/public/get_interest_rate_history`
- Auth: none declared

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.

## Request body

- GetInterestRateHistoryRequest: 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 `200`

Success

- InterestRateHistoryResult: Response shape for `public/get_interest_rate_history`.
  - `interest_rate_history` InterestRateCandle[], required
    - `borrow_apy` Ohlc, required: Open, high, low, and close for one series, each a decimal string.
      - `close` string, required
      - `high` string, required
      - `low` string, required
      - `open` string, required
    - `risk_universe_id` integer, required
    - `supply_apy` Ohlc, required: Open, high, low, and close for one series, each a decimal string.
      - `close` string, required
      - `high` string, required
      - `low` string, required
      - `open` string, required
    - `timestamp` integer, required
    - `total_borrow` string, required
    - `total_supply` string, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 1 info
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/public/get_interest_rate_history/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
