Building a Simple Arbitrage Alert Bot With the OmniPred Data Stream
The OmniPred Data Stream pushes live top-of-book quotes for matched Kalshi and Polymarket markets, plus an arbitrage channel that opens, updates and closes opportunities as prices move. Here is how to turn it into a simple alert bot.
1. Get a key
Sign in with Google or GitHub and create a free API key in your dashboard. The free tier includes realtime updates for part of each day and digests after that.
2. Subscribe to arbs
Connect to the WebSocket with your key and subscribe to the arbs channel with filters, for example a minimum profit of 2% and a minimum outcome score of 0.9. You will get a snapshot of current opportunities, then open, update and close events.
3. Filter for quality
On each open event, check the event and outcome scores, both end dates, and the max contracts available. Skip pairs whose end dates differ by more than a few days, and skip anything where max size is too small to cover your fees.
4. Alert, don't auto-trade
Send qualifying opportunities to Slack, Discord or Telegram with links to both markets. Keep a human in the loop: read the rules, check the books, then decide.
5. Track how long gaps last
Log the time between open and close for each arb. Over a few weeks you'll learn which categories close in seconds and which persist, which tells you where speed matters and where it doesn't. Full docs and examples are on our API page.
These gaps update in real time. See all current opportunities in the live scanner.
View Live Arbitrage Scanner →