Skip to main content

Cancel Order (TRADE)

API Description#

Cancel an active order.

HTTP Request#

DELETE /dapi/v1/order

Weight: 1

Request Weight#

NameTypeMandatoryDescription
symbolSTRINGYES
orderIdLONGNO
origClientOrderIdSTRINGNO
recvWindowLONGNO
timestampLONGYES
  • Either orderId or origClientOrderId must be sent.

Response Example#

{    "avgPrice": "0.0",    "clientOrderId": "myOrder1",    "cumQty": "0",    "cumBase": "0",    "executedQty": "0",    "orderId": 283194212,    "origQty": "11",    "origType": "TRAILING_STOP_MARKET",    "price": "0",    "reduceOnly": false,    "side": "BUY",    "positionSide": "SHORT",                "status": "CANCELED",    "stopPrice": "9300",                // please ignore when order type is TRAILING_STOP_MARKET    "closePosition": false,             // if Close-All    "symbol": "BTCUSD_200925",    "pair": "BTCUSD",    "timeInForce": "GTC",    "type": "TRAILING_STOP_MARKET",    "activatePrice": "9020",            // activation price, only return with TRAILING_STOP_MARKET order    "priceRate": "0.3",                 // callback rate, only return with TRAILING_STOP_MARKET order    "updateTime": 1571110484038,    "workingType": "CONTRACT_PRICE",    "priceProtect": false               // if conditional order trigger is protected}