History

private/get_funding_history

Changed on

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.

post/private/get_funding_history

Request

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

Request body

GetFundingHistoryRequest required

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

Success

PerpSettlementHistoryResponse required
events, PerpSettlementEventResponse[] required
pagination, Pagination required

Response envelope for paginated RPCs.

Changes

    • info

      the endpoint scheme security DeriveWallet AND DeriveTimestamp AND DeriveSignature was added to the API

    • info

      added the media type application/json for the response with the status