index/interfaces/BalanceUpdatedEvent.md
Emitted when a user's balance is updated after a trade.
Broadcast to user-specific room (user:{address}) - private to user only.
Carries the trade's input and output amounts; the backend does not send the resulting balances.
Since
7.0.0 - React Query cache integration
Properties
| Property | Type | Description |
|---|
inputAmount | string | Amount of input currency (string format) |
outputAmount | string | Amount of output currency (string format) |
timestamp | string | ISO 8601 timestamp of when the balance was updated |
tokenName | string | Token name for which balance changed |
tradeType | "BUY" | "SELL" | Trade type that caused the balance update: BUY or SELL |
userAddress | string | Wallet address of the user whose balance was updated |
input amount output token name trade type user address