History

private/get_option_settlement_history

Changed on

Returns option settlement (expiry) events for a single subaccount or an entire wallet (specify exactly one). Each settlement includes the reconstructed option instrument name, the settled amount and value for that expired position, and the realized settlement PnL against the position's cost basis, with and without trading fees.

post/private/get_option_settlement_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

GetOptionSettlementHistoryParams required

Parameters for private/get_option_settlement_history. One of wallet or subaccount_id must be provided; wallet returns every subaccount's settlements.

subaccount_id, integer nullable
wallet, string nullable

Response

Success

OptionSettlementHistoryResponse required
settlements, OptionSettlementResponse[] required

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