ProductExplore oddsPricingOdds APILearn
Log inGet the app
ProductExplore oddsPricingOdds APILearnLog in

Stay in the loop

Join our newsletter for the latest tools, new guides, and product updates.

By providing your email, you are consenting to receive communications from SmartStake. Visit our Privacy Policy for more info

Product

  • Tools
  • Pricing
  • Mobile app
  • Docs
  • Support

Guides

  • Positive EV
  • Arbitrage
  • Promo Converter
  • Middles
  • Smart Money
  • Fantasy Optimizer
  • Bet Tracker
  • Lineup Dropper

Socials

  • Discord
  • Instagram
  • Twitter

SmartStake is an independent informational and analytical platform, not affiliated with any sportsbook. We do not accept, facilitate, or process any wagers. We are not a sportsbook, casino, or gambling operator. Our tools and articles provide data analysis, odds comparison, and mathematical calculations for informational and educational purposes only, and are not financial, investment, or betting advice. All sports betting involves risk of loss. Past performance does not guarantee future results. Individual results will vary. Only stake what you can afford to lose. Users are solely responsible for their own betting decisions.

If you or someone you know has a gambling problem, call 1-800-MY-RESET (US), 1-877-8-HOPENY or text HOPENY (NY), 1-800-522-4700 (NCPG), 1-866-531-2600 (ON), or 1-888-795-6111 (BC). Visit www.ncpgambling.org for more resources. Adults only (19+ in Canada, 21+ in the US).

© 2026 SmartStake. All Rights Reserved.

Privacy PolicyTerms of UseResponsible Gambling
  1. Learn
  2. Fundamentals

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.

SmartStake Team·November 23, 2026·9 min read
A chunky arrow-shaped signal pulse streaming into a tilted coin, a smaller gauge dial nested behind, arranged as a calm floating triangular cluster

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

Polling intervalevery 10 s
How long the price lasts12 s
Events you watch20
Books you watch10
One minute, one price change at 23 s
0 s30 s60 s

Top ticks are polls; the shaded band is how long the new price lasts; the bottom mark is the stream.

Polling saw it at 30 s, 7 s lateStream delivered it in about 0.25 s
Polling every 10 s
Average wait for a change5 s
Longest wait10 s
Chance you see a 12 s price100%
Average time left when you see it7 s
Requests a minute (8 per poll)48 of 120
The stream
Average wait for a change0.25 s
Batches sentevery 0.25 s
Chance you see a 12 s price100%
Average time left when you see it11.8 s
Connections used1 of 7
Within the 120 requests a minute limitThe fastest you can poll 20 events at 10 books is every 4 s, an average wait of 2 s.

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:

  1. Book to board. How fast a sportsbook's change reaches the provider's odds board.
  2. 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 EventsWebSocket
DirectionServer to clientBoth ways
ProtocolPlain HTTP response that stays openHTTP upgrade to its own protocol
ReconnectBuilt in, with a retry delayYou write it
Resume after a dropLast-Event-ID header, sent by the browser's EventSourceYou design it
Works through proxies and with curlYesOften 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:

  1. Open the stream.
  2. Pull the current quotes over REST, by event or as a league snapshot.
  3. Apply each stream event to your copy, keyed by quote_id, keeping the version with the newest updated_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 id in the Last-Event-ID header 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-reset closes 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 error and 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-odds serves 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

On this page

Polling vs the Stream, Side by SideWhat Real Time Means for an Odds APIHow Polling Works and What It CostsPush Delivery with Server-Sent EventsOpen the StreamMeasure the Wait YourselfKeep a Local Board CurrentWhen Polling Is Still the Right CallChoosing a Live Odds FeedFAQGet an API Key

Similar articles

A curling line-graph ribbon arcing upward over a short stack of dollar coins, a single pair of dice resting beside the stack in a balanced triangular grouping
TutorialsOdds API

Positive EV Betting in Python: Build a +EV Odds Scanner

A step by step Python tutorial for a positive EV betting scanner: pull a league from the SmartStake Odds API, average the sharp books' prices, devig them into a fair chance, flag every soft price above it, size the stake with quarter Kelly, and grade every alert against the closing line.

Nov 26, 2026 · 11 min read

A central line-ribbon forks into two balanced streams that one reclining figure stretches across like a hammock, while another sits inside an open browser window threading looping wires between twin donut dials; a third perches on a floating circuit-board platform fitting bar-chart slices into a curved grid-wall, baseballs and coins drifting through gaps over soft negative-space blobs.
AnalysisOdds API

The Odds API Alternative: SmartStake vs The Odds API

An honest side-by-side of the SmartStake Odds API and The Odds API on delivery, update speed, books, props, same game parlays, history and price, with what polling costs in credits, where The Odds API is the better pick, and how to move your requests across.

Nov 26, 2026 · 9 min read

A central key tilting toward a short stack of rounded ledger cards, two small coins and a curling line-graph ribbon nested behind in a calm triangular cluster
TutorialsOdds API

How to Scrape Sportsbook Odds in Python (and When Not To)

How a sportsbook odds scraper actually works: where book sites load their prices, what their terms say, a polite Python fetcher, and the hard part, matching every book's teams, markets and price formats onto one line. Then the same job with one odds API key, and the few cases where scraping still makes sense.

Nov 25, 2026 · 10 min read

A curling line-graph ribbon arcing upward over a short stack of dollar coins, a single pair of dice resting beside the stack in a balanced triangular grouping
TutorialsOdds API

Positive EV Betting in Python: Build a +EV Odds Scanner

A step by step Python tutorial for a positive EV betting scanner: pull a league from the SmartStake Odds API, average the sharp books' prices, devig them into a fair chance, flag every soft price above it, size the stake with quarter Kelly, and grade every alert against the closing line.

Nov 26, 2026 · 11 min read

A central line-ribbon forks into two balanced streams that one reclining figure stretches across like a hammock, while another sits inside an open browser window threading looping wires between twin donut dials; a third perches on a floating circuit-board platform fitting bar-chart slices into a curved grid-wall, baseballs and coins drifting through gaps over soft negative-space blobs.
AnalysisOdds API

The Odds API Alternative: SmartStake vs The Odds API

An honest side-by-side of the SmartStake Odds API and The Odds API on delivery, update speed, books, props, same game parlays, history and price, with what polling costs in credits, where The Odds API is the better pick, and how to move your requests across.

Nov 26, 2026 · 9 min read

A central key tilting toward a short stack of rounded ledger cards, two small coins and a curling line-graph ribbon nested behind in a calm triangular cluster
TutorialsOdds API

How to Scrape Sportsbook Odds in Python (and When Not To)

How a sportsbook odds scraper actually works: where book sites load their prices, what their terms say, a polite Python fetcher, and the hard part, matching every book's teams, markets and price formats onto one line. Then the same job with one odds API key, and the few cases where scraping still makes sense.

Nov 25, 2026 · 10 min read