> ## Documentation Index
> Fetch the complete documentation index at: https://dexbuilder.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# WebSocket Overview

> Event Contracts API real-time data overview.

The Event Contracts WebSocket API provides public market data and authenticated account updates.

## Connection

```text theme={null}
wss://broker.dexbuilder.com/ws/dex-builder/event-contracts
```

Use one connection for the channels of the selected product. Prediction Markets uses `ec.*`; Event Contracts uses `ec.*`.

## Channel groups

* Public channels: `ec.trades`, `ec.depth`, `ec.bbo`, `ec.status`, `ec.cpi`, `ec.candlestick`, and `ec.oc_price`
* Private channels: `ec.orders`, `ec.usertrades`, `ec.positions`, and `ec.settlements`

Public channels do not require authentication. Private channels require an API Key signature. See [WebSocket Protocol](https://dexbuilder.mintlify.site/en/event-contracts/websocket/protocol.md), [Public Channels](https://dexbuilder.mintlify.site/en/event-contracts/websocket/public-channels.md), and [Private Channels](https://dexbuilder.mintlify.site/en/event-contracts/websocket/private-channels.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.