Binance error -2011, CANCEL_REJECTED, arrives with the message "Unknown order sent." The cancel asked for an order that is not open under that symbol and id. The order has already filled, has already been cancelled or expired, was sent with the wrong symbol or id, or is a stop that lives on the Algo Order API under a different id. -2013, NO_SUCH_ORDER, "Order does not exist.", is the same answer to a look-up. Neither code changes anything on the account. To learn which case you have, query the order with GET /fapi/v1/order. A status of FILLED means you hold a position you tried to avoid. CANCELED or EXPIRED means nothing is left to do. A -2013 on that query points at the id, the symbol, the endpoint or the order's age.
The codes
Quoted from Binance's USDⓈ-M Futures error list, read on 21 November 2026.
| Code | Binance's name | Binance's text | Where it appears |
|---|---|---|---|
| -2011 | CANCEL_REJECTED |
Cancel request failure as open order not found in the orderbook: "Unknown order sent". | A cancel |
| -2012 | CANCEL_ALL_FAIL |
Batch cancel failure. | A cancel of several orders |
| -2013 | NO_SUCH_ORDER |
Order does not exist. | A query |
The error list gives the long sentence for -2011. The answer an API client receives is shorter. Binance's own example on its Cancel Multiple Orders page shows it: "code": -2011, "msg": "Unknown order sent."
A cancel can only remove an order that is still open. Everything below is a way for an order to stop being open, or to never have been open under the name you used.
Find out what happened to the order
A -2011 tells you the order is not open. It does not tell you whether it traded. Find that out before you place anything new.
- Query the order.
GET /fapi/v1/orderwith the samesymboland the sameorderIdororigClientOrderIdyou used in the cancel. - Read
statusandexecutedQty. Binance's order statuses areNEW,PARTIALLY_FILLED,FILLED,CANCELED,REJECTED,EXPIREDandEXPIRED_IN_MATCH. - Check the position on that symbol with
GET /fapi/v3/positionRisk, or on the Positions tab.
| The query answers | What happened | What to do |
|---|---|---|
FILLED |
The order traded before the cancel arrived | You have the position, or the close, that the order was for. Manage it |
CANCELED or EXPIRED, executedQty 0 |
It ended without trading | Nothing. Stop sending the cancel |
CANCELED or EXPIRED, executedQty above 0 |
Part of it traded, the rest is gone | Treat the filled part as a position |
NEW or PARTIALLY_FILLED |
The order is open, and the cancel named something else | Compare the symbol and id of the two requests |
| -2013 | This endpoint has no such order | Wrong symbol, wrong id, an algo order, or too old. See below |
One trap sits in the choice of endpoint. GET /fapi/v1/openOrder looks like the natural check, and Binance's page for it says: "If the queried order has been filled or cancelled, the error message "Order does not exist" will be returned." A -2013 from that call only repeats what the -2011 said. GET /fapi/v1/order is the one that returns the final status.
The order already filled
A cancel and a fill can cross. You decide to pull a limit order, the price reaches it first, and by the time the cancel arrives there is nothing resting to remove. The query shows FILLED.
This is the case that costs money when it is misread. Software that takes -2011 as "cancelled" and moves on now has a position it does not know about, with no stop on it. If the order was an entry, protect the position or close it. How to set a stop loss in crypto covers where the stop goes.
The opposite direction is harmless. We have seen -2011 on accounts our autotrader trades when it went to cancel a leftover stop-loss and the stop had already triggered and closed the position. The stop had done its job, and there was nothing left to cancel. HafizeBot's autotrader reads -2011 on a cancel as "this order is already gone" and removes it from its own list.
The order was already cancelled or expired
Several things can end an order before your cancel does:
- You cancelled it already. A second cancel for the same id answers -2011. A retry after a slow first reply is the usual way this happens.
- A cancel-all removed it.
DELETE /fapi/v1/allOpenOrdersclears the open orders on a symbol, and the app has a [Cancel All] button. - A countdown ran out. With
POST /fapi/v1/countdownCancelAll, in Binance's words, "all your orders of the specified symbol will be automatically canceled" when the heartbeat stops. - Binance ended it. Its TP/SL FAQ: "After closing the position, the TP/SL will be automatically canceled." Orders can also end as
EXPIRED; why a take-profit or stop-loss shows Expired lists the system endings.
In all of these the query shows CANCELED or EXPIRED, and the cancel you sent was not needed.
Right order, wrong symbol or wrong id
symbol is required on a cancel and on a query, and the id only means something together with it. Binance's Query Order page: "orderId is self-increment for each specific symbol". The number of your ETHUSDT order, sent with symbol=BTCUSDT, names a different order or none.
Then there are the two ids. Binance: "Either orderId or origClientOrderId must be sent."
orderIdis the number Binance returned when the order was accepted.origClientOrderIdis the text you sent asnewClientOrderIdwhen you placed it. Binance describes that field as "A unique id among open orders. Automatically generated if not sent." If you did not set one, the generated value is in the placement answer asclientOrderId.
Mistakes we would check first: a number put into origClientOrderId or a client id put into orderId, a client id that was shortened or re-cased on the way, and an id that belongs to another account or sub-account.
One case deserves its own line. If the request that placed the order timed out, you never received an orderId, and the only handle you have is your own client id. Query by origClientOrderId. A status means the order went in. HafizeBot's autotrader reads a -2013 on that look-up as "the entry never reached the book". Binance Futures maintenance: positions, stops and orders has the full table of answers that leave an order's fate unknown.
Stops and take-profits are cancelled on the algo endpoint
Since 9 December 2025, stop, take-profit and trailing-stop orders on USDⓈ-M Futures are placed through the Algo Order API, and they keep their own ids there until they trigger. The -4120 post covers the move. For cancelling, it means two sets of calls:
| Limit and market orders | Untriggered conditional orders | |
|---|---|---|
| Binance's id | orderId |
algoId |
| Your id | origClientOrderId |
clientAlgoId |
| Cancel one | DELETE /fapi/v1/order |
DELETE /fapi/v1/algoOrder |
| Query one | GET /fapi/v1/order |
GET /fapi/v1/algoOrder |
| List open | GET /fapi/v1/openOrders |
GET /fapi/v1/openAlgoOrders |
| Cancel all on a symbol | DELETE /fapi/v1/allOpenOrders |
DELETE /fapi/v1/algoOpenOrders |
Binance's Cancel Algo Order page: "Cancel an active algo (conditional) order, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures." It takes algoId or clientAlgoId: "Either algoId or clientAlgoId must be sent."
An algoId is not an orderId. A stop that was placed on the algo endpoint has to be cancelled and queried there. Binance's pages do not say which code the ordinary order endpoint returns when it is given an algo id, so we will not name one.
The id changes once more when the stop triggers. The query answer for an algo order has a field actualOrderId, which Binance describes as "Empty string if not triggered; orderId if triggered." From that moment the order that trades is an ordinary one, and its status is read from GET /fapi/v1/order with that id. In the app the same hand-over is visible: Binance's FAQ "What are Conditional Orders?" says a conditional order sits in the [Conditional] tab of Open Orders, and "If the conditional order is triggered but remains unfilled, it will move to the [Basic] tab."
A cancel that reaches the algo endpoint after the stop is gone is refused as well. In our autotrader that refusal has carried the same code, -2011, and it is handled the same way. Binance's error list does not tie the code to the algo endpoint, so take that as our observation.
The order is too old to look up
Binance does not keep every order queryable. Its Query Order page lists what "will not be found":
- "order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time"
- "order create time + 90 days < current time"
So an order that was cancelled without trading disappears from the query three days after it was created, and every order disappears after 90 days. The same two rules are on the pages for GET /fapi/v1/allOrders, GET /fapi/v1/algoOrder and GET /fapi/v1/allAlgoOrders. The page says "will not be found" without naming a code; in our experience the answer to such a late query is -2013.
If you need the record after that, Binance has a download. GET /fapi/v1/order/asyn requests an order-history file for a period of up to one year, and the limit is tight: "Request Limitation is 10 times per month, shared by front end download page and rest api".
The practical rule for a bot: store the final status of an order when you first learn it. On the day it costs one request. A week later the same question may have no answer.
What a bot should do with -2011
- Do not retry the cancel. The answer will not change, and each attempt spends request weight. Binance API rate limits explains the budget.
- Do not treat it as "cancelled". Query the order and branch on
FILLEDagainst everything else. - Do not place the replacement first. If the old order filled and you send a new one, you have twice the size.
- Route by service. Keep a mark on each stored order saying whether it is an ordinary order or an algo order, and send the cancel to the matching endpoint.
- Read batch answers one by one.
DELETE /fapi/v1/batchOrderstakes up to 10 ids and answers each order separately, so one entry in the list can carry -2011 while the others were cancelled. - Log the request with the error: symbol, id type and id.
The full list of Binance Futures error codes has the neighbours of -2011.
Frequently asked questions
What does "Unknown order sent" mean on Binance?
It is the message of error -2011, CANCEL_REJECTED. The order you tried to cancel is not open under that symbol and id: it filled, was cancelled or expired already, or the id or symbol does not match.
Did my order get cancelled if I received -2011?
The code does not say. It only says the order is not open now. Query it with GET /fapi/v1/order; FILLED means it traded, CANCELED or EXPIRED means it did not.
What is the difference between -2011 and -2013? -2011 answers a cancel and -2013 answers a query. Both mean the endpoint has no such order to act on.
Why can't I cancel my stop loss through the API?
An untriggered stop is an algo order. Cancel it with DELETE /fapi/v1/algoOrder and its algoId or clientAlgoId. The ordinary cancel call takes orderId or origClientOrderId only.
How long can I query an old Binance Futures order? For 90 days after it was created. A cancelled or expired order that never traded is dropped after three days.
Is -2011 a problem with my API key or my account? No. The key was accepted and the request was understood. The refusal is about one order.
Query before you act
A refused cancel means the order is not open, and the query tells you why. Sources: Binance's USDⓈ-M Futures error list, its REST pages for Cancel Order, Query Order, Query Current Open Order, All Orders, Cancel Multiple Orders, Cancel Algo Order, Query Algo Order and the order-history download, and its FAQs "What are Conditional Orders?" and "What Are Limit TP/SL Orders (Strategy Orders)", all read on 21 November 2026, and HafizeBot's own order code.
HafizeBot publishes its signals with their results on the performance page, and the stronger ones reach the free Telegram channel 20 minutes after VIP. None of this is investment advice. Futures positions can lose their whole margin; trade only what you can afford to lose.