> ## 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 TWAP Orders

> Streams the full list of an account's open TWAP orders whenever one of them changes.

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_twap_orders",
        "account": "42trU9A5..."
    }
}
```

### TWAP Order Snapshots

Pacifica sends a message when any open TWAP order on the account is created, updated, or closed. Each message is a **complete replacement** of the account's open TWAP orders. Replace your whole local list on each message. An empty `data: []` array means the account has no open TWAP orders.

Pacifica does not send a snapshot when you subscribe. To get the starting list, call [Get open TWAP orders](https://docs.pacifica.fi/api-documentation/api/rest-api/twap/get-open-twap-orders.md).

This channel covers TWAP orders from [Create TWAP order](https://docs.pacifica.fi/api-documentation/api/rest-api/twap/create-twap-order.md). It does not cover TWAP order strategies. Those stream on [Account order strategy updates](https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/account-order-strategy-updates.md).

### Stream

```json theme={null}
{
  "channel": "account_twap_orders",
  "data": [
    {
      "i": 13753364,
      "I": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "s": "BTC",
      "d": "bid",
      "a": "0.121",
      "f": "0.04",
      "tv": "3496.5",
      "ro": false,
      "sp": "0.500000000000",
      "psa": "0.001",
      "psc": 121,
      "poc": 40,
      "e": 1716203630000,
      "t": 1716201200000
    }
  ],
  "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>TWAP order ID</td></tr><tr><td>`'I'`</td><td>Full UUID string</td><td>Client order ID</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>`'a'`</td><td>decimal string</td><td>Total amount</td></tr><tr><td>`'f'`</td><td>decimal string</td><td>Filled amount</td></tr><tr><td>`'tv'`</td><td>decimal string</td><td>Total filled value (price × amount) across all sub-orders</td></tr><tr><td>`'ro'`</td><td>bool</td><td>Reduce only</td></tr><tr><td>`'sp'`</td><td>decimal string</td><td>Maximum slippage for each sub-order, in percent</td></tr><tr><td>`'psa'`</td><td>decimal string</td><td>Planned amount of each sub-order</td></tr><tr><td>`'psc'`</td><td>integer</td><td>Number of planned sub-orders</td></tr><tr><td>`'poc'`</td><td>integer</td><td>Number of planned sub-orders processed so far</td></tr><tr><td>`'e'`</td><td>integer</td><td>Expiration time (milliseconds)</td></tr><tr><td>`'t'`</td><td>integer</td><td>Updated at time (milliseconds)</td></tr><tr><td>`'li'` (envelope)</td><td>integer</td><td>The highest order ID in the account's order history when Pacifica built the message. Absent if the account has no order history</td></tr></tbody></table>


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