Closed Karlheinzniebuhr closed 2 years ago
fixed by calling it like this
client.cancel_margin_oco_order(
symbol=symbol,
orderId=orderId,
listClientOrderId=listClientOrderId,
isIsolated=isIsolated)
I'm trying to cancel an OCO order
but it gives me this error
APIError(code=-2011): Unknown order list sent.
Also triedWhich gives
APIError(code=-11016): Either orderListId or listClientOrderId must be provided.
AndWhich also gives
APIError(code=-2011): Unknown order list sent.
Is there any way to cancel an OCO order?