History
private/get_option_settlement_history
Changed onReturns 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 URLhttps://api.derive.xyz/v3
- AuthAPI key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature
Request body
Get Option Settlement History Params 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
Option Settlement History Response required
settlements, Option Settlement Response[] required
Changes
- info
the endpoint scheme security
DeriveWallet AND DeriveTimestamp AND DeriveSignaturewas added to the API - info
added the media type
application/jsonfor the response with the status
- info