---
title: "private/get_interest_history"
method: POST
path: "/private/get_interest_history"
tags: ["History"]
---

# private/get_interest_history

`POST /private/get_interest_history`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/get_interest_history`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Returns realized interest settlements per subaccount, for a single subaccount or an entire wallet (specify exactly one), optionally bounded by a start/end timestamp window. Each entry gives the asset the interest settled on and the settled interest as a decimal, where a negative value was paid (borrowed) and a positive value was received (supplied).

## Request body

- GetInterestHistoryRequest: Parameters for `private/get_interest_history`. `wallet`, when set, takes precedence over `subaccount_id` and returns the whole wallet's settlements. `[start_timestamp, end_timestamp]` is a unix-millisecond window. Results are capped at 1000 rows, newest first.
  - `end_timestamp` integer, nullable: End of the window, unix milliseconds (default: now / unbounded).
  - `start_timestamp` integer, nullable: Start of the window, unix milliseconds (default 0).
  - `subaccount_id` integer, nullable
  - `wallet` string, nullable

## Response `200`

Success

- InterestHistoryResult
  - `events` InterestPayment[], required
    - `asset` string, nullable: Name of the asset the interest settled on (e.g. `"USDC"`); null if the asset is not in the asset config table.
    - `interest` string, required
    - `subaccount_id` integer, required
    - `timestamp` integer, required

## Other responses

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

## Changes

- **2026-11-12** `75bfa96b8c9e`: 1 info
  - added the optional property `events/items/asset` to the response with the `200` status
- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/get_interest_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)
