Cancel Order by orderId

Request via this endpoint to cancel a single oco order previously placed.

You will receive cancelledOrderIds field once the system has received the cancellation request. The cancellation request will be processed by the matching engine in sequence. To know if the request is processed (successfully or not), you may check the order status or the update message from the pushes.

HTTP REQUEST

DELETE /api/v3/oco/order/{orderId}

Example

DELETE /api/v3/oco/order/5bd6e9286d99522a52e458de

{
    "cancelledOrderIds": [
        "vs9hqpbivnbpkfdj003ql1kj",
        "vs9hqpbivnbpkfdj003ql1kk"
    ]
}
API KEY PERMISSIONS

This endpoint requires the General permission.

REQUEST URL

This endpoint support `Spot URL``

REQUEST RATE LIMIT

Spot weight:3

PARAMETERS
Param Type Mandatory Description
orderId String Yes Path parameter, Order Id unique identifier
RESPONSES
Param Description
cancelledOrderIds List of two order IDs related to the canceled OCO order

The orderId is the server-assigned order id and not the passed clientOid.

CANCEL REJECT

If the order could not be canceled (already filled or previously canceled, etc), then an error response will indicate the reason in the message field.