Skip to main content
WebSocket is async-only. Use asyncio.run() or AsyncPolymarketUS.
The WebSocket resource provides real-time streaming data for market information and private user data.

Methods


private

Connect to the private WebSocket for real-time order, position, and balance updates.

Private Subscription Types

Private Events


markets

Connect to the markets WebSocket for real-time market data and trades.

Market Subscription Types

Market Events


Best Practices

  1. Use unique request IDs - Track subscriptions with unique identifiers
  2. Handle reconnection - Implement automatic reconnection with exponential backoff
  3. Process messages in order - Messages are delivered in sequence
  4. Limit subscriptions - Only subscribe to markets you need