Account balances
URL — No public environment serves this socket yet.
Topic accountBalance
Request parameters
Response parameters
Push data parameters
Every amount is required money: a zero balance is a measurement, so “0.00000000” is a value and never a null. available is what the venue would let move; held is margin, pending withdrawals and freezes. Needs accounts:read, or any accounts capability (1.7.0): a balance is the account’s.
What the image holds. The latest reading for every (accountId, wallet, assetId) pair this member has seen for the organization — one row per pair, not a history. Rows appear as connectors report them, so an image is what has been reported, never a list of assets the venue supports.
How a row leaves. It does not. A pool that empties is reported as zero, which is a measurement and stays in your map; it never vanishes, and its absence would mean “never reported”, which is a different thing. A row for an account whose own status has moved on is still served — read the account’s state from the account channel, not from a balance’s presence.
Three clocks, and the one to age is not on this lane. observedAtNs is the platform’s time of the reading, moved by every change and by every heartbeat restatement while the connector serves the key; venueUpdatedAtNs is the venue’s own stamp on the state it reported, which can move without the holding moving. Neither says whether the account is being read now: that is the HTTP lane’s readAtNs on the account row (trading-gateway 0.49.0). Age that, and nothing here.