Send POST request to /exchange, or use the ExchangeClient SDKs.
cancelAll method over HTTP, or call the higher-level cancel_all / cancelAll methods on the ExchangeClient SDK to cancel all orders for the account.
Method: POST https://api.hotstuff.trade/exchange
| Field | Type | Description |
|---|---|---|
tx_hash | String | Transaction hash in hexadecimal format |
tx_type | Number | Transaction type identifier |
error | String | Error message if request failed, empty string on success |
data | Object | Response data object containing cancel status |
data.success | String | Success status |
data.orders_cancelled | Number | Number of orders cancelled |
address | String | User wallet address in hexadecimal format |