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

# Account Streams

> Private WebSocket account streams provide real-time access to balances, orders, deals, and positions on WhiteBIT.

Browse the available private WebSocket channels below. For connection details and message format, see the [WebSocket Overview](/websocket/overview). For rate limits, see [WebSocket Rate Limits](/websocket/rate-limits).

## Order types

Several Account Stream channels return a `type` field identifying the order type. Use this table to interpret the value.

| ID | Description |
| - | - |
| 1 | Limit |
| 2 | Market |
| 202 | Market [stock](/glossary#stock) |
| 3 | Stop limit |
| 4 | Stop market |
| 203 | Stop market [stock](/glossary#stock) |
| 7 | Margin limit |
| 8 | Margin market |
| 9 | Margin stop limit |
| 10 | Margin stop market |
| 14 | Margin normalization |

<Note>
  **Type 14 (Margin normalization)** is a system-generated order, not one the account places. The platform creates it to settle a negative balance or on borrow closure (for example, a fee deduction or a funding accrual that pushes a balance below zero). Despite the name, it is not limited to margin markets and can also occur on spot.

  A normalization order always executes as the taker, and it is not subject to [self-trade prevention](/platform/self-trade-prevention), so it can match against the account's own resting order. When it does, both sides of the trade belong to the account. A taker fee is charged at the account's taker rate.

  On execution, an update is delivered on both `ordersExecuted_update` (with `type` 14) and `deals_update`. The order type is carried on `ordersExecuted_update`; `deals_update` rows do not include an order-type field.
</Note>

## Channels

<CardGroup cols={2}>
  <Card title="Authorize" icon="key" href="/websocket/account-streams/authorize">
    Authenticate the WebSocket connection to access private channels
  </Card>

  <Card title="Balance Spot" icon="wallet" href="/websocket/account-streams/balance-spot">
    Real-time spot balance updates for the account
  </Card>

  <Card title="Balance Margin" icon="scale-balanced" href="/websocket/account-streams/balance-margin">
    Real-time margin balance updates for the account
  </Card>

  <Card title="Orders Pending" icon="clock" href="/websocket/account-streams/orders-pending">
    Stream of pending (open) orders and order updates
  </Card>

  <Card title="Orders Executed" icon="circle-check" href="/websocket/account-streams/orders-executed">
    Stream of executed orders and order updates
  </Card>

  <Card title="Deals" icon="handshake" href="/websocket/account-streams/deals">
    Real-time deal execution notifications
  </Card>

  <Card title="Positions" icon="chart-line-up" href="/websocket/account-streams/positions">
    Real-time position updates for margin trading
  </Card>

  <Card title="Margin Positions Events" icon="bell" href="/websocket/account-streams/margin-positions-events">
    Event notifications for margin position changes
  </Card>

  <Card title="Borrows" icon="money-bill-transfer" href="/websocket/account-streams/borrows">
    Real-time borrow status updates for margin trading
  </Card>

  <Card title="Borrows Events" icon="bell-exclamation" href="/websocket/account-streams/borrows-events">
    Event notifications for borrow changes and liquidations
  </Card>

  <Card title="ADL Quantile" icon="gauge-high" href="/websocket/account-streams/adl-quantile">
    ADL deleveraging-priority rank for open futures positions
  </Card>
</CardGroup>

## Related

<CardGroup cols={2}>
  <Card title="Order Management" icon="pen-to-square" href="/websocket/order-management/overview">
    Place, modify, and cancel orders on the same authorized connection (global platform only)
  </Card>
</CardGroup>


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