POST
/
sapi
/
v1
/
batchCancel
curl --request POST \
  --url https://openapi.odyssey.trade/sapi/v1/batchCancel \
  --header 'Content-Type: application/json' \
  --data '{
  "orderIds": [
    123
  ],
  "symbol": "<string>"
}'
{
  "success": [],
  "failed": []
}

Body

application/json

Mass cancellation of orders, maximum 10 orders at a time.

Source: https://exchangeopenapi.gitbook.io/pri-openapi/openapi-doc/spot-trading-api#batch-cancel-order

orderIds
integer[]
required
symbol
string
required

Response

200
application/json
Successful Response

Response of the request: :class:odyssey_exchange_api.requests.SpotBatchCancelOrderRequest.

Contains an arrays with successful cancelled order ids and failed order ids.

Cancellation failure is usually because the order does not exist or the order status has reached the final state.

success
integer[]
failed
integer[]