# STXAccountView

> A live copy of your account, kept by the socket.

Source: https://docs.stxapp.io/sdks/csharp/reference/account-view/

```csharp
var view = await ws.AccountViewAsync(onChange: change => { ... });
```

| Member | Meaning |
|---|---|
| `Balance` | `Balance?`: the latest summary |
| `OpenOrders` | `IReadOnlyList<Order>`, newest first; an order leaves when it is filled, cancelled or rejected |
| `Fills` | `IReadOnlyList<Fill>`, newest first, at most `maxFills` |
| `Positions` | `IReadOnlyList<Position>`, one per market; flat ones dropped unless `keepFlatPositions` |
| `Ready` | True once all four snapshots are in |
| `Seeds` | Snapshots applied per channel: 1 after the first, more after reconnects |
| `State()` | The whole view as a `JsonObject` |
| `Apply(event, payload)` | Applies one message yourself; returns the change or null |
| `DisposeAsync()` | Leaves the four channels; the socket stays open |

## STXAccountChange

`Kind` (`balance`, `orders`, `fills`, `positions` or `payment`), `Event` (the wire event), `Snapshot` (true when the part was replaced by a join snapshot), `Payload` and `View`.
