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, myriad, gemini-titan, rain, hunch.
Parameters
| Parameter | Type | Required | Description |
|---|
outcomeId | string | Yes | The outcome token ID to watch |
Response
Returns a Trade[] array each time new trades occur:
| Field | Type | Description |
|---|
id | string | Trade ID |
timestamp | number | Unix timestamp in milliseconds |
price | number | Trade price (0–1 probability) |
amount | number | Number of contracts |
side | string | "buy", "sell", or "unknown" |
Usage
Use cases
Trade volume tracker
Monitor real-time trading volume on a market: