Skip to main content

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​

PropertyTypeDescription
inputAmountstringAmount of input currency (string format)
outputAmountstringAmount of output currency (string format)
timestampstringISO 8601 timestamp of when the balance was updated
tokenNamestringToken name for which balance changed
tradeType"BUY" | "SELL"Trade type that caused the balance update: BUY or SELL
userAddressstringWallet address of the user whose balance was updated