Skip to main content
cURL
curl --request GET \
  --url https://test.deribit.com/api/v2/private/enable_cancel_on_disconnect \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 7859,
  "method": "private/enable_cancel_on_disconnect",
  "params": {
    "scope": "account"
  }
}
'
{
  "jsonrpc": "2.0",
  "id": 1569,
  "result": "ok"
}

Query Parameters

scope
enum<string>

Specifies if Cancel On Disconnect change should be applied/checked for the current connection or the account (default - connection)

NOTICE: Scope connection can be used only when working via Websocket.

Available options:
connection,
account

Response

200 - application/json

Success response

jsonrpc
enum<string>
required

The JSON-RPC version (2.0)

Available options:
2.0
result
enum<string>
required

Result of method execution. ok in case of success

Available options:
ok
id
integer

The id that was sent in the request