The websocket API requires a valid API key. You can get one by contacting us.
trades channel streams real-time trade execution updates for prediction markets. Use this channel to build trade feeds, activity monitors, and market analysis tools.
Subscribe
Subscribe to All Trades
Subscribe to Specific Tickers
Unsubscribe
Unsubscribe from All Trades
Unsubscribe from Specific Tickers
Response Format
When subscribed to thetrades channel, you’ll receive messages with the following structure:
Response Fields
| Field | Type | Description |
|---|---|---|
channel | string | Always "trades" |
type | string | Always "trade" |
market_ticker | string | Market identifier |
trade_id | string | Unique trade identifier |
price | number | Trade execution price |
count | number | Number of contracts traded |
yes_price | number | YES outcome price at execution |
no_price | number | NO outcome price at execution |
yes_price_dollars | string | YES price formatted in dollars |
no_price_dollars | string | NO price formatted in dollars |
taker_side | string | Side of the taker ("yes" or "no") |
created_time | number | Unix timestamp in milliseconds |
Code Examples
Subscribe to All Trades
Subscribe to All Trades
Subscribe to Specific Markets
Subscribe to Specific Markets
TypeScript Interface
TypeScript Interface