Skip to main content
Mass Cancel
curl --request GET \
  --url https://{environment}.deribit.com/api/v2/private/cancel_all \
  --header 'Authorization: Bearer <token>'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": 42
}

Documentation Index

Fetch the complete documentation index at: https://docs.deribit.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. The authenticated session determines the portfolio that operations are applied to.

Response

200 - application/json

All open orders and quotes cancelled successfully.

jsonrpc
enum<string>
required

The JSON-RPC version (2.0)

Available options:
2.0
result
number
required

Total number of successfully cancelled orders

Example:

7

id
integer

The id that was sent in the request