Subaccounts
private/delete_subaccount
Changed onPermanently deletes one of the caller's subaccounts via a signed action. The subaccount must be fully wound down: no balances or debt, no open orders, RFQs, or quotes, not a vault, not under auction, and not the wallet's fallback subaccount. Deletion never moves value; subaccount ids are never reused. This is an owner-or-admin operation (session keys need the admin scope).
post/private/delete_subaccount
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
Delete Subaccount Request required
nonce, string required
signature, string required
signature_expiry_sec, integer required
signer, string required
subaccount_id, integer required
Response
Success
Delete Subaccount Response required
op_uuid, string required
operation_id, integer 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