Overview
Theevent channel allows you to receive real-time updates about one or more specific events. Since an event can contain multiple markets, this channel is useful for monitoring all markets of an event at once.
Authentication
Theevent channel does not require authentication. You can subscribe without providing an API key.
Subscribe
To subscribe to the event channel:Requirements
events(required): Array of event IDsfilter(optional): Desired update type""or"all": All updates (default)"orderbook": Only orderbook updates"trades": Only trade updates
Examples
Receive All Updates
Receive Only Orderbook
Receive Only Trades
Received Messages
The received messages are identical to those from the market channel, but include updates from all markets in the event.Orderbook Update
Received when there are changes to the orderbook of any market in the event (whenfilter is "orderbook" or "all").
Structure:
New Trade
Received when a new trade is executed on any market in the event (whenfilter is "trades" or "all").
Structure:
Complete Update
Received when there are general updates to any market in the event (whenfilter is "all" or not specified).
Structure:
Difference between Market and Event Channels
- Market Channel: Receives updates only from specified markets;
- Event Channel: Receives updates from all markets within specified events.
event channel allows you to monitor all of them with a single subscription.
Usage Example
Unsubscribe
To unsubscribe from specific events:Use Cases
- Complete Event Monitoring: Monitor all markets of an event with a single subscription;
- Comparative Analysis: Compare prices and activity between different markets in the same event;
- Event Dashboard: Create a complete dashboard showing all markets of an event;
- Event Alerts: Set up alerts based on changes in any market of the event;
- Correlation Analysis: Analyze correlations between different markets in the same event.
Best Practices
- Use for Multi-Market Events: The
eventchannel is especially useful for events with multiple markets; - Specific Filters: Use filters when you only need one type of update to reduce traffic;
- Identification: Always check both
event_idandmarket_idin messages to correctly identify the source; - Performance: For events with many markets, consider using filters to reduce message volume.

