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

> Streams all changes made to an account's overall info such as equity, balance, order count, etc.

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

## Leverage

### Params

```json theme={null}
{
    "method": "subscribe",
    "params": {
        "source": "account_info",
        "account": "42trU9A5...",
        "full": true  // Optional. Defaults to false
    }
}
```

Set `full` to `true` to add the `cae`, `poe`, and `tae` equity fields to each update.

### Stream

```json theme={null}
{
    "channel": "account_info",
    "data": {
        "ae": "2000",
        "as": "1500",
        "aw": "1400",
        "b": "2000",
        "f": 1,
        "mu": "500",
        "cm": "400",
        "oc": 10,
        "pb": "0",
        "pc": 2,
        "sc": 2,
        "sb": [
          {
            "s": "SOL",
            "a": "1.50000000",
            "lr": "0.80",
            "aw": "1.00000000",
            "pb": "0.00",
            "dw": "250.000000",
            "dd": "50000.000000",
            "wd": "250000.000000"
          }
        ],
        "t": 1234567890
    }
}
```

<table><thead><tr><th width="249">Field</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>`'ae'`</td><td>string</td><td>Account equity</td></tr><tr><td>`'as'`</td><td>string</td><td>Available to spend</td></tr><tr><td>`'aw'`</td><td>string</td><td>Available to withdraw</td></tr><tr><td>`'b'`</td><td>string</td><td>Account balance</td></tr><tr><td>`'f'`</td><td>integer</td><td>Account fee tier</td></tr><tr><td>`'mu'`</td><td>string</td><td>Total margin used</td></tr><tr><td>`'cm'`</td><td>string</td><td>Maintenance margin required in cross mode</td></tr><tr><td>`'oc'`</td><td>integer</td><td>Orders count</td></tr><tr><td>`'pb'`</td><td>string</td><td>Pending balance</td></tr><tr><td>`'pc'`</td><td>integer</td><td>Positions count</td></tr><tr><td>`'sc'`</td><td>integer</td><td>Stop order count</td></tr><tr><td>`'sb'`</td><td>array</td><td>Spot asset balances (see below)</td></tr><tr><td>`'t'`</td><td>number</td><td>Timestamp in milliseconds</td></tr><tr><td>`'cae'`</td><td>string</td><td>Cross account equity. Only with `full`</td></tr><tr><td>`'poe'`</td><td>string</td><td>Equity locked in open [Print](https://docs.pacifica.fi/print) orders. Only with `full`</td></tr><tr><td>`'tae'`</td><td>string</td><td>Total account equity: `ae` plus `poe`. Only with `full`</td></tr></tbody></table>

**Spot Balance Fields**

| Field | Type | Description |
| - | - | - |
| `'s'` | string | Spot asset symbol |
| `'a'` | string | Total amount held |
| `'lr'` | string | Loan-to-value ratio |
| `'aw'` | string | Available to withdraw |
| `'pb'` | string | Pending balance |
| `'dw'` | string | Daily withdrawal amount (USD) |
| `'dd'` | string | Effective daily deposit limit (USD) |
| `'wd'` | string | Effective daily withdrawal limit (USD) |

If `full` is `true` and the equity components are not available yet, the channel sends this message instead of an update:

```json theme={null}
{
    "channel": "account_info",
    "data": {
        "code": 503,
        "error": "Full account components are unavailable",
        "error_id": "full_components_unavailable"
    }
}
```


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