# Exotic Order Updated


:::caution[]
You must be subscribed to the [ACCOUNT](https://docs.onetrading.com/introduction-374354m0.md) channel to receive take profit / stop loss messages.
:::

The `EXOTIC_ORDER_UPDATED` message is sent when the levels of a TP/SL are changed with Update Exotic Order (TP/SL). `data` already carries the new levels.

An update that removes the last level cancels the TP/SL: `EXOTIC_ORDER_CANCELLED` is sent instead, with reason `TP_SL_REMOVED`.

```json
{
    "channel_name": "ACCOUNT",
    "type": "EXOTIC_ORDER",
    "time": "2026-11-16T10:42:07.512Z",
    "account_id": "726288e6-a463-4f88-9068-024ae8f97a34",
    "event_type": "EXOTIC_ORDER_UPDATED",
    "event_timestamp": "2026-11-16T10:42:07.000Z",
    "data": {
        "client_id": "0d0b1f0c-7f0e-4f55-9a53-6f6f3c1c2a10",
        "instrument_code": "BTC_USD_P",
        "status": "ACTIVE",
        "order_kind": "TPSL",
        "tpsl_mode": "position",
        "activation_source": "order_fill",
        "take_profit_price": null,
        "stop_loss_price": 66500,
        "tp_client_id": "c2a7a1de-6d0b-11f0-8de9-0242ac120002",
        "sl_client_id": "1f06d0b6-a7a1-6e20-8de9-0242ac120002",
        "version": 2
    }
}
```

The envelope fields (`channel_name`, `type`, `time`, `account_id`, `event_type`, `event_timestamp`) are described in the [ACCOUNT introduction](https://docs.onetrading.com/introduction-374354m0.md).

### `data`

| Field | Type | Description |
|---|---|---|
| `client_id` | string | Identifier of the TP/SL. For one attached to an order, that order's `client_id`. |
| `instrument_code` | string | The instrument. |
| `status` | string | `PENDING` or `ACTIVE`. |
| `order_kind` | string | `TPSL`. |
| `tpsl_mode` | string | `order` or `position`. |
| `activation_source` | string | How a `PENDING` TP/SL arms: `order_fill`, when the order it is attached to fills. |
| `take_profit_price` | number or null | Take profit level, `null` without one. |
| `stop_loss_price` | number or null | Stop loss level, `null` without one. |
| `tp_client_id` | string or null | `client_id` of the close order placed when the take profit fires on a spot market. |
| `sl_client_id` | string or null | As `tp_client_id`, for the stop loss. |
| `version` | integer | Version of the message format: `2`. Not the TP/SL's own `version`. |