> ## 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 Updates

> Streams the amount and nature of changes made to any of an account's open orders in any market.

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

### Params

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

### Stream

```json theme={null}
{
  "channel": "account_order_updates",
  "data": [
    {
      "i": 1559665358,
      "I": null,
      "u": "BrZp5bidJ3WUvceSq7X78bhjTfZXeezzGvGEV4hAYKTa",
      "s": "BTC",
      "d": "bid",
      "p": "89501",
      "ip": "89501",
      "lp": "89501",
      "a": "0.00012",
      "f": "0.00012",
      "oe": "fulfill_limit",
      "os": "filled",
      "ot": "limit",
      "sp": null,
      "si": null,
      "tp": null,
      "r": false,
      "ct": 1765017049008,
      "ut": 1765017219639,
      "li": 1559696133
    }
  ]
}
```

<table><thead><tr><th width="193">Field</th><th width="225">Type</th><th>Description</th></tr></thead><tbody><tr><td>`'i'`</td><td>integer</td><td>Order ID</td></tr><tr><td>`'I'`</td><td>Full UUID string</td><td>Client order ID</td></tr><tr><td>`'u'`</td><td>base58 encoded address</td><td>Account</td></tr><tr><td>`'s'`</td><td>string</td><td>Symbol</td></tr><tr><td>`'d'`</td><td>string</td><td>Side: \[`bid`, `ask`]</td></tr><tr><td>`'p'`</td><td>decimal string</td><td>Average filled price</td></tr><tr><td>`'ip'`</td><td>decimal string</td><td>Initial price</td></tr><tr><td>`'lp'`</td><td>decimal string</td><td>Last filled price</td></tr><tr><td>`'a'`</td><td>decimal string</td><td>Original amount</td></tr><tr><td>`'f'`</td><td>decimal string</td><td>Filled amount</td></tr><tr><td>`'oe'`</td><td>string</td><td>Order event (see below)</td></tr><tr><td>`'os'`</td><td>string</td><td>Order status (see below)</td></tr><tr><td>`'ot'`</td><td>string</td><td>Order type (see below)</td></tr><tr><td>`'sp'`</td><td>string</td><td>Stop price</td></tr><tr><td>`'si'`</td><td>string</td><td>Stop parent order ID</td></tr><tr><td>`'tp'`</td><td>string</td><td>Stop trigger price type: `last_trade_price`, `mark_price`, or `mid_price`</td></tr><tr><td>`'r'`</td><td>bool</td><td>Reduce only</td></tr><tr><td>`'ct'`</td><td>integer</td><td>Created at time (milliseconds)</td></tr><tr><td>`'ut'`</td><td>integer</td><td>Updated at time (milliseconds)</td></tr><tr><td>`'li'`</td><td>integer</td><td>[Last ID](https://docs.pacifica.fi/api-documentation/api/last-id.md) — sequence number, monotonically increasing. Reconcile updates by order ID (`i`).</td></tr></tbody></table>

| Field | Value | Description |
| - | - | - |
| `'oe'` | `make` | Order placed on book |
| | `stop_created` | Stop order created |
| | `fulfill_market` | User filled by market order |
| | `fulfill_limit` | User filled others limit order |
| | `adjust` | Order modified |
| | `stop_parent_order_filled` | Parent order filled |
| | `stop_triggered` | Stop order activated |
| | `stop_upgrade` | Stop order upgraded |
| | `cancel` | User cancelled |
| | `force_cancel` | Cancelled by system |
| | `expired` | Time expired |
| | `post_only_rejected` | Cannot execute ALO |
| | `self_trade_prevented` | Cannot execute self-trade |
| `'os'` | `open` | Active on orderbook |
| | `partially_filled` | Partially filled |
| | `filled` | Completely filled |
| | `cancelled` | Cancelled |
| | `rejected` | Rejected |
| `'ot'` | `limit` | Limit |
| | `market` | Market |
| | `stop_limit` | Stop limit |
| | `stop_market` | Stop market |
| | `take_profit_limit` | Take profit (limit) |
| | `stop_loss_limit` | Stop loss (limit) |
| | `take_profit_market` | Take profit (market) |
| | `stop_loss_market` | Stop loss (market) |


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