cURL
curl --request POST \
--url https://test.deribit.com/api/v2/private/get_cancel_on_disconnect \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 220,
"method": "private/get_cancel_on_disconnect",
"params": {
"scope": "account"
}
}'{
"jsonrpc": "2.0",
"id": 221,
"method": "private/get_cancel_on_disconnect",
"params": {
"scope": "connection"
}
}{
"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
curl --request POST \
--url https://test.deribit.com/api/v2/private/get_cancel_on_disconnect \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 220,
"method": "private/get_cancel_on_disconnect",
"params": {
"scope": "account"
}
}'{
"jsonrpc": "2.0",
"id": 221,
"method": "private/get_cancel_on_disconnect",
"params": {
"scope": "connection"
}
}{
"jsonrpc": "2.0",
"id": 220,
"result": {
"scope": "account",
"enabled": false
}
}Query Parameters
Response
200 - application/json
Success response
Was this page helpful?