What is Dome API?
Dome API provides comprehensive access to prediction market data across multiple platforms including Polymarket and Kalshi. Get real-time market prices, historical candlestick data, wallet analytics, order tracking, and cross-platform market matching. Get started with a free API key here.What are Websockets?
Dome API provides real-time data streaming through WebSocket connections, allowing you to receive live updates for market prices, trades, orderbook changes, and more without constantly polling the REST API.Tier Limits
Subscription and wallet tracking limits vary by tier:| Tier | Subscriptions | Wallets per Subscription |
|---|---|---|
| Free | 2 | 5 |
| Dev | 500 | 500 |
| Enterprise | Custom | Custom |
Quick Start
1. Get Your API Key
Sign up for an account and get your API Key from the dashboard.
2. Connect to the WebSocket
Connect to the Dome API WebSocket endpoint to start receiving real-time data. Below is an example usingwscat
wscat -c wss://ws.domeapi.io/<API_KEY_GOES_HERE>
3. WebSocket Actions
Dome API WebSockets support three main actions to manage your real-time data streams:Subscribe
Subscribe to channels to start receiving real-time updates. You can filter orders by:- User addresses - Track trades from specific wallets or use a wildcard for all trades (Dev tier only)
- Condition IDs - Track trades for specific market conditions
- Market slugs - Track all trades within specific markets
Update
Update an existing subscription’s filters without creating a new subscription:Unsubscribe
Stop receiving updates from a subscription:Need Help?
- Email: Support Email
- Join our Discord community
- Check out our SDKs: TypeScript | Python