Skip to main content

Cancel order

POST 

/cancelorder

This endpoint allows cancelling an open order for a Futures contract.

Request

Body

required
    ProcessBefore

    The time before which the request should be processed, otherwise it is rejected.

    order_id string

    The unique identifier of the order to be cancelled.

    cliOrdId string

    The client unique identifier of the order to be cancelled.

Responses

Schema
    oneOf
    cancelStatus object

    A structure containing information on the cancellation request.

    cliOrdId stringnull

    The client order ID. Shown only if client specified one.

    orderEvents object[]
  • Array [
  • oneOf
    type string

    Possible values: [PLACE]

    Always PLACE.

    order object

    The placed order.

    orderId string

    The UID associated with the order.

    cliOrdId stringnull

    The client order id or null if order does not have one.

    type string

    Possible values: [lmt, ioc, post, liquidation, assignment, stp, unwind, block]

    The order type

    symbol string

    The symbol of the Futures.

    side string

    Possible values: [buy, sell]

    The side associated with the order

    quantity number

    The quantity (size) associated with the order.

    filled number

    The total amount of the order that has been filled.

    limitPrice number

    The limit price associated with a limit order.

    reduceOnly boolean

    Is the order a reduce only order or not.

    timestamp string

    The date and time the order was placed.

    lastUpdateTimestamp string

    The date and time the order was edited.

    reducedQuantity numbernull

    The amount of quantity that was removed before placement or null if the order is not a reduce only.

  • ]
  • order_id uuid

    The cancelled order UID

    receivedTime string

    The date and time the order cancellation was received.

    status string

    Possible values: [cancelled, filled, notFound]

    The status of the order cancellation:

    • cancelled - The order has been cancelled. This may only be part of the order as part may have been filled. Check open_orders websocket feed for status of the order.
    • filled - The order was found completely filled and could not be cancelled
    • notFound - The order was not found, either because it had already been cancelled or it never existed
    result stringrequired

    Possible values: [success]

    serverTime date-timerequired

    Server time in Coordinated Universal Time (UTC)

Loading...