Skip to navigation

Cancel all open orders

Queues cancellation of the open orders of the authenticated account and of the isolated-margin accounts its token covers.

  • No parameter: every open order, in every market.
  • market: every open order in that market.
  • base_asset: every open order in every market of that base asset, for example BTC for the BTC perpetual and all BTC options. Mutually exclusive with market.

With no parameter or with base_asset, the response lists the IDs of the orders queued for cancellation. These are the orders open when the request is processed: an order placed at the same time may stay open.

With market, the response reports that the cancellation was queued.

Authentication

Authorizationstring
API Key authentication via header

Query parameters

marketstringOptional
Market to cancel orders for
base_assetstringOptional

Base asset to cancel orders for, across all its markets (e.g. BTC). Mutually exclusive with market

Response

OK

Errors

400
Bad Request Error