I'm working with python-binance. In my code, I place a futures market order, using this code:
order = self.client.futures_create_order(
symbol=coin_pare,
type='MARKET',
side=route,
quantity=value * self.main_leverage,
)
Then, when I want to close this order, I decide to use cancel_order in this library, using this code:
self.client.cancel_order(symbol=pare, orderId=order_id, origClientOrderId=client_order_id)
And I get an error: APIError(code=-2011): Unknown order sent.
Is there another way how to cancel certain order?