python-binance
python-binance copied to clipboard
Cannot Cancel an order, error (code=-2011)
Hi I have tried the following both but I have this error: binance_client.cancel_order(symbol=Ticker, orderId=Orders_NEW['orderId'][4], origClientOrderId = Orders_NEW['clientOrderId'][4]) binance_client.cancel_order(symbol=Ticker, orderId=Orders_NEW['orderId'][4])
APIError(code=-2011): Unknown order sent.
I have the same problem but in Futures API.
Can't cancel any order
Even using directly : binance_client._request_futures_api('delete', 'order', True, data={'symbol': 'LUNAUSDT','orderId': 3075632315})
Always get: APIError(code=-2011): Unknown order sent
i have the same problem
Hi I have tried the following both but I have this error: binance_client.cancel_order(symbol=Ticker, orderId=Orders_NEW['orderId'][4], origClientOrderId = Orders_NEW['clientOrderId'][4]) binance_client.cancel_order(symbol=Ticker, orderId=Orders_NEW['orderId'][4])
APIError(code=-2011): Unknown order sent.
USE THIS:- result = client.futures_cancel_order( symbol=symbol, orderId=orderId) ) This solved it for me
I'm getting this error when trying to cancel a OCO order
client.cancel_margin_order(
symbol='BTCUSDT',
orderId='11689712515')
binance.exceptions.BinanceAPIException: APIError(code=-2011): Unknown order sent.
same problem. If anyone know how to resolve this please advise