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

# private/get_funding_history

`POST /private/get_funding_history`

## Request

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

Returns a paginated history of perpetual funding (settlement) events for a single subaccount or an entire wallet (specify exactly one), optionally bounded by a start/end timestamp window and filtered by perpetual instrument name. The response includes the funding events with their instrument name and settled amounts, plus pagination info with total count and page count.

## Request body

- GetFundingHistoryRequest: Parameters for `private/get_funding_history`. `subaccount_id`, `start_timestamp`, and `end_timestamp` accept either a JSON number or a string-encoded integer. Pagination is `page` >= 1, `page_size` in 1..=1000.
  - `end_timestamp` integer, nullable
  - `instrument_name` string, nullable
  - `page` integer, nullable
  - `page_size` integer, nullable
  - `start_timestamp` integer, nullable
  - `subaccount_id` integer, nullable
  - `wallet` string, nullable

## Response `200`

Success

- PerpSettlementHistoryResponse
  - `events` PerpSettlementEventResponse[], required
    - `batch_status` 'Batching' | 'Executing' | 'Da' | 'Proving' | 'Settling' | 'Settled' | 'BatchingError' | 'ExecutingError' | 'DaError' | 'ProvingError' | 'SettlingError' | 'SettledError', required: Batch lifecycle status — the single source of lifecycle truth for every operation in the batch (individual ops carry no status of their own). Each stage has a healthy variant and a corresponding `...Error` variant meaning that stage failed. Serialized as the variant name (string) in API responses.
    - `batch_uuid` string, required: UUID of the settlement batch; a settlement in a reverted or errored batch reflects that status.
    - `funding` string, required
    - `instrument_name` string, required
    - `pnl` string, required
    - `subaccount_id` integer, required
    - `timestamp` integer, required
    - `tx_hash` string, nullable
  - `pagination` Pagination, required: Response envelope for paginated RPCs.
    - `count` integer, required
    - `num_pages` integer, required

## Other responses

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

## Changes

- **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_funding_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)
