Skip to Content
Trading

Cancel Exotic Order (TP/SL)

DELETE
/v2/account/exotic-orders

Cancel an Exotic Order (TP/SL)

Warning: Ensure your API key has the TRADE scope. You can generate an API key through the One Trading UI.

This endpoint is rate-limited per account holder (see 429).

Cancels TP/SLs without placing an order. Send exactly one of the two parameters:

  • client_id cancels that one TP/SL, and answers with it in order. EXOTIC_ORDER_CANCELLED follows on the WebSocket ACCOUNT channel with reason USER_CANCELLED.
  • instrument_code cancels the position TP/SL on that instrument, and its spot TP/SLs, and answers with cancelled, failed and the cancelled orders (reason BULK_CANCEL). A futures TP/SL in order mode belongs to its order and is cancelled by its client_id only. With nothing to cancel the answer is cancelled: 0.

Cancelling a TP/SL leaves the order or position it protected as it is. The reverse also holds once a TP/SL is ACTIVE: cancelling the order it was attached to, or Cancel All Orders, does not cancel it. It ends when it is cancelled here, when a level fires, or when its position is closed or flips.

A TP/SL that is TRIGGERED is placing its close: cancelling it by client_id is refused with ORDER_ALREADY_TERMINAL, and the close runs to its end.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key created in the One Trading UI, sent as Authorization: Bearer <token>. Each endpoint lists the key permission it needs.

Query Parameters

client_id?string

Cancel this one TP/SL. Send this or instrument_code, not both.

Formatuuid
instrument_code?string

Cancel the position TP/SL and the spot TP/SLs on this instrument. Send this or client_id, not both.

Response Body

By client_id: the cancelled TP/SL in order. By instrument_code: cancelled, failed and orders.

application/json
  1. response
order*

A take profit / stop loss.

Example Request
curl -X DELETE 'https://api.onetrading.com/fast/v2/account/exotic-orders?instrument_code=BTC_USD_P'
Example Response
{  "order": {    "client_id": "0d0b1f0c-7f0e-4f55-9a53-6f6f3c1c2a10",    "instrument_code": "BTC_USD_P",    "order_kind": "TPSL",    "tpsl_mode": "position",    "status": "CANCELLED",    "take_profit": null,    "stop_loss": {      "value": "65000",      "type": "MID"    },    "slippage_bps": 500,    "version": 3,    "side": "BUY",    "market_type": "FUTURES",    "position_id": "1b0f6f5e-2a59-4f0a-9d0e-5f7f3f0f6a11",    "order_id": null,    "type": "MARKET",    "price": null,    "filled_amount": "1.5",    "tp_client_id": "c2a7a1de-6d0b-11f0-8de9-0242ac120002",    "sl_client_id": "1f06d0b6-a7a1-6e20-8de9-0242ac120002",    "created_at": "2026-11-16T10:15:00.000Z",    "filled_at": "2026-11-16T10:15:00.000Z",    "completed_at": null,    "cancelled_at": "2026-11-16T11:02:10.000Z"  }}