Skip to main content
Three Polymarket WebSocket channels are available through the proxy.

Market channel

Real-time orderbook updates, trades, and price changes.
wscat -c "wss://gateway.graylayer.tech/ws/polymarket/market?api_key=your_key"
After connecting, send a subscription message with the token IDs you want to track. Get token IDs from the Polymarket CLOB API.
{
  "assets_ids": ["21742633143463906290569050155826241533067272736897614950488156847949938836455"],
  "type": "market",
  "custom_feature_enabled": true
}
Send a PING message every 10 seconds to keep the connection alive.

User channel

Order and trade lifecycle events for a specific wallet.
wscat -c "wss://gateway.graylayer.tech/ws/polymarket/user?api_key=your_key"
Authentication for user-level data is handled in the subscription message (Polymarket L2 credentials). The proxy forwards the subscription as-is.

Sports channel

Live sports scores. Data streams automatically after connecting—no subscription message needed.
wscat -c "wss://gateway.graylayer.tech/ws/polymarket/sports?api_key=your_key"
The upstream server sends ping frames. Respond with pong within 10 seconds to stay connected.

Upstream

ChannelUpstream URL
marketwss://ws-subscriptions-clob.polymarket.com/ws/market
userwss://ws-subscriptions-clob.polymarket.com/ws/user
sportswss://sports-api.polymarket.com/ws