WebSocket Streaming
Overview
Polymarket WebSocket
Connection
from moltmarket import WebSocketClient
ws = WebSocketClient(platform="polymarket")
# Subscribe to market updates
ws.subscribe_market("0x1a2b3c...")
# Handle updates
@ws.on_update
def handle_update(data):
print(f"Price: {data['price']}")
print(f"Volume: {data['volume']}")Message Types
Kalshi WebSocket
Connection
Best Practices
Related Documentation
Last updated
