Overview
Dome API’s WebSocket server provides real-time order information from Polymarket. The server is designed to be the fastest WebSocket server available, making it perfect for copy-trading applications where speed is critical.Connection
Server Endpoint
Connect to the WebSocket server at:Authentication
Authenticate by including your API key in the connection URL. The API key acts as your authentication token. Example using wscat:Subscribing to Channels
To receive real-time order updates, send a subscription message after connecting.Subscription Message Format
action: Must be"subscribe"platform: Must be"polymarket"version: Currently1type: Must be"orders"filters.users: Array of wallet addresses to track
Subscription Acknowledgment
After sending a subscription message, you’ll receive an acknowledgment from the server:subscription_id - you’ll need it to unsubscribe later.
Receiving Order Events
When orders matching your subscription filters are executed, you’ll receive event messages in real-time.Event Message Format
type: Always"event"for order eventssubscription_id: The ID of the subscription that triggered this eventdata: Order information matching the format of our orders API
filters.users array.
Unsubscribing
To stop receiving updates for a subscription, send an unsubscribe message:subscription_id from the acknowledgment you received when subscribing.
Alternatively, you can simply disconnect from the WebSocket to stop all subscriptions.