Batch Cancel Orders (PREDICTION_TRADE)
API Description
Cancel one or more active prediction orders in a single request. Requires SAS authorization.
HTTP Request
POST /sapi/v1/w3w/wallet/prediction/trade/batch-cancel
Request Weight(IP)
200
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| walletAddress | STRING | YES | User's prediction wallet address |
| walletId | STRING | YES | Wallet ID |
| cancelInfoList[i].orderId | STRING | YES | Internal order ID to cancel (index i starts from 0) |
| cancelInfoList[i].vendor | STRING | NO | Vendor identifier for the order |
Note: Use dot notation for nested list fields:
cancelInfoList[0].orderId,cancelInfoList[1].orderId, etc.
Response Example
{
"canceled": [
"54124",
"54125"
],
"failed": [
{
"orderId": "54126",
"reason": "ORDER_NOT_FOUND"
}
]
}