Cancel multiple open orders by txid, userref or cl_ord_id(maximum 50 total unique IDs/references)
API Key Permissions Required: Orders and trades - Create & modify orders or Orders and trades - Cancel & close orders
curl --request POST \
--url https://api.kraken.com/0/private/CancelOrderBatch \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"orders": [
"OP5V2Y-RYKVL-ET3V3B",
"OP5V2Y-7YKVL-ET3V3B"
]
}
'{
"error": [],
"result": {
"count": 2
}
}Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The "API-Key" header should contain your API key.
Authenticated requests should be signed with the "API-Sign" header, using a signature generated with your private key, nonce, encoded payload, and URI path.
Open order cancelled.
curl --request POST \
--url https://api.kraken.com/0/private/CancelOrderBatch \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"orders": [
"OP5V2Y-RYKVL-ET3V3B",
"OP5V2Y-7YKVL-ET3V3B"
]
}
'{
"error": [],
"result": {
"count": 2
}
}