Interface IDEXTradeEvent

When the trades subscription provides an update

interface IDEXTradeEvent {
    type: "trades";
    data: IDEXTradeEventData;
}

Hierarchy (view full)

Properties

Properties

type: "trades"

The type property is used to determine the shape of the data property of the update event.

  • Subscription update events will match IDEXSubscriptionEventBase with the subscription name as the value for the type property.
  • Otherwise the type will be:
    • subscriptions if you requested a list of all current subscriptions
    • error if your request resulted in a server error
  • Trade updates on the WebSocket include all IDEXTrade properties as well as the market symbol that corresponds to the trade.