Margin

Margin Account Cancel Order (TRADE)

Changed on

Cancel an active order for margin account.

Either orderId or origClientOrderId must be sent.

Weight(IP): 10

delete/sapi/v1/margin/order

Request

  • Base URL
    https://api.binance.com
  • URL
    https://api.binance.com/sapi/v1/margin/order
  • Auth
    API key in header X-MBX-APIKEY

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

    • breaking

      for the query request parameter orderId, the format changed from no format to int64

    • breaking

      for the query request parameter recvWindow, the format changed from no format to int64

    • breaking

      for the query request parameter timestamp, the format changed from no format to int64

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status