Real-Time Odds API: Push vs Polling for Live Odds Feeds
A real-time odds API pushes each price change to you. SmartStake streams every change over SSE in about 0.25 s, while polling every 10 s waits 5 s on average.

A real-time odds API pushes each price change to you the moment it lands, instead of waiting for you to ask. That one difference decides how stale your prices are, how many short-lived prices you miss, and how many requests you burn.
The SmartStake Odds API is a real-time odds API: every change goes out over a Server-Sent Events stream, and it reaches a connected client in about a quarter of a second on average. Polling the same board every 10 seconds waits 5 seconds on average.
Here is one price change, seen both ways. Drag the polling interval and the price's lifetime, then add events and books, and watch the wait, the misses and the request count move.
Polling vs the Stream, Side by Side
Polling vs the stream: one price change
Top ticks are polls; the shaded band is how long the new price lasts; the bottom mark is the stream.
Illustrative timing. The polling wait assumes a change lands at a random moment between polls, so it waits half the interval on average, the same assumption as the Odds API page. The stream figure is SmartStake's measured board to client average over the 7 days to 13 October 2026. Requests count 5 events and 5 books per /v1/odds call, against the default per key limits. Neither figure includes the time a book takes to reach the board.
In this illustrative example, a price changes 23 seconds into the minute and lasts 12 seconds. A client polling every 10 seconds sees it at 30 seconds, 7 seconds late, with 5 of its 12 seconds left. The stream has it in about 0.25 seconds.
Shorten the price's life to 6 seconds and the poller misses it entirely: it changes after the poll at 20 seconds and is gone before the poll at 30.
What Real Time Means for an Odds API
Two clocks add up to the age of every price you hold:
- Book to board. How fast a sportsbook's change reaches the provider's odds board.
- Board to you. How fast the board's change reaches your client.
Delivery method only shortens the second clock. SmartStake measures it as delivery wait: a quarter of a second, the average over the 7 days to 13 October 2026, from a change landing on the board to a connected client.
The first clock differs by book. The update frequency page lists it, pregame and live, for every book: DraftKings, FanDuel and BetMGM, for example, reach the board in real time, while a few books update pregame every 60 seconds.
A feed is only as real time as both clocks together. Ask any provider which one its speed figure measures.
How Polling Works and What It Costs
Polling means asking for the current board on a timer. It is the simplest way to read an odds API, and it has three costs.
The wait. A change lands at a random moment between two polls, so on average it waits half the interval, and at worst the whole interval. Polling every 60 seconds waits 30 seconds on average; every 10 seconds, 5.
The misses. A price that lasts less than the interval can appear and vanish between two polls. Its chance of being seen at all is its lifetime divided by the interval: a 6 second price polled every 10 seconds is seen 60% of the time. Live prices and the stale prices behind most arbs are exactly that short.
The requests. Polls multiply with what you watch. On the SmartStake Odds API, one /v1/odds call covers up to 5 events and 5 books, and a key allows 120 requests a minute:
20 events at 10 books = 4 event groups × 2 book groups = 8 requests a poll
8 requests a poll, every 10 s = 48 requests a minute (within 120)
8 requests a poll, every 2 s = 240 requests a minute (over 120)
fastest legal poll = 8 × 60 / 120 = every 4 s, a 2 s average wait
A league snapshot, every quote in a league in one paged call, has its own limit of 10 pages a minute. It suits a periodic full refresh, not a fast loop.
Some providers make polling cheap and simple, and that is a real advantage. The Odds API, for example, is REST only, charges 1 credit per market per region on its odds endpoint, starts free at 500 credits a month, and lists update intervals of 60 seconds pregame and 40 seconds in play for its featured markets (read on its own site on 2026-11-23). For a once a minute model, that is a fair trade. For a scanner that acts on prices, the interval is the wait.
Push Delivery with Server-Sent Events
Push turns the loop around: you open one connection and the server sends each change when it has it. Two web standards do this, and searches for a WebSocket odds API usually mean "push", not the protocol.
| Server-Sent Events | WebSocket | |
|---|---|---|
| Direction | Server to client | Both ways |
| Protocol | Plain HTTP response that stays open | HTTP upgrade to its own protocol |
| Reconnect | Built in, with a retry delay | You write it |
| Resume after a drop | Last-Event-ID header, sent by the browser's EventSource | You design it |
| Works through proxies and with curl | Yes | Often needs configuration |
An odds feed only flows one way, from the board to you, so the WebSocket's return channel buys nothing. The SmartStake Odds API streams over Server-Sent Events, not WebSockets, and the wait is the same either way: both push the moment the server has the change.
On the SmartStake stream, changes go out in batches every 250 ms. A batch holds only the latest version of each quote, so a price that moves 3 times in one batch reaches you once, at its newest value. The stream is gzip-compressed and each batch is flushed as it is written.
Open the Stream
/v1/stream/{sport} opens the stream, filtered by the same parameters as /v1/odds: league, event_id, book, market, alternate and live. Every request needs your key as a bearer token and Accept-Encoding: gzip; with curl, --compressed sends it and -N prints events as they arrive.
export SMARTSTAKE_API_KEY=your-key
curl -N --compressed -H "Authorization: Bearer $SMARTSTAKE_API_KEY" \
"https://api.server.smartstake.ca/v1/stream/basketball?league=nba&book=draftkings&book=fanduel"
Each change arrives as an event with a type, an id and a JSON payload:
event: connected
retry: 1000
data: ok
event: quote
id: 1.3f9a0c41b2de.AwAQAKDp...
data: {"type":"quote","quotes":[{"quote_id":"m~evt_...~over~caesars", ...}]}
event: quote-removed
id: 1.3f9a0c41b2de.AwAQAKDp...
data: {"type":"quote-removed","quotes":[{"quote_id":"m~evt_...~under~fanduel", ...}]}
quote carries prices that are new, changed or back on the board. quote-removed carries prices that were suspended or pulled, which a poller only notices when a quote is missing from the next response. A ping arrives after 25 seconds without other events, so a quiet stream is still a live one.
Measure the Wait Yourself
Every quote carries updated_at, when its price last changed, in epoch milliseconds. Compare it with your own clock as each quote arrives and you have the age of your feed, by your own measure. This script prints the median and the slowest age every 30 seconds, using only the Python standard library:
import codecs, json, os, statistics, sys, time, urllib.request, zlib
API = "https://api.server.smartstake.ca"
LEAGUE = sys.argv[1] if len(sys.argv) > 1 else "nba"
SPORT = {"nba": "basketball", "nfl": "football", "mlb": "baseball", "nhl": "hockey"}[LEAGUE]
def stream_lines(response):
inflater = zlib.decompressobj(16 + zlib.MAX_WBITS)
decoder = codecs.getincrementaldecoder("utf-8")()
pending = ""
while chunk := response.read1(65536):
pending += decoder.decode(inflater.decompress(chunk))
*lines, pending = pending.split("\n")
yield from lines
headers = {
"Authorization": f"Bearer {os.environ['SMARTSTAKE_API_KEY']}",
"Accept-Encoding": "gzip",
}
request = urllib.request.Request(f"{API}/v1/stream/{SPORT}?league={LEAGUE}", headers=headers)
ages_ms, report_at, event = [], time.time() + 30, None
with urllib.request.urlopen(request, timeout=90) as response:
for line in stream_lines(response):
if line.startswith("event: "):
event = line[len("event: "):]
elif line.startswith("data: ") and event == "quote":
received_ms = time.time() * 1000
for quote in json.loads(line[len("data: "):])["quotes"]:
ages_ms.append(received_ms - quote["updated_at"])
if time.time() >= report_at and ages_ms:
print(f"{len(ages_ms)} quotes, median age {statistics.median(ages_ms):.0f} ms, slowest {max(ages_ms):.0f} ms")
ages_ms, report_at = [], time.time() + 30
Run it with python stream_wait.py nba during a slate. Keep your clock synced (NTP), since a clock that runs a second fast adds a second to every age. A fresh connection carries only changes from the moment it opens, so every age is a live change.
Keep a Local Board Current
A stream carries changes, not the board itself. To hold a full, current copy, follow the order the API docs set:
- Open the stream.
- Pull the current quotes over REST, by event or as a league snapshot.
- Apply each stream event to your copy, keyed by
quote_id, keeping the version with the newestupdated_at.
Opening the stream before the pull means no change between the two is missed. After that, the stream does the rest:
- A dropped connection resumes. Reconnect with the last event's
idin theLast-Event-IDheader and the stream replays every change you missed, about the last 10 minutes of them, then carries on live. No new pull needed. - A gap too large to replay says so. You receive
resync-required: keep the stream open and pull again. - A rebuilt board says so.
board-resetcloses the stream; discard every quote, then reconnect and pull when requests succeed again. - A slow reader is cut off. When an update has waited 10 seconds for your client, the stream sends
errorand closes rather than deliver stale prices. Read the stream on its own thread and do database writes and model runs off a queue.
The arbitrage scanner tutorial builds this whole loop in Python, with a rescan on every change.
When Polling Is Still the Right Call
Push is not always worth the extra code. Polling a REST snapshot is the simpler choice when you read the board on a schedule rather than react to it:
- A model that reprices once a minute or slower.
- A pregame report or a daily export.
- A handful of events checked by hand or by a cron job.
- Closing prices after the start, which
/v1/closing-oddsserves on the Pregame + Live and Full Stream plans.
Anything that acts on a price before it moves, such as an arbitrage scanner, a positive EV alert, or a live betting tool, needs push. The player props API guide and the prediction market odds API guide both use the stream for that reason.
Choosing a Live Odds Feed
Before you build on a live odds feed, get a straight answer to each of these:
- Push or poll? And if push, over what: Server-Sent Events, WebSocket, or a webhook.
- Which clock does the speed figure measure? Book to board, board to you, or both, and over what window.
- What happens on a reconnect? A replay from your last position, or a fresh pull every time.
- Are removals pushed? A suspended price should leave your board when it leaves the book's.
- What are the limits? Requests a minute, connections, and events and books per request.
- Is live included? On SmartStake, live odds come with the Pregame + Live and Full Stream plans; Hobby and Pregame stream pregame prices.
The SmartStake Odds API answers each one in its API reference: Server-Sent Events, a measured board to client wait, replay by event id, pushed removals, and published per key limits.
FAQ
What is a real-time odds API?
A real-time odds API pushes each price change to your client as it happens instead of waiting for you to ask. The SmartStake Odds API is a real-time odds API: it streams every change over Server-Sent Events in batches every 250 ms, and a change reaches a connected client in about a quarter of a second on average.
Is a WebSocket odds API faster than Server-Sent Events?
Not for reading odds. Both keep one connection open and push data the moment the server has it, so the wait is the same. WebSockets add a channel back to the server, which an odds feed does not need. Server-Sent Events run over plain HTTP, reconnect on their own and resume from the last event id, so SmartStake uses them.
How long does polling an odds API make me wait?
Half the polling interval on average, and the whole interval at worst. A change lands at a random moment between two polls, so polling every 60 seconds waits 30 seconds on average and polling every 10 seconds waits 5. A price that lasts less than the interval can come and go between two polls without you ever seeing it.
Why not just poll an odds API every second?
Request limits. Every poll costs requests, and they multiply with events and books. On the SmartStake Odds API, one /v1/odds call covers up to 5 events and 5 books, so 20 events at 10 books is 8 requests a poll, and the 120 requests a minute limit caps you at one poll every 4 seconds. One stream connection covers all of them with no polls.
Does a faster API mean faster odds from the sportsbook?
No. Two clocks add up: how fast a sportsbook's price reaches the provider's board, and how fast the board reaches you. Push delivery only shortens the second. SmartStake lists the first, per book, pregame and live, on its update frequency page.
When is polling an odds API good enough?
When you read the board on a schedule rather than react to it: a model that reprices once a minute, a pregame report, a daily snapshot. A REST snapshot every few minutes is simpler than a stream there. Anything that acts on a price before it moves, such as an arbitrage or positive EV scanner, needs push.
Get an API Key
The SmartStake Odds API streams on every plan. Hobby at $149 a month, for SmartStake Premium members, covers 5 sportsbooks and 5 leagues you pick, pregame only.
Pregame at $399 and Pregame + Live at $699 cover every sportsbook in 5 leagues you pick, and Full Stream at $999 covers every league. Live odds come with Pregame + Live and Full Stream.
Choose a plan. First-time subscribers to Pregame, Pregame + Live and Full Stream start with a 7-day free trial, and your key appears under API keys in SmartStake as soon as you subscribe.
Get the next guide in your inbox
Practical betting guides, new tools, and product updates from the SmartStake team. Unsubscribe in one click, any time.
By providing your email, you are consenting to receive communications from SmartStake. Visit our Privacy Policy for more info


