The type property is used to determine the shape of the data property of the update event.
enum MessageEventType
deposits
events provide a specialized data
property which is similar to IDEXDeposit with the following changes:
depositId
, quantity
, asset
, and time
are provided from the IDEXDeposit interface.deposits
events include additional exclusive properties:
type IDEXDepositEventData
subscription
Websocket messages always include a type property which dictates the shape of itsdata
property.type
will be the name of the subscription that the message correlates to.IDEX<name>Event
interface will document its provideddata
shape and properties.subscriptions
property when dispatched.See
data IDEXDepositEventData