WebSocket endpoint — This method uses WebSocket streaming, not HTTP. Connect to wss://api.pmxt.dev/ws?apiKey=YOUR_KEY (hosted) or ws://localhost:3847/ws (local server).
Supported venues: polymarket, kalshi, limitless, opinion, polymarket_us, probable, baozi, myriad, gemini-titan, rain, hunch.
Parameters
| Parameter | Type | Required | Description |
|---|
outcomeIds | string[] | Yes | Array of outcome token IDs to watch |
limit | number | No | Optional depth limit for each streamed order book |
params | object | No | Optional exchange-specific parameters |
Response
Returns a Record<string, OrderBook> — one OrderBook per outcome, keyed by outcome ID. Each update arrives as a separate data event.
| Field | Type | Description |
|---|
bids | OrderLevel[] | Bid orders, sorted high to low |
asks | OrderLevel[] | Ask orders, sorted low to high |
timestamp | number | Unix timestamp in milliseconds |
Usage
Use cases
Watch all outcomes in a market
Fetch a market’s outcomes, then stream all their orderbooks: