Skip to main content

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

NameTypeMandatoryDescription
walletAddressSTRINGYESUser's prediction wallet address
walletIdSTRINGYESWallet ID
cancelInfoList[i].orderIdSTRINGYESInternal order ID to cancel (index i starts from 0)
cancelInfoList[i].vendorSTRINGNOVendor 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"
}
]
}