This endpoint allows cancelling orders which are associated with a future’s contract or a margin account. If no arguments are specified all open orders will be cancelled.
curl --request POST \
--url https://futures.kraken.com/derivatives/api/v3/cancelallorders \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"result": "success",
"cancelStatus": {
"receivedTime": "2019-08-01T15:57:37.518Z",
"cancelOnly": "all",
"status": "cancelled",
"cancelledOrders": [
{
"order_id": "6180adfa-e4b1-4a52-adac-ea5417620dbd"
},
{
"order_id": "89e3edbe-d739-4c52-b866-6f5a8407ff6e"
},
{
"order_id": "0cd37a77-1644-4960-a7fb-9a1f6e0e46f7"
}
],
"orderEvents": [
{
"type": "CANCEL",
"uid": "89e3edbe-d739-4c52-b866-6f5a8407ff6e",
"order": {
"orderId": "89e3edbe-d739-4c52-b866-6f5a8407ff6e",
"type": "post",
"symbol": "PF_XBTUSD",
"side": "buy",
"quantity": 890,
"filled": 0,
"limitPrice": 10040,
"reduceOnly": false,
"timestamp": "2019-08-01T15:57:08.508Z",
"lastUpdateTimestamp": "2019-08-01T15:57:08.508Z"
}
},
{
"type": "CANCEL",
"uid": "0cd37a77-1644-4960-a7fb-9a1f6e0e46f7",
"order": {
"orderId": "0cd37a77-1644-4960-a7fb-9a1f6e0e46f7",
"type": "lmt",
"symbol": "PF_XBTUSD",
"side": "sell",
"quantity": 900,
"filled": 0,
"limitPrice": 10145,
"reduceOnly": true,
"timestamp": "2019-08-01T15:57:14.003Z",
"lastUpdateTimestamp": "2019-08-01T15:57:14.003Z"
}
}
]
},
"serverTime": "2019-08-01T15:57:37.520Z"
}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.
General API key with full access
Authentication string
A futures product to cancel all open orders.
curl --request POST \
--url https://futures.kraken.com/derivatives/api/v3/cancelallorders \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"result": "success",
"cancelStatus": {
"receivedTime": "2019-08-01T15:57:37.518Z",
"cancelOnly": "all",
"status": "cancelled",
"cancelledOrders": [
{
"order_id": "6180adfa-e4b1-4a52-adac-ea5417620dbd"
},
{
"order_id": "89e3edbe-d739-4c52-b866-6f5a8407ff6e"
},
{
"order_id": "0cd37a77-1644-4960-a7fb-9a1f6e0e46f7"
}
],
"orderEvents": [
{
"type": "CANCEL",
"uid": "89e3edbe-d739-4c52-b866-6f5a8407ff6e",
"order": {
"orderId": "89e3edbe-d739-4c52-b866-6f5a8407ff6e",
"type": "post",
"symbol": "PF_XBTUSD",
"side": "buy",
"quantity": 890,
"filled": 0,
"limitPrice": 10040,
"reduceOnly": false,
"timestamp": "2019-08-01T15:57:08.508Z",
"lastUpdateTimestamp": "2019-08-01T15:57:08.508Z"
}
},
{
"type": "CANCEL",
"uid": "0cd37a77-1644-4960-a7fb-9a1f6e0e46f7",
"order": {
"orderId": "0cd37a77-1644-4960-a7fb-9a1f6e0e46f7",
"type": "lmt",
"symbol": "PF_XBTUSD",
"side": "sell",
"quantity": 900,
"filled": 0,
"limitPrice": 10145,
"reduceOnly": true,
"timestamp": "2019-08-01T15:57:14.003Z",
"lastUpdateTimestamp": "2019-08-01T15:57:14.003Z"
}
}
]
},
"serverTime": "2019-08-01T15:57:37.520Z"
}