Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Real-time orderbook and trade streaming via WebSocket
ws://localhost:3847/ws
wss://api.pmxt.dev/ws?apiKey=YOUR_KEY
{ "id": "req-1", "action": "subscribe", "exchange": "polymarket", "method": "watchOrderBook", "args": ["OUTCOME_ID", 50] }
{ "event": "data", "id": "req-1", "method": "watchOrderBook", "symbol": "OUTCOME_ID", "source": "polymarket", "data": { "bids": [{ "price": 0.42, "size": 100 }], "asks": [{ "price": 0.58, "size": 200 }], "timestamp": 1778450010713 } }
{ "id": "req-1", "action": "unsubscribe", "exchange": "polymarket", "method": "watchOrderBook", "args": ["OUTCOME_ID"] }
{ "event": "error", "id": "req-1", "error": { "message": "..." } }
Was this page helpful?