OCO Order

Intermediate

Key Takeaways

  • An OCO order combines a limit order with a stop-limit order. When one executes, the other cancels automatically.
  • OCO orders allow traders to define both a profit target and a maximum acceptable loss level for a position at the same time, reducing the need to monitor markets manually.

  • If you cancel one order in an OCO pair manually, the platform also cancels the other order.

  • A related order type, OTOCO (One-Triggers-a-One-Cancels-the-Other), was launched by Binance in June 2024. It adds an entry trigger order that activates an OCO exit pair once filled, enabling fully bracketed trade setups.

What Is an OCO Order?

An OCO (One-Cancels-the-Other) order lets you place two conditional orders simultaneously: one limit order targeting a profit level and one stop-limit order protecting against downside. Only one of the two can execute. When either order is fully or partially filled, the platform automatically cancels the remaining one. Manually canceling one order also removes the other.

OCO orders function as a basic form of trade automation. Instead of watching a position continuously and submitting orders manually, you define both your exit conditions upfront. The order book holds both orders live until one of the trigger conditions is met.

How OCO Orders Work

OCO orders require two price levels set around your current position:

  • Limit order (take-profit side): A price above the current market price where you want to sell and lock in a gain.
  • Stop-limit order (stop-loss side): A trigger price below the current market price. When the market reaches this level, a sell limit order is placed at your specified stop price.

For example, suppose you bought 0.1 BTC at $90,000 based on your market analysis. You want to take profit if the price rises to $100,000, but limit your downside if it falls to $85,000. You could place an OCO order with a limit sell at $100,000 and a stop-limit order with a trigger at $87,000 and a limit price at $85,000. If BTC reaches $100,000 first, the limit order executes and the stop-limit order cancels. If BTC drops to the trigger level instead, the stop-limit order activates and the limit order cancels.

Practical Applications

OCO orders are commonly used in spot trading to manage open positions where liquidity conditions can change quickly. Common use cases include:
  • Protecting an existing position: Set a stop-limit order to limit losses while leaving a limit order open for a potential recovery. The OCO structure ensures only one of the two outcomes triggers a trade.
  • Locking in gains after a move: After a position appreciates, place the limit sell at a target price and the stop-limit below the current price to protect profits already accumulated.
  • Hands-off position management: OCO orders remove the need to stay at the screen. Both conditions are live simultaneously; the market decides which one executes.

Note that using OCO orders effectively requires a solid understanding of both limit and stop-limit order mechanics, including how the stop price and limit price interact on the stop-loss side.

OCO vs. OTOCO Orders

A related and more advanced order type is the OTOCO (One-Triggers-a-One-Cancels-the-Other) order, which Binance launched in June 2024. The difference is in the structure:

  • OCO: Two orders are placed simultaneously for an existing position. When one executes, the other cancels.
  • OTOCO: Three orders are chained. A primary entry order triggers first; once it fills, an OCO exit pair (take-profit + stop-loss) activates automatically. This creates a complete bracket trade setup from a single order submission.

For most traders managing an existing position, a standard OCO order is sufficient. OTOCO is more relevant when you want to automate both entry and exit in one submission.

FAQ

What is an OCO order?

An OCO (One-Cancels-the-Other) order combines a limit order and a stop-limit order for the same position. Only one of the two can execute: when either order fills, the platform automatically cancels the other. If you cancel one order manually, the other is also removed. OCO orders are available on Binance and other major exchanges for spot trading.

How does the stop-limit component of an OCO order work?

The stop-limit component has two prices: a stop (trigger) price and a limit price. When the market reaches the stop price, a limit sell order is placed at the limit price. The stop price is typically set above the limit price to account for fast-moving markets. If the market moves too quickly, the limit order may not execute if the price falls through the limit level before a buyer is found. This distinction matters when setting conservative stop-loss levels.

What is the difference between OCO and OTOCO orders?

An OCO order is placed for an existing position: two exit orders (take-profit limit and stop-loss stop-limit) are live simultaneously, and whichever triggers first cancels the other. An OTOCO (One-Triggers-a-One-Cancels-the-Other) order adds an entry trigger: a primary order is placed first, and once it fills, an OCO exit pair activates automatically. OTOCO lets you define an entire trade bracket (entry, take-profit, and stop-loss) in a single order submission. Binance launched OTOCO support in June 2024.

When should I use an OCO order instead of a simple limit or stop-limit order alone?

Use an OCO order when you want to define both a profit target and a maximum loss threshold simultaneously for an active position. A simple limit order targets one outcome; a simple stop-limit order covers the other. Placing them individually means if one executes, the other remains open, potentially creating an unintended double position or unnecessary exposure. An OCO eliminates that risk by linking the two so only one can execute. This is particularly useful when you cannot monitor your position in real time.

Closing Thoughts

OCO orders are a practical tool for managing risk and setting exit conditions without continuous manual monitoring. They work by linking a limit order and a stop-limit order so that filling one automatically cancels the other. Understanding how both component order types work is the foundation for using OCO orders effectively. For more advanced use cases, the OTOCO order type extends this logic to include an automated entry trigger as well.

Further Reading

Disclaimer: This content is presented to you on an "as is" basis for general information and or educational purposes only, without representation or warranty of any kind. It should not be construed as financial, legal or other professional advice, nor is it intended to recommend the purchase of any specific product or service. You should seek your own advice from appropriate professional advisors. Where the content is contributed by a third party contributor, please note that those views expressed belong to the third party contributor, and do not necessarily reflect those of Binance Academy. Digital asset prices can be volatile. The value of your investment may go down or up and you may not get back the amount invested. You are solely responsible for your investment decisions and Binance Academy is not liable for any losses you may incur. For more information, see our Terms of Use, Risk Warning and Binance Academy Terms.
Compartilhar publicações
Registre uma conta
Coloque seus conhecimentos em prática. Abra uma conta na Binance hoje mesmo.