
An OCO (One Cancels the Other) order is a type of paired order in which two mutually exclusive instructions are placed simultaneously. If one order is executed or triggered, the other is automatically canceled. This mechanism is commonly used to set both take-profit and stop-loss conditions on a single position.
In essence, an OCO order acts as “double insurance” for your trade. If the price reaches your desired target, the take-profit side executes; if market conditions worsen and your stop-loss is triggered, the stop-loss executes and the take-profit order is canceled. This process enables automated risk management without constant monitoring, and eliminates the risk of conflicting orders being executed for the same position.
An OCO order consists of two components: a limit order (specifying the exact price at which you want to transact) and a stop order (setting a trigger price that submits an order when reached). When either side is activated, the other is immediately canceled.
For example, suppose you hold a certain cryptocurrency and want to sell at $110 to take profit while setting a stop-loss trigger at $95. You configure an OCO order: the limit sell price is $110; the stop-loss trigger price is $95, and the stop order price is $94 (after the trigger, a limit order at $94 is placed by the system). If the price rallies to $110 and the limit order fills, the stop-loss side is canceled. If the price drops to $95 first, the stop-loss triggers a $94 limit order, and the take-profit side is canceled.
Key terms involved:
Be sure to review platform-specific rules: on most exchanges, once one side “executes or triggers an order,” the other is canceled immediately. Factors like partial fills, matching delays, or risk controls can affect details, so always consult platform guidelines.
The core advantage of OCO orders is integrated management of both take-profit and stop-loss conditions. Once either condition is met, the other is automatically withdrawn, reducing conflict and minimizing redundant risk.
Key benefits include:
Unlike standalone limit or stop orders, OCO orders are “mutually exclusive pairs.” When one side of an OCO order executes or triggers, the other is automatically canceled. In contrast, individual limit or stop orders are independent and do not cancel each other.
User experience comparison:
OCO orders can be placed on Gate’s spot trading interface by following these steps: OCO Order.
Step 1: Log into your Gate account, navigate to the trading page, and select your desired trading pair (e.g., BTC/USDT).
Step 2: In the order placement area, switch to “OCO” or “Take-Profit & Stop-Loss” (interface wording may vary by version).
Step 3: Enter parameters—typically three fields: take-profit limit price (e.g., 110), stop-loss trigger price (e.g., 95), stop-loss execution price (e.g., 94), and quantity.
Step 4: Confirm your position direction and quantity; double-check that parameters align with your intent (e.g., for a long position, set both sell take-profit and sell stop-loss).
Step 5: Submit your order. You can monitor active orders under “Current Orders.” If either side executes or triggers an order, the other is automatically canceled. To manually cancel, simply use the list controls.
Tip: Field names and details depend on Gate’s official interface and documentation. Parameters may differ between spot and derivatives trading.
OCO orders are ideal when you want to define both a target price and a protective threshold. Typical scenarios include:
Swing trading: After buying, set a take-profit target above market while protecting downside with a stop-loss below a key level.
News or event-driven trading: Anticipating high volatility, set an OCO order to let the system execute your plan whether prices move up or down.
Futures position protection: For leveraged long or short trades, use OCO orders to manage both take-profit and stop-loss, reducing operational errors during fast markets.
Arbitrage or hedging: With hedged assets, use OCO orders to set profit/loss boundaries and manage strategy risk exposure.
OCO orders are not foolproof; understanding their risks is essential before use.
Parameter risk: If trigger and execution prices are too close, rapid market moves may prevent timely execution; too wide a gap may result in slippage from your intended price.
Liquidity and slippage: In thin markets or during price gaps—even after triggering—the actual fill price may differ from your target due to slippage.
Price gaps and trigger failures: Extreme volatility may cause prices to skip over your trigger or briefly touch it before reversing, resulting in unexpected execution/cancellation behavior.
Leverage impact in contracts: Leverage amplifies both gains and losses; even with a stop-loss in place, liquidation risk may persist. Always manage positions and margin carefully.
Platform rule variations: Behavior of OCO orders can differ across products (spot vs. derivatives) or matching engines. Always consult Gate’s latest rules and help documentation.
On spot markets, OCO orders typically manage take-profit and stop-loss for asset holdings. When triggered, they place limit or market sell/buy orders; positions are not forcibly liquidated due to margin.
For derivatives trading, OCO orders must account for leverage, margin requirements, and forced liquidation rules. Take-profit and stop-loss triggers can interact with position risk controls (e.g., risk engine or liquidation during major moves). Parameter settings may include additional conditions depending on position direction.
Always verify parameter meanings and applicability on Gate’s specific product interface before using OCO orders across products.
OCO orders bind two mutually exclusive instructions—when one executes or triggers, the other is automatically canceled—making them a practical tool for managing both take-profit and stop-loss on a single position. Understanding how limit orders and stop orders work, setting appropriate trigger and execution prices, accounting for liquidity and leverage risks, and following Gate’s step-by-step interface guidance will ensure stable risk control and execution value in live trading.
The biggest difference lies in execution logic. An OCO order uses a “one cancels the other” mechanism—you set both a profit target and a stop-loss price simultaneously; when either is triggered, the other is automatically canceled. A standard stop order only executes if the price falls to your specified level—there’s no simultaneous profit locking. With an OCO order, you can protect capital while automating profit-taking in a single trade.
Set your OCO order based on your risk tolerance and expected returns. First determine your stop-loss—typically 5–10% below key support levels to cap losses. Then set your profit target—reference resistance zones or aim for 2–3 times your stop-loss distance to achieve positive reward-to-risk. On Gate, simply choose “OCO” on spot or derivatives pages and enter these two prices to configure quickly.
In highly volatile markets, OCO orders can suffer from “slippage.” When prices spike up or down suddenly, your stop-loss or profit target may be rapidly crossed over. The exchange fills at the best available market price—which can deviate from your targets. To mitigate this, allow buffer zones in your pricing parameters and trade during periods of lower volatility when possible.
No—OCO orders are available in both spot and derivatives trading but behave differently. Spot OCOs settle directly via asset transfers—ideal for long-term holders; derivatives OCOs manage risk—once one leg triggers, it closes out the position while canceling the other leg. Gate supports both scenarios; beginners should start with spot markets to master basic logic.
While rare, it can happen under extreme volatility or exchange delays. If both stop-loss and profit targets are hit at the same time, the exchange will prioritize whichever order reaches its condition first; then it will immediately cancel the other. To avoid this uncertainty, set reasonable price intervals—don’t place stop-losses and profit targets too close together.


