curl --request GET \
--url https://test.deribit.com/api/v2/private/get_cancel_on_disconnect \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 220,
"method": "private/get_cancel_on_disconnect",
"params": {
"scope": "account"
}
}
'{
"jsonrpc": "2.0",
"id": 220,
"result": {
"scope": "account",
"enabled": false
}
}Session Management
private/get_cancel_on_disconnect
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 with10030(must_be_websocket_request), so HTTP clients must passscope=account.scope=accountreturns the account setting, works over both WebSocket and REST/HTTP, and requires theaccount:readscope.
Scope: account:read (only for scope=account)
curl --request GET \
--url https://test.deribit.com/api/v2/private/get_cancel_on_disconnect \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 220,
"method": "private/get_cancel_on_disconnect",
"params": {
"scope": "account"
}
}
'{
"jsonrpc": "2.0",
"id": 220,
"result": {
"scope": "account",
"enabled": false
}
}Query Parameters
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
The JSON-RPC version (2.0)
Available options:
2.0 The id that was sent in the request
Was this page helpful?