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 KatanaPerpsDeposit with the following changes:
depositId, quantity, asset, and time are provided from the KatanaPerpsDeposit interface.deposits events include additional exclusive properties:
subscriptionWebsocket messages always include a type property which dictates the shape of itsdataproperty.typewill be the name of the subscription that the message correlates to.KatanaPerps<name>Eventinterface will document its provideddatashape and properties.subscriptionsproperty when dispatched.See
data KatanaPerpsDepositEventData