Skip to main content

Cancel all orders

POST 

/cancelallorders

This endpoint allows cancelling orders which are associated with a future's contract or a margin account. If no arguments are specified all open orders will be cancelled.

Request

Query Parameters

    symbol string

    A futures product to cancel all open orders.

Responses

Schema
    oneOf
    cancelStatus objectrequired

    A structure containing information on the cancellation request.

    cancelOnly stringrequired

    The symbol of the futures or all.

    cancelledOrders object[]required

    A list of structures containing all the successfully cancelled orders.

  • Array [
  • cliOrdId stringnull

    Possible values: <= 100 characters

    Unique client order identifier.

    order_id uuidrequired

    Order ID.

  • ]
  • orderEvents object[]required
  • Array [
  • type stringrequired

    Possible values: [CANCEL]

    Always CANCEL.

    uid stringrequired

    The UID associated with the order.

    order object required
    oneOf
    orderId stringrequired

    The UID associated with the order.

    cliOrdId stringnullrequired

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

    type stringrequired

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

    The order type

    symbol stringrequired

    The symbol of the Futures.

    side stringrequired

    Possible values: [buy, sell]

    The side associated with the order

    quantity numberrequired

    The quantity (size) associated with the order.

    filled numberrequired

    The total amount of the order that has been filled.

    limitPrice numberrequired

    The limit price associated with a limit order.

    reduceOnly booleanrequired

    Is the order a reduce only order or not.

    timestamp stringrequired

    The date and time the order was placed.

    lastUpdateTimestamp stringrequired

    The date and time the order was edited.

  • ]
  • receivedTime stringrequired

    The date and time the order cancellation was received.

    status stringrequired

    Possible values: [noOrdersToCancel, cancelled]

    The status of the order cancellation:

    • cancelled - successful cancellation
    • noOrdersToCancel - no open orders for cancellation
    result stringrequired

    Possible values: [success]

    serverTime date-timerequired

    Server time in Coordinated Universal Time (UTC)

Loading...