Skip to main content
cURL
curl --request GET \
  --url https://test.deribit.com/api/v2/private/set_self_trading_config \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "private/set_self_trading_config",
  "params": {
    "mode": "cancel_maker",
    "extended_to_subaccounts": true,
    "block_rfq_self_match_prevention": true
  }
}
'
{
  "jsonrpc": "2.0",
  "id": 1569,
  "result": "ok"
}

Query Parameters

mode
enum<string>
required

Self trading prevention behavior: reject_taker (reject the incoming order), cancel_maker (cancel the matched order in the book)

Available options:
reject_taker,
cancel_maker
extended_to_subaccounts
boolean
required

If value is true trading is prevented between subaccounts of given account, otherwise they are treated separately

block_rfq_self_match_prevention
boolean

When Block RFQ Self Match Prevention is enabled, it ensures that RFQs cannot be executed between accounts that belong to the same legal entity. This setting is independent of the general self-match prevention settings and must be configured separately.

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