> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pacifica.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Account Order Strategy Updates

> Streams lifecycle changes of an account's order strategies.

Refer to [Websocket](https://docs.pacifica.fi/api-documentation/api/websocket) for establishing the websocket connection.

Sends one event each time an [order strategy](https://docs.pacifica.fi/api-documentation/api/rest-api/order-strategies) changes its lifecycle or phase. To see the strategy's full state, call [Get order strategy](https://docs.pacifica.fi/api-documentation/api/rest-api/order-strategies/get-order-strategy.md). Orders and fills from a strategy also arrive on [Account order updates](https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/account-order-updates.md) and [Account trades](https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/account-trades.md).

### Params

```json theme={null}
{
    "method": "subscribe",
    "params": {
        "source": "account_order_strategy_updates",
        "account": "42trU9A5..."
    }
}
```

### Stream

The channel sends no snapshot on subscribe.

```json theme={null}
{
  "channel": "account_order_strategy_updates",
  "data": {
    "event_id": 18842,
    "account": "42trU9A5...",
    "strategy_id": "0f8e7c2a-4b1d-4e5f-9a3b-2c1d0e9f8a7b",
    "state": "open",
    "phase": "running",
    "at_ms": 1716203600000
  }
}
```

| Field | Type | Description |
| - | - | - |
| `'event_id'` | integer | Event ID. An event can arrive more than once; drop events with an `event_id` you have already seen |
| `'account'` | string | Account address |
| `'strategy_id'` | string | Strategy ID (UUID) |
| `'state'` | string | `pending`, `open`, `paused`, `completed`, `cancelled`, `expired`, or `failed`. See [Lifecycle](https://docs.pacifica.fi/api-documentation/api/rest-api/order-strategies#lifecycle) |
| `'phase'` | string | Only while `open`: `armed` (waiting for a trigger) or `running` |
| `'at_ms'` | integer | Time of the change in milliseconds |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.