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.
- Sub-500 ms in-play updates
- Live scores and clock on every event
- Suspended markets flagged instantly
- Snapshot + deltas with sequence numbers
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:
snapshot: the full state of your subscription, in the same shape as/v1/odds. Large snapshots continue insnapshot_partframes of about 5,000 markets.delta: changed markets inchangesand withdrawn ones inremoved, batched every 250 ms. Each removal has a reason such assource_dropped,line_moved,settledorclosed.event: a new game, or a status, score, clock or kickoff change.heartbeat: every 15 seconds, repeating the current sequence number.
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:
| Provider | Published in-play figure | Delivery |
|---|---|---|
| PreciseAPI (Syndicate) | Under 500 ms | WebSocket and REST |
| PropProfessor enterprise API | Every 500 ms on live games | WebSocket |
| OpticOdds | "Under 800ms" | SSE and RabbitMQ |
| The Odds API | 40 s for featured markets | REST |
| Sportradar Live Odds | Every 15 to 30 s | REST |
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
- Trading and market-making tools that keep a book in sync from sequence-numbered deltas: odds API for sportsbooks.
- Live screens with every book's in-play price: real-time odds screen.
- Game cards with the score, clock and current line: odds API for betting apps.
- In-game alert bots fed by the stream: odds API for Discord bots, and the guide to how to detect steam moves.
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
- GET /v1/odds: Get odds
What teams build with it
- Trading & market making: An odds API for sportsbooks and trading desks: every competitor’s price, sharp books and exchanges in real time, with line history, to price and manage risk.
- Media & affiliates: An odds API for affiliates, media and tipsters: live odds tables, best-price widgets and deep links to each book’s bet slip, from one normalized feed.
- Models & data science: Sports betting model data: market prices, implied probabilities and line history with stable ids, to train, backtest and run betting models and research.
- Exchange trading tools: An exchange data API for trading tools: Kalshi, Polymarket and Novig prices next to sportsbook odds on one event id, with liquidity, in one format.
Related reading
- REST Polling vs WebSockets for Live Odds Data: A practical comparison of polling and streaming for live odds. Freshness, credit cost and the break-even point, snapshot plus delta consistency, sequence numbers, reconnection and hybrid designs.
- Odds API Node.js Tutorial: Streaming Real-Time Odds with WebSockets: Build a reliable Node.js client for real-time odds with the ws package. Snapshots, deltas, sequence-gap detection, resync and reconnects with backoff.
- How to Build an Odds Screen in Real Time (Architecture and Code): A production architecture for a live odds screen with a REST snapshot, WebSocket deltas, best-line highlighting in React and handling of stale prices.
More products
- Futures odds API: Futures odds API for championship, conference, division and award boards from FanDuel, DraftKings and Pinnacle, normalized with participant ids across books.
- Historical odds API: Historical odds API with timestamped line history for every market and book: opening prices, every move and the closing line, for backtests, CLV and research.
- Exchange odds API: Exchange odds API: Kalshi, Polymarket, Novig, ProphetX and 4CX prices in the same formats as sportsbook odds, with liquidity, on one event id.
- DFS pick'em API: DFS pick’em API with real-time PrizePicks, Underdog, Sleeper, Dabble, Betr Picks and Pick6 lines, goblin and demon variants, next to sportsbook props.
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.