Live odds API for in-play prices

Live odds API with in-play prices pushed in under 500 ms over WebSocket on Syndicate, plus live scores, the game clock and automatic suspension of stale prices.

In-play markets move every few seconds. PreciseAPI pushes each change as it happens, with the game state alongside, so live tools stay in sync with the market.

In-play markets reprice after every score, turnover and timeout, and books suspend them for seconds at a time while they do. A live odds API has to keep pace with that and tell you the moment a price is no longer on offer. PreciseAPI delivers in-play prices on the Syndicate plan, over REST and a WebSocket stream, with the score and game clock on every event and in-play updates in under 500 ms.

This page covers who gets live prices, the two ways to receive them, the stream's message format, how stale prices are handled, how published speed figures compare across providers, and what developers build with in-play data.

Who can use the live odds API

In-play odds are part of Syndicate ($249.99 a month), which also includes the WebSocket stream with 10 concurrent connections, unlimited credits and 3,000 requests a minute. Edge and Sharp serve pre-game odds: games in progress are left out of their odds responses, and asking for them with status=live returns 403 plan_feature_unavailable.

Scores and game clocks from /v1/scores (1 credit) are on every paid plan, so an Edge or Sharp app can keep a live scoreboard while its odds stop at the start of the game. Plans are compared on odds API pricing.

Two ways to use the in-play odds API

REST: poll games in progress

GET /v1/odds with status=live returns only games in progress, in the same shape as pre-game odds. It suits periodic snapshots and rebuilding state after a restart, and it is the simplest way to try the live odds API before writing a stream client.

curl "https://api.preciseapi.com/v1/odds?league=nba&status=live&markets=moneyline,spread,total&books=fanduel,draftkings,pinnacle" \
  -H "Authorization: Bearer $PRECISEAPI_KEY"

WebSocket: push every change

The stream is what most people mean by a real-time odds API: one connection, a snapshot when you subscribe, then only what changed. Connect to wss://api.preciseapi.com/v1/stream with your key in the Authorization header, or send an auth message first from a browser.

import WebSocket from 'ws';

const ws = new WebSocket('wss://api.preciseapi.com/v1/stream', {
  headers: { Authorization: `Bearer ${process.env.PRECISEAPI_KEY}` },
});

let lastSeq = 0;
ws.on('open', () => {
  ws.send(JSON.stringify({ type: 'subscribe', leagues: ['nba', 'nhl'], markets: ['moneyline', 'spread', 'total'] }));
});

ws.on('message', (raw) => {
  const msg = JSON.parse(raw);
  const expected = msg.type === 'heartbeat' ? lastSeq : lastSeq + 1;
  if (lastSeq && msg.seq !== expected) ws.send(JSON.stringify({ type: 'resync' }));
  lastSeq = msg.seq;
  if (msg.type === 'event') console.log('game state', msg.data.id, msg.data.score, msg.data.clock);
  if (msg.type === 'delta') for (const c of msg.changes) console.log(c.event_id, c.book, c.market.key, c.market.outcomes);
});

The messages you handle:

A trimmed delta:

{
  "type": "delta",
  "seq": 42,
  "ts": "2026-11-12T01:32:10.250Z",
  "changes": [{
    "event_id": "evt_1iazqk4srnb",
    "book": "fanduel",
    "market": {
      "id": "mkt_14ivq762bz0", "key": "spread", "period": "full_game", "line": -6.5,
      "outcomes": [
        { "id": "sel_1d92w0erhd2", "name": "Phoenix Suns", "side": "home", "point": -6.5, "price": -112 },
        { "id": "sel_1lhzilnwepp", "name": "San Antonio Spurs", "side": "away", "point": 6.5, "price": -108 }
      ],
      "suspended": false
    }
  }],
  "removed": [{ "event_id": "evt_1iazqk4srnb", "book": "betmgm", "market_id": "mkt_0p3xk1r8c2a", "reason": "line_moved" }]
}

Every message carries a per-connection seq one higher than the last. A jump means a missed message: send resync and the stream sends a fresh snapshot. The stream bills one credit when a connection opens and one per minute while it stays open, which Syndicate's unlimited credits cover. The WebSocket odds API docs list every message and close code, and the odds API Node.js post covers reconnects and backoff.

Stale prices and game state

A live betting odds API that keeps showing a pulled price is worse than none. When a source stops reporting a market, the market is marked suspended instead of staying on the board at its last price. REST responses leave suspended markets out unless you pass include_suspended=true. On the stream, a suspension arrives as a change with suspended: true, and a market the source drops arrives as a removal with its reason.

Every event carries score and clock, for example { "period": 3, "display": "Q3 2:54" }, so a screen can show where the game stands next to each price. Event ids don't change when a game goes live, so state keyed on them survives the start of play. Markets also carry updated_at, when PreciseAPI stored the current price, and where the book gives a reliable time, source_changed_at, the book's own clock for the move.

Books and leagues in play

For a live sports odds API, coverage is decided game by game rather than league by league: the feed carries in-play prices from every source that publishes them while a game is on, in all 17 leagues. GET /v1/events/{id} lists the sources pricing a game right now. Exchange prices keep their liquidity in play. To stream player props for games in progress, add player_* keys to the subscription's markets; they stay for as long as sources keep posting them.

Building a live line API yourself means scraping in-play pages that change every few seconds, suspend without warning and name teams differently at every book, then mapping it all to the same game. That is the layer the feed replaces.

Speed: the published figures

Searches for the fastest odds API usually turn up claims that are hard to compare. These are figures each provider publishes, as checked in October 2026:

ProviderPublished in-play figureDelivery
PreciseAPI (Syndicate)Under 500 msWebSocket and REST
PropProfessor enterprise APIEvery 500 ms on live gamesWebSocket
OpticOdds"Under 800ms"SSE and RabbitMQ
The Odds API40 s for featured marketsREST
Sportradar Live OddsEvery 15 to 30 sREST

When you compare a live odds API on speed, remember that each provider measures differently and that no feed can deliver a price faster than the book changes it. Test with the books and leagues you care about before you commit; the best odds API comparisons have the sources for each figure.

What developers build with real-time betting odds

Pre-game lines are covered on the betting odds API page, and the odds comparison API includes games in progress on Syndicate.

Frequently asked questions

Is the live odds API available on Edge or Sharp?

No. In-play odds and the WebSocket stream are part of Syndicate. Edge and Sharp return pre-game odds, and live games drop out of their odds responses while /v1/scores keeps updating.

How fast are in-play updates?

In-play updates arrive in under 500 ms on Syndicate. The stream batches changes into a delta every 250 ms, so one message can carry several markets.

Can I stream player props during games?

Yes. Add player_* keys to markets in the subscribe message. Props stream for as long as each source keeps them up during the game.

How many stream connections can I open?

Ten at a time on Syndicate. A connection over the limit closes with code 4029.

What happens if my client misses a message?

The jump in seq tells you. Send {"type":"resync"} and the stream sends a fresh snapshot, then continues with deltas.

Who gets live prices

In-play odds are part of the Syndicate plan, along with the WebSocket stream and its 10 concurrent connections. On Edge and Sharp, odds endpoints return pre-game prices and leave games in progress out. Request status=live on /v1/odds to get only games in progress, or subscribe to a league on the stream and receive every change as it happens.

Live data you can trust

A market whose source stops reporting is marked suspended instead of staying on the board at its last price, and suspended markets are left out unless you pass include_suspended=true. Every event carries the score and game clock, so a live screen can show where the game stands next to each price. The stream numbers every message, so a client can detect a missed update and resync.

Example request

GET /v1/odds?league=nba&status=live&markets=moneyline,spread

Endpoint

What teams build with it

Related reading

More products

Responses use the same event, market and outcome ids as every other endpoint. Prices are American odds by default, with format=decimal and format=probability for the other two, and a market whose source has stopped reporting is flagged suspended instead of being shown as live.

Every source and league is on the coverage page, and what each request costs is on the pricing page.