Skip to main content
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

ParameterTypeRequiredDescription
outcomeIdsstring[]YesArray of outcome token IDs to watch
limitnumberNoOptional depth limit for each streamed order book
paramsobjectNoOptional 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.
FieldTypeDescription
bidsOrderLevel[]Bid orders, sorted high to low
asksOrderLevel[]Ask orders, sorted low to high
timestampnumberUnix timestamp in milliseconds

Usage

Use cases

Watch all outcomes in a market

Fetch a market’s outcomes, then stream all their orderbooks: