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

# WebSocket balance channel - Live credit, cash, exposure and available balance

> Receive the balance of your account on the Apexium API WebSocket right after login and on every change.

The `balance` channel sends the balance of the account behind your API key.

Right after `login_ok`, and then whenever one of the four amounts changes, you receive:

```json theme={null}
{
  "channel": "balance",
  "type": "balance",
  "payload": {
    "givenCredit": { "amount": "5000.00", "amountCents": 500000, "currency": "USD" },
    "cashBalance": { "amount": "120.00", "amountCents": 12000, "currency": "USD" },
    "exposure": { "amount": "830.50", "amountCents": 83050, "currency": "USD" },
    "available": { "amount": "4289.50", "amountCents": 428950, "currency": "USD" }
  },
  "ts": 1791413359090,
  "seq": 1
}
```

The payload has the shape and the values of [`GET /v1/balance`](https://docs.apexiumbet.com/api-reference/overview#account). A change usually arrives within half a second: a placement, a fill, a cancellation, a settlement, or a credit or cash change on the account.

Each message carries the whole balance, so the channel has no `eventId` and no resume. After a reconnect, the current balance arrives right after `login_ok`.


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