OKX to Enforce Self-Trade Prevention by Default

·

Starting March 14, 2024, at 6:00 PM (UTC+8), OKX will automatically enable Self-Trade Prevention (STP) for all users across every trading product and business line. This update marks a significant step toward enhancing market fairness, reducing unnecessary trading fees, and reinforcing a secure, compliant trading environment.

The STP feature, initially introduced in June 2023 as an optional tool for API traders, will now be mandatory by default, applied at the main account level. This means all new order requests will be subject to self-trade checks—preventing trades between accounts under the same ownership structure.

What Is Self-Trade Prevention?

Self-Trade Prevention (STP) is a risk control mechanism designed to block transactions where a user’s own orders—whether from the same account or linked sub-accounts—match against each other on the order book. Such trades, known as self-trades, offer no real market impact and can lead to inflated volume metrics, wasted fees, and potential manipulation risks.

By enforcing STP universally, OKX aims to:

👉 Discover how advanced trading protections enhance your strategy efficiency.

Who Does This Affect?

This policy applies to all users, including:

The protection operates at the main account level, meaning it covers:

Example Scenario

Consider a main account A with two sub-accounts: A1 and A2. The following trading pairs will be blocked:

Any attempt to execute such trades will result in rejection or cancellation, depending on the order type and matching logic.

How Does STP Work?

When STP is triggered, the system prevents matching orders from executing against each other. The default behavior on OKX is:

Cancel the maker order — If a taker order would result in a self-trade, the existing maker order on the book is canceled first, allowing the taker order to proceed and match with the next available counterparty.

This ensures liquidity remains functional while eliminating internal conflicts.

For API Users: Customizing STP Modes

Advanced traders using API integrations can specify their preferred STP behavior via the stpMode parameter when placing orders. While the default mode cancels the maker, alternative modes may include:

These options provide flexibility for algorithmic strategies that require precise control over execution flow. For full details, refer to the official API documentation.

Key Notes and Considerations

While this change enhances trading integrity, users should be aware of several important points:

1. Cross-Timeframe Self-Trades Are Still Possible

Orders created before and after the STP enforcement date may still result in self-trading if they remain open on the order book. STP only applies to new order submissions after activation.

2. Impact on Block Trading (RFQ Model)

In over-the-counter (OTC) style block trading, if a taker belongs to the same main account as a potential maker, the maker will not receive the Request for Quote (RFQ). This prevents covert self-dealing in large-volume negotiations.

3. Monitoring Order Status

Users can verify whether an order was canceled due to STP through:

This transparency allows traders to audit their activity and adjust strategies accordingly.

👉 Optimize your API trading setup with built-in safety features like STP.

Frequently Asked Questions (FAQ)

Q: Why is OKX making STP mandatory now?

A: To promote fair markets and prevent accidental self-trading that leads to unnecessary fees. As trading volumes and automation increase, systemic safeguards become essential for platform integrity.

Q: Can I disable STP for my account?

A: No. Starting March 14, 2024, STP is enforced by default for all users and cannot be turned off. However, API users can choose different handling modes (e.g., cancel taker vs. cancel maker) using the stpMode parameter.

Q: Does STP apply to all trading products?

A: Yes. This includes spot, futures, perpetual swaps, options, and margin trading across all supported pairs.

Q: Will my open orders be affected before March 14?

A: Open orders placed before the enforcement date may still execute against newly submitted orders after activation if they belong to the same account group. To avoid surprises, review and manage open positions ahead of time.

Q: Is there any performance impact on high-frequency trading?

A: No significant latency impact is expected. The STP check is processed instantly within the matching engine. Most HFT strategies benefit from cleaner execution environments.

Q: What happens if I transfer funds between sub-accounts?

A: Fund transfers are unaffected—STP only governs trade execution. However, placing buy/sell orders across sub-accounts that could match will be blocked.

Building a Safer Trading Ecosystem

OKX’s decision to enforce Self-Trade Prevention reflects a broader industry trend toward responsible innovation. Exchanges worldwide are adopting similar mechanisms to combat spoofing, wash trading, and other manipulative behaviors—especially as regulators scrutinize crypto markets more closely.

By proactively implementing STP, OKX not only protects individual traders but also strengthens overall market credibility—a win for everyone involved.

👉 See how modern trading platforms are redefining security and fairness.

Final Thoughts

With the mandatory rollout of Self-Trade Prevention, OKX continues its commitment to building a transparent, efficient, and user-centric trading environment. Whether you're a casual investor or a professional quant trader, these enhancements ensure your strategies operate in a cleaner, more predictable marketplace.

Stay informed, review your order management practices, and leverage tools like customizable STP modes to optimize your performance in this evolving landscape.

Note: All references to prior dates or promotional content have been removed in compliance with content guidelines.