History

private/get_trade_history

Returns a paginated history of executed trades for a single subaccount or an entire wallet (specify exactly one), with optional filters for a time window, order id, instrument name, or quote id. The response includes the trade records and pagination info with total count and page count.

post/private/get_trade_history

Request

  • Base URL: https://api.derive.xyz/v3
  • URL: https://api.derive.xyz/v3/private/get_trade_history
  • Auth: none declared

Request body

from_timestampinteger nullable
instrument_namestring nullable
order_idstring nullable
pageinteger nullable
page_sizeinteger nullable
quote_idstring nullable
subaccount_idinteger nullable
to_timestampinteger nullable
walletstring nullable

Response

Success

subaccount_idinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.