Margin

Margin Account Cancel Order (TRADE)

Cancel an active order for margin account.

Either orderId or origClientOrderId must be sent.

Weight(IP): 10

delete/sapi/v1/margin/order

Query parameters

symbolstring required
Example:BNBUSDT

Trading symbol, e.g. BNBUSDT

isIsolated'TRUE' | 'FALSE'
  • TRUE - For isolated margin
  • FALSE - Default, not for isolated margin
orderIdinteger

Order id

origClientOrderIdstring

Order id from client

newClientOrderIdstring

Used to uniquely identify this cancel. Automatically generated by default

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Cancelled margin order details

symbolstring required
orderIdinteger required
origClientOrderIdstring required
clientOrderIdstring required
pricestring required
origQtystring required
executedQtystring required
cummulativeQuoteQtystring required
statusstring required
timeInForcestring required
typestring required
sidestring required

Example response

{
  "symbol": "LTCBTC",
  "orderId": 28,
  "origClientOrderId": "msXkySR3u5uYwpvRMFsi3u",
  "clientOrderId": "6gCrw2kRUAF9CvJDGP16IP",
  "price": "1.00000000",
  "origQty": "10.00000000",
  "executedQty": "8.00000000",
  "cummulativeQuoteQty": "8.00000000",
  "status": "CANCELED",
  "timeInForce": "GTC",
  "type": "LIMIT",
  "side": "SELL"
}

Changes

Changed in 1 of the 26 revisions of this API.316

  • a484ce871a72316See the full diff
    • for the query request parameter orderId, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter recvWindow, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter timestamp, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • the response property clientOrderId became required for the status 200

      response-property-became-required

    • the response property code became required for the status 400

      response-property-became-required

    • the response property code became required for the status 401

      response-property-became-required

    • the response property cummulativeQuoteQty became required for the status 200

      response-property-became-required

    • the response property executedQty became required for the status 200

      response-property-became-required

    • the response property msg became required for the status 400

      response-property-became-required

    • the response property msg became required for the status 401

      response-property-became-required

    • the response property orderId became required for the status 200

      response-property-became-required

    • the response property origClientOrderId became required for the status 200

      response-property-became-required

    • the response property origQty became required for the status 200

      response-property-became-required

    • the response property price became required for the status 200

      response-property-became-required

    • the response property side became required for the status 200

      response-property-became-required

    • the response property status became required for the status 200

      response-property-became-required

    • the response property symbol became required for the status 200

      response-property-became-required

    • the response property timeInForce became required for the status 200

      response-property-became-required

    • the response property type became required for the status 200

      response-property-became-required