Skip to main content
POST
/
orders
/
bulk
Bulk create and cancel orders
curl --request POST \
  --url https://api-testnet.context.markets/v2/orders/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "operations": [
    {
      "type": "<string>",
      "cancel": {
        "trader": "<string>",
        "nonce": "<string>",
        "signature": "<string>"
      }
    }
  ]
}
'
{
  "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

Bulk operations

operations
object[]
required
Minimum array length: 1

Response

Bulk operations completed

results
object[]
required