FAQ
Home
Support Center
FAQ
Spot & Margin Trading
Spot Trading
Order Types
What is an OCO (One-Cancels-the-Other) Order and How to Use It

What is an OCO (One-Cancels-the-Other) Order and How to Use It

2019-08-19 07:10
Last updated: 21 June 2024

What is an OCO order?

A One-Cancels-the-Other (OCO) order combines a stop-limit order and a limit order, where if stop price is triggered or limit order is fully or partially fulfilled, the other is canceled.
An OCO order on Binance consists of a stop-limit order and a limit order with the same order quantity. Both orders must be either buy or sell orders. If you cancel one of the orders, the entire OCO order pair will be canceled.
For more details, please refer to our Binance Academy article What Is an OCO Order?.

How to use the OCO order?

Suppose BNB is trading between 510 USDT and its resistance price of 540 USDT. You would like to buy BNB if the price drops to 500 USDT or rises above 540 USDT.
You can create an OCO order with a limit order of 500 USDT ([Price] on the chart) and a stop-limit order with a stop (trigger) price of 540 USDT. You can then set the stop-limit order’s limit price to 550 USDT, so the order will likely be filled.
When BNB reaches 500 USDT, the limit order will be filled. This means the stop-limit order will be automatically canceled. Similarly, when BNB reaches 540 USDT, the stop-limit order will be triggered and the limit order will be automatically canceled.

OCO buy order example

For buy orders, you can set the stop price (B) above the current price and the price (C) below the current price.
For example, the stop-limit order will be triggered when the price goes up to 3,000 (B), and the limit order will be simultaneously canceled. A limit order with limit price (B1) will be placed into the orderbook. However, if the price drops to 1,500 (C) or below, the limit order will be executed automatically with 1,500 (C) and the stop-limit order will be canceled.

OCO sell order example

For sell orders, you can set the stop price (C) below the current price and the price (B) above the current price.
For example, the stop-limit order will be triggered when the price drops to 1,500 (C), and the limit order will be simultaneously canceled. The limit order with price C1 will then be placed into the orderbook. Otherwise, if the price goes up to 3,000 (B) or above, the limit order will be executed automatically with 3,000 (B) and the stop-limit order will be canceled.

How to place an OCO order on Binance?

Via Website:

1. Log in to your Binance account and go to [Trade] - [Spot]. Click on [OCO] from the Order Type drop down menu.

Via App:

1. Go to [Trade] - [Spot], then select [OCO] from the Order Type drop down menu.
We’ll use a buy OCO order as an example.
2. Enter the order details:
  • [Price] is your limit order’s price, e.g., 500 USDT.
  • [Stop] is the trigger price of your stop-limit order, e.g., 540 USDT.
  • [Limit] is the limit price of the stop-limit order, e.g., 550 USDT.
  • [Amount] is the amount of crypto you want to purchase.
3. Click [Buy BNB] to place the OCO order.

How to check my OCO orders?

Once orders are submitted, you can see all open orders under [Open Orders].
You can also find the history of your executed orders under [Order History].

OCO order setting conditions

For sell orders, you may try:
Price (limit order) > current market price > stop-loss trigger price (stop-limit order)
For buy orders, you may try:
Price (limit order) < current market price < stop-loss trigger price (stop-limit order)
*For stop-limit order, you may try setting the limit price closer to the stop-loss trigger price.
To learn more about Binance spot trading orders, visit the Order Types FAQs page.