Cancel All Algo Orders

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.

Rate Limit: 50 requests per 10 seconds

Permission: Requires trading permission on the corresponding API key. Read-only keys cannot call this endpoint.

All filter parameters are optional. If not provided, all OPEN status algo orders under the portfolio will be cancelled. Multiple conditions are AND logic. conditionType is only effective for TPSL orders.

Request

NameTypeMandatoryDescription
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: TWAP, VWAP, TPSL
conditionTypeStringNOCOCONDITIONALENTIRE_CLOSE_POSITIONPARTIAL_CLOSE_POSITION; only effective when algoOrderType=TPSL

Response

Field nameTypeRemarks
algoOrderIdStringAlgo order ID
clientOrderIdStringCustomer-defined order ID
{
  "code": 200000,
  "message": "Success",
  "data": [
    {
      "algoOrderId": "2127112827963460",
      "clientOrderId": "2173326802000962"
    },
    {
      "algoOrderId": "2127112827963461",
      "clientOrderId": "2173326802000963"
    }
  ]
}
Body Params
string
string
string
string
string
Responses

Language
LoadingLoading…
Response
Choose an example:
application/json