Bulk Cancel

Cancel all orders by limit. (Private ๐Ÿ”’)

This endpoint is used to bulk cancel a limit order which hasnโ€™t already been executed at a given time. Please note that this is a Private ๐Ÿ”’ route which means it needs to be authorised by the account initiating this request.

Note: You will need to include the JWT Auth token to request headers to access this endpoint. To get the JWT Auth Token, refer the login section of the documentation.

Endpoint

POST /sapi/v1/user/bulkcancel/

Request Headers

{
  "Authorization": "JWT ***"
}

Request Body

Field
Type
Mandatory
Description

market

STRING

YES

The market in which the orders need to be cancelled.

limit

INTEGER

NO

The limit for order cancellations. The default value is 100.

side

STRING

NO

The side (buy/sell) on which the orders need to be cancelled. allowed values [buy, sell]

Example

{
  "market": "btcusdt",
  "limit" : 100
}

Response

{ 
  "status": "success",
  "message": "Orders are successfully queued for cancellation",
  "payload": {}
}

Last updated