Free beta · WebSocket · <100 ms median

OmniPred Data Stream

One socket for live Kalshi and Polymarket prices on the same questions, plus a cross-venue arbitrage feed computed from the actual order books. We maintain both venues' books and push the top of book the moment it moves, typically under 100 ms after the exchange records the change.

Free beta

$0 while in beta

  • Live best ask + size for YES and NO on Kalshi and Polymarket
  • Median under 100 ms from the exchange to your socket (US East Coast)
  • Up to 25 matched pairs per connection
  • Arb stream: open / update / close events (top 20 in each snapshot)
  • 15 minutes of realtime updates per day, then a digest every 30s
  • 1 connection per account · 60 REST requests per hour
  • API dashboard with your keys and usage

Get a free API key

Sign in with Google or GitHub to create keys and track your usage in the API dashboard. No password, no card.

Sign in to get a key

By signing in you agree to the Terms and Privacy Policy.

Pairs are matched by our pipeline; check event_score, outcome_score and both end dates before trading, since venues sometimes word the same market differently. Profit figures are before venue fees. Data is provided as-is and is not financial advice.

Connect

Authenticate with ?api_key=, an X-API-Key header or Authorization: Bearer. Each subscribe returns a snapshot of current state, then live updates follow. After your daily realtime minutes are used you get a notice and updates arrive as 30-second digests until 00:00 UTC.

const ws = new WebSocket("wss://pred-market.fly.dev/v1/stream?api_key=YOUR_KEY");

ws.onopen = () => {
  // up to 25 pair_ids from GET /v1/pairs
  ws.send(JSON.stringify({ op: "subscribe", channel: "quotes", pairs: ["KXFEDDECISION-26DEC-H0:567890"] }));
  // arbs of 2%+ on well-matched pairs
  ws.send(JSON.stringify({
    op: "subscribe", channel: "arbs",
    min_profit_pct: 2, min_outcome_score: 0.9, min_event_score: 0.85,
  }));
};

ws.onmessage = (e) => {
  const msg = JSON.parse(e.data);
  if (msg.type === "quote") console.log(msg.pair_id, msg.kalshi.yes_ask, msg.polymarket.no_ask);
  if (msg.type === "arb") console.log(msg.event, msg.kalshi_label, msg.net_profit_pct + "%");
  if (msg.type === "notice") console.log(msg.message); // e.g. switched to 30s digests
};

Quote messages

Sent whenever either venue's best ask or size changes for a pair. Prices are in dollars (0–1); sizes are contracts.

{
  "type": "quote",
  "pair_id": "KXPRESPERSON-28-JVAN:253591",
  "kalshi":     { "yes_ask": 0.29, "no_ask": 0.72, "yes_ask_size": 1520, "no_ask_size": 830,
                  "exchange_ts": 1793945405640, "recv_ts": 1793945405652 },
  "polymarket": { "yes_ask": 0.284, "no_ask": 0.719, "yes_ask_size": 4210.5, "no_ask_size": 917,
                  "exchange_ts": 1793945405601, "recv_ts": 1793945405609 },
  "ts": 1793945405652
}

Arb messages

open when buying one side on each venue costs under $1, update when price or size moves, close when the gap is gone. One of the two legs pays $1 at settlement.

{
  "type": "arb", "event": "open",
  "arb_id": "KXPRESPERSON-28-JVAN:253591:NO",
  "kalshi_leg": "NO", "poly_leg": "YES",
  "kalshi_ask": 0.69, "poly_ask": 0.284,
  "gross_cost": 0.974, "net_profit_pct": 2.669,
  "max_contracts": 830, "max_profit_usd": 21.58,
  "kalshi_label": "JD Vance", "poly_label": "JD Vance",
  "event_score": 0.94, "outcome_score": 1,
  "kalshi_end_date": "2028-11-07", "poly_end_date": "2028-11-07",
  "kalshi_url": "https://kalshi.com/events/...", "poly_url": "https://polymarket.com/event/...",
  "opened_ts": 1793945405652, "updated_ts": 1793945405652
}

Latency

Nothing is batched while you're in realtime mode: each order-book change is pushed as soon as we process it. In our measurements from the US East Coast, the time from the exchange's own timestamp to the message arriving at the client had a median of about 55 ms for Polymarket and 80 ms for Kalshi, with 90% of updates under 130 ms. Our servers are in Newark, NJ, so expect more from farther away.

Every quote carries exchange_ts (when the venue says the change happened) and recv_ts (when our server received it), both in Unix milliseconds, so you can measure it yourself. Use ping to correct for your clock:

// offset = server clock - your clock, from a ping round trip
const sent = Date.now();
ws.send(JSON.stringify({ op: "ping" }));
// on {"type":"pong","ts":...}:  offset = pong.ts - (sent + (Date.now() - sent) / 2)

// on each quote:
const latencyMs = Date.now() + offset - msg.kalshi.exchange_ts;

Figures depend on the venues' clocks and network conditions and are not guaranteed. Free accounts get realtime delivery for 15 minutes a day, then 30-second digests.

Other operations and REST

{"op":"usage"}  ->  realtime seconds left today, current limits
{"op":"unsubscribe","channel":"quotes"}          {"op":"ping"}  ->  {"type":"pong","ts":...}

GET https://pred-market.fly.dev/v1/pairs                      every matched pair with labels, scores, end dates
GET https://pred-market.fly.dev/v1/quotes?pair_id=...         current quotes (repeat pair_id, up to 25)
GET https://pred-market.fly.dev/v1/arbs?min_profit_pct=2      top open arbs, best first

REST responses carry X-RateLimit-Limit / -Remaining / -Reset headers.