> ## 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

> Prediction Markets API real-time data overview.

The Prediction Markets WebSocket API provides public market data and authenticated account updates.

## Connection

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

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

## Channel groups

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

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


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