Subaccounts
Delete subaccount
Deletes a subaccount. The subaccount must have no open orders, positions, or balance. Only the main account can delete its subaccounts.
Authorization
ApiKeyAuth ApiSignatureAuth ApiTimestampAuth x-api-key<token>
API key for authentication
In: header
x-api-signature<token>
HMAC-SHA256 signature: base64(HMAC(timestamp + method + path + body, secret))
In: header
x-api-timestamp<token>
Unix timestamp in seconds
In: header
Request Body
application/json
DeleteSubaccountRequest is the request for DeleteSubaccount.
TypeScript Definitions
Use the request body type in TypeScript.
sub_addr?string
Subaccount wallet address (e.g., "0x1234...").
Response Body
application/json