TheDocumentation Index
Fetch the complete documentation index at: https://pond.dflow.net/llms.txt
Use this file to discover all available pages before exploring further.
orderbook channel streams real-time orderbook updates for prediction markets. Use this channel to build orderbook visualizations, depth charts, and market depth analysis tools.
Connection
See the WebSocket overview for connection setup and endpoint details.Subscribe
Subscribe to All Orderbooks
Subscribe to Specific Tickers
Unsubscribe
Unsubscribe from All Orderbooks
Unsubscribe from Specific Tickers
Response Format
When subscribed to theorderbook channel, you’ll receive messages with the following structure:
Response Fields
| Field | Type | Description |
|---|---|---|
channel | string | Always "orderbook" |
type | string | Message type |
market_ticker | string | Market identifier |
yes_bids | object | Map of price (string) to quantity (number) for YES outcome bids |
no_bids | object | Map of price (string) to quantity (number) for NO outcome bids |
The
yes_bids and no_bids fields are objects where keys are price strings
and values are quantities. The order of entries in these objects represents
the orderbook depth.Code Examples
Subscribe to All Orderbooks
Subscribe to All Orderbooks
Subscribe to Specific Markets
Subscribe to Specific Markets
TypeScript Interface
TypeScript Interface
Related
Prices Channel
Subscribe to real-time bid/ask price updates
Trades Channel
Subscribe to real-time trade execution updates
Orderbook API
Get orderbook snapshots via REST API
Need Help?
Join Our Discord
Connect with other developers, get help, and stay updated on the latest
DFlow developments.
Dev Notifications
Join the DFlow Dev Notifications Telegram group to stay in the loop on
new features and other announcements.