---
title: "GET /private/set_self_trading_config"
method: GET
path: "/private/set_self_trading_config"
tags: ["Account Management", "Private"]
---

# GET /private/set_self_trading_config

`GET /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](https://support.deribit.com/hc/en-us/articles/25944634289693-Account-settings-page#heading-4)

**Scope:** `account:read_write`

[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fset_self_trading_config)

## Query parameters

- `mode` 'reject_taker' | 'cancel_maker', required
- `extended_to_subaccounts` boolean, required
- `block_rfq_self_match_prevention` boolean

## Response `200`

Success response

- OkResponse
  - `jsonrpc` '2.0', required — The JSON-RPC version (2.0)
  - `id` integer — The id that was sent in the request
  - `result` 'ok', required — Result of method execution. `ok` in case of success

---

[API](https://skmtc.net/deribit/apis/deribit-api-2.md) · [All operations](https://skmtc.net/deribit/apis/deribit-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deribit/deribit-api-2/versions/430b3f0bc67c/schema)
