v2

OpenAPI 3.0.02026-07-311824171.4 MB
Account Management
Private

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

Try in API console

get/private/set_self_trading_config

Query parameters

mode'reject_taker' | 'cancel_maker' required

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

extended_to_subaccountsboolean required

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

block_rfq_self_match_preventionboolean

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

Success response

jsonrpc'2.0' required

The JSON-RPC version (2.0)

idinteger

The id that was sent in the request

result'ok' required

Result of method execution. ok in case of success