Skip to main content
Module skeleton. This page is the entry point for the Account feature module, modeled on Order Flow. The deep-dive pages are being written; the building blocks below already exist in the API and WebSocket references and are linked throughout.
The Account module answers “what’s in this account, and what’s it worth right now?” As with orders, there are two halves: pull a current picture over REST, then keep it live over the Account Updates WebSocket.

What’s in the module

Accounts list

The accounts a user can trade, with IDs you pass to every order and subscription.

Balances & buying power

Cash, equity, margin, and the several flavors of buying power (stock, option, day-trade).

Positions

Open stock and option positions with average price and unrealized P&L.

Order history

Past orders, plus active orders still working.

Live updates

Subscribe once to the account topic and you receive account.balance, account.position, account.order, and account.info events as anything changes — no polling. The Account Updates WebSocket reference documents the connect/auth/subscribe handshake and every field, including the full balance and position schemas.

Planned deep-dive pages

  • Reading an account — accounts list → choosing an accountId.
  • Understanding buying power — the difference between stock, option, day-trade, and Reg-T buying power.
  • Positions & P&L — realized vs. unrealized, today vs. lifetime.
  • Keeping it live — wiring the snapshot + event stream into local state.

Account Updates WebSocket

Start here for the live account picture today.