Skip to main content
POST
/
orders
/
cancel-v2
Cancel orders in batch
curl --request POST \
  --url https://sandbox.api.btdx.io/orders/cancel-v2 \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "walletIds": [
    "<string>"
  ],
  "eventIds": [
    "<string>"
  ],
  "marketIds": [
    "<string>"
  ],
  "orderIds": [
    "<string>"
  ]
}
'
{
  "_meta": {
    "_count": 123,
    "_page": {
      "_pageNumber": 123,
      "_pageSize": 123,
      "_totalElements": 123,
      "_totalPages": 123
    }
  },
  "ids": [
    "<string>"
  ]
}

Headers

authorization
string
required

Header with the accessToken for the current session

Body

application/json
walletIds
string[]
eventIds
string[]
marketIds
string[]
orderIds
string[]

Response

Returns an IDResponse object containing the IDs of any successfully cancelled orders.

_meta
object
ids
string[]