cURL
curl --request POST \
--url https://test.deribit.com/api/v2/private/set_self_trading_config \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--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",
"result": "ok",
"id": 123
}Account Management
private/set_self_trading_config
Configures self-trading prevention settings for the account. Self-trading occurs when orders from the same account (or related subaccounts) match against each other.
You can configure whether self-trading is allowed, blocked, or allowed only for specific scenarios. Settings can be extended to apply to subaccounts as well. For Block RFQ trading, separate self-match prevention settings are available.
📖 Related Support Article: Account settings page
Scope: account:read_write
cURL
curl --request POST \
--url https://test.deribit.com/api/v2/private/set_self_trading_config \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--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",
"result": "ok",
"id": 123
}Query Parameters
Was this page helpful?