合約交易

目前文章不支援您所選擇的語言,已為您自動推薦到英語

Introduction to Self-Trade Prevention in Bitget Futures

2025-12-16 02:5604593

[Estimated reading time: 5 mins]

Self-Trade Prevention (STP) is a mechanism employed by the Bitget trading platform to prevent users from inadvertently executing trades with themselves. This reduces unnecessary transaction fees and promotes a fair, transparent trading environment. STP works by identifying orders placed under the same user ID (UID) or linked sub-accounts, and blocking trades that would result in self-matching. This ensures that trading activity accurately reflects true market supply and demand.

Bitget applies STP across its futures trading platform to reduce the risk of price manipulation and uphold compliance and market integrity. Whether the orders originate from a main account and its sub-account, within the same sub-account, or between sub-accounts, STP can detect and prevent potential self-trade scenarios.

How STP prevents self-trading

Let's assume that User A places both buy and sell orders for BTCUSDT on the Bitget USDT-M Futures market. The account setup includes one main account and one sub-account, with the following orders:

• Main account: Places a maker order to buy 1 BTC at 100,000 USDT

• Sub-account: Places a taker order to sell 1 BTC at 100,000 USDT

Without STP, these orders could match, causing the user to trade with themselves and incur unnecessary fees. With STP enabled, the system detects the self-trade and cancels the taker order (e.g., based on the cancel_taker mode), effectively preventing the self-match.

How does STP work

When the system detects a potential self-trade, it executes one of the following actions based on the STP mode:

none mode: Orders are not subject to the STP mechanism. The system does not compare user IDs, and transactions are executed normally.

cancel_taker mode: The taker order is canceled; the maker order remains in the order book.

cancel_maker mode: The maker order is canceled; the taker order proceeds.

cancel_both mode: Both taker and maker orders are canceled.

The STP action is determined by the taker order's STP mode. The STP mode of the existing maker order in the order book is not considered.

How to set STP mode for an order

For order placing API and batch order placing API, the STP mode can be set using the field "stpMode".

For spot trade orders

For futures trade orders

For margin trade orders

Which product lines and order types support STP

Supported product lines

1. Spot

2. Futures

• USDT-M Futures

• USDC-M Futures

• Coin-M Futures (perpetual & delivery)

3. Margin

• Isolated margin

• Cross margin

Supported order types

When Time In Force is set to GTC (Good Till Canceled) or IOC (Immediate or Cancel), the following order types support STP:

1. Limit order

2. Market order

3. Trigger order

4. TP/SL order

Note that STP is not supported when Time in Force is set to FOK.

Modified orders

Modified orders do not support STP. They inherit the STP settings of the original order.

FAQ

1. What is Self-Trade Prevention (STP) on Bitget?

STP is a mechanism that prevents users from accidentally executing trades with themselves. It helps reduce unnecessary transaction fees and ensures that trading activity reflects true market supply and demand.

2. How does STP prevent self-trading?

STP detects orders placed under the same user ID (UID) or linked sub-accounts that would match each other. When a potential self-trade is detected, the system cancels orders according to the selected STP mode (e.g., cancel_taker, cancel_maker, cancel_both).

3. Do modified orders support STP?

No. Modified orders do not support STP directly. They inherit the STP settings of the original order.

4. How can I set the STP mode for an order?

The STP mode can be set when placing an order via the API or batch order API using the field “stpMode”. It can be applied to spot, futures, and margin trade orders.

5. Why is STP important for traders?

STP prevents unnecessary self-trades, reducing transaction fees and ensuring that trading activity accurately reflects market supply and demand. It also supports fair trading and market integrity.

6. Does STP apply across sub-accounts?

Yes. STP can detect potential self-trades not only within the same account but also between linked sub-accounts, preventing accidental matches across accounts.

Disclaimer and Risk Warning

All trading tutorials provided by Bitget are for educational purposes only and should not be considered financial advice. The strategies and examples shared are for illustrative purposes and may not reflect actual market conditions. Cryptocurrency trading involves significant risks, including the potential loss of your funds. Past performance does not guarantee future results. Always conduct thorough research and understand the risks involved. Bitget is not responsible for any trading decisions made by users.

Join Bitget, the World's Leading Crypto Exchange and Web3 Company

Sign up on Bitget now >>>

Follow us on X >>>

Join our Community >>>

分享

link_icon