Skip to main content
Complete connection setup, then append a path below to wss://nex-ws.preprod.defi.euw2.polymarket.sh. Public clients behind the same NAT share its per-IP allowance.

Market Feed

Send this after connecting. Replace OUTCOME_ID with the identifier from your sandbox market.
You’ll receive a book snapshot followed by updates. See the Market Channel reference for event schemas.

User Feed

Send your sandbox trading credentials after connecting. Replace the credential values below; Gamma credentials do not authenticate this feed.
Add markets with condition IDs to filter activity by market. See the User Channel reference.

Heartbeats and Reconnects

Send the text PING every 10 seconds; expect PONG. Idle connections close, so send activity at least once a minute. After disconnecting, reconnect with backoff and resubscribe. Rebuild your book from the new snapshot and reconcile account activity with authenticated reads.