Cancel All Algo Orders

Cancel all incomplete algo orders under the portfolio. This API is asynchronous. Returning success only means that the cancel requests have been sent. The final result needs to be confirmed through websocket subscription and order query.

Permission

  • Applies to both primary user and trading portfolio's API Key.
  • Permission: TRADE.

Rate Limit

  • 50 requests per 10 seconds

Request

Field nameTypeNecessaryRemarks
symStringNTrading pair unique identifier (example:
BINANCE_PERP_ETH_USDT, OKX_PEPR_ETH_USDT)
exchangeTypeStringNExchange type, such as BINANCE, OKX
businessTypeStringNBusiness type: PERP
algoOrderTypeStringNAlgo order types:TPSL
conditionTypeStringNOCO,CONDITIONAL,ENTIRE_CLOSE_POSITION,PARTIAL_CLOSE_POSITION

Note:All filter parameters are optional. If not provided, all OPEN status algo orders under the portfolio will be cancelled. Multiple conditions are AND logic.

Response

Field nameTypeRemarks
algoOrderIdStringAlgo order ID
clientOrderIdStringCustomer-defined order ID
Responses

Language
LoadingLoading…
Response
Choose an example:
application/json