Skip to main content
POST
/
orders
/
bulk
/
cancel
Bulk cancel orders
curl --request POST \
  --url https://api-testnet.context.markets/v2/orders/bulk/cancel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cancels": [
    {
      "trader": "<string>",
      "nonce": "<string>",
      "signature": "<string>"
    }
  ]
}
'
{
  "success": true,
  "results": [
    {
      "type": "<string>",
      "success": true,
      "trader": "<string>",
      "nonce": "<string>",
      "alreadyCancelled": true
    }
  ]
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Body

application/json

Cancellations to execute

cancels
object[]
required
Minimum array length: 1

Response

Cancellations completed

success
boolean
required
results
object[]
required