Session Management
Private

Read the current Cancel On Disconnect configuration.

  • scope=connection (the default) returns the state for the current WebSocket connection and is available over WebSocket only. Over REST/HTTP it fails with 10030 (must_be_websocket_request), so HTTP clients must pass scope=account.
  • scope=account returns the account setting, works over both WebSocket and REST/HTTP, and requires the account:read scope.

Scope: account:read (only for scope=account)

Try in API console

get/private/get_cancel_on_disconnect

Request

  • Base URL
    https://test.deribit.com/api/v2
  • URL
    https://test.deribit.com/api/v2/private/get_cancel_on_disconnect
  • Auth
    none declared

Query parameters

scope'connection' | 'account'

Specifies if Cancel On Disconnect change should be applied/checked for the current connection or the account (default - connection)<br/><br/> NOTICE: Scope connection can be used only when working via Websocket.

Response

Success response

jsonrpc'2.0' required

The JSON-RPC version (2.0)

idinteger

The id that was sent in the request

Example response

{
  "result": {
    "enabled": true
  }
}

Changes

    • breaking

      for the query request parameter scope, default value connection was added

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status