≈ 12 min read

Polling or streaming: comparing approaches in sportsbook APIs

Polling or streaming: comparing approaches in sportsbook APIs

For an automated system to notice an odds change, the sportsbook must deliver the new state of its line somehow. In practice, two approaches are common.

With polling, the client periodically sends an HTTP request asking what has changed since the previous call. The server returns a new state or reports that nothing has changed.

With streaming delivery, the client opens a persistent connection and subscribes to the markets it needs. When a price, available size or market status changes, the server sends the update itself.

Streaming appears to be the obvious choice: it is faster and avoids empty requests. But delivery speed is not the only consideration. A trading system must also handle connection counts, missed-message recovery, bursts of orders after a price change and the sportsbook’s need to revalidate a price before accepting a bet.

Polling is therefore not simply an outdated version of WebSocket. It is a different data-distribution model with its own benefits and constraints.

How polling works

Suppose an application requests football odds every five seconds.

  1. At 12:00:00 it receives odds of 2.00.
  2. At 12:00:01 the sportsbook changes the price to 1.95.
  3. Until the next request, the client continues to store the old value.
  4. At 12:00:05 it receives the new state.

The delay depends on when the change occurs relative to the request schedule. With a five-second interval, the client may learn about a new price almost immediately or almost five seconds later.

Even when the line has not changed, the server must accept the request, validate its parameters and return a response. With thousands of clients, a significant share of traffic may consist of checks that contain no new data.

To reduce payloads, APIs often support incremental responses. The client first downloads a complete snapshot and then sends the identifier of its latest version, receiving only the changes that occurred afterwards.

This is still polling: the server does not initiate delivery and waits for the client’s next request. A small or empty response is nevertheless much cheaper than retransmitting the entire line.

How the Pinnacle API works

Pinnacle’s official Lines API uses REST requests with snapshots followed by deltas.

The first request to /odds or /fixtures returns the current state and a last value. The client passes that value as since in the next call, after which the server returns only changed periods and markets.

Pinnacle recommends taking a full snapshot first and then switching to deltas, reducing payload size and processing time. The client still decides when to make each request. The public documentation does not describe a persistent channel through which the official API immediately pushes every line move.

Under the PS3838 fair-use rules, the two modes have different limits for each sport. A full /fixtures or /odds snapshot without since may be requested no more than once every 60 seconds. Clients should then use delta calls with a valid since value, which may be made every five seconds.

That is substantially faster than repeatedly requesting snapshots, but it does not turn the API into a stream. The client learns about a change only on its next call, so even a correct delta implementation may add almost five seconds of waiting.

Sources: Lines API documentation, PS3838 API fair-use policy.

Which other operators provide APIs?

Several other official APIs provide useful architectural comparisons.

Cloudbet: a rare API from a conventional sportsbook

Cloudbet is one of the closest examples to Pinnacle among fixed-odds sportsbooks. It publishes separate interfaces for data and betting:

  • Feed API returns events, markets and current lines;
  • Trading API supports programmatic bet placement;
  • Account API provides account data.

Feed API uses ordinary HTTP endpoints and returns JSON or binary Protocol Buffers. The public documentation does not describe a WebSocket feed for sports odds, so clients retrieve the current state through requests.

Cloudbet also separates keys by purpose. Affiliate API is intended to display odds without placing bets, and responses may be cached for up to one minute. Trading API provides the fresher data needed for programmatic betting.

This shows how an operator can control speed within one REST ecosystem through both request frequency and access level. A client that merely displays a line does not necessarily need the same data freshness as one submitting real bets.

Source: Cloudbet API documentation.

Betfair: a persistent stream over an SSL connection

Betfair provides Market Stream and Order Stream for applications requiring frequent updates to prices, markets and their own orders.

After subscription, Market Stream sends an initial market state followed by changes. The client maintains a local cache and applies new messages to it, avoiding repeated listMarketBook calls merely to check every price.

This does not require WebSocket. Betfair Stream API uses a persistent TCP connection protected by SSL and sends newline-delimited JSON messages. The server pushes changes through an already open channel, so the client does not need to keep polling for a new state.

From a delivery perspective, this is a full streaming architecture. WebSocket is only one way to create a persistent bidirectional channel, not a prerequisite for push updates. The precise protocol still matters during implementation: Betfair rejects attempts to connect to Stream API as a WebSocket.

Sources: Market & Order Stream overview, Betfair’s protocol clarification.

Matchbook: a betting-exchange REST API

Matchbook provides an official REST API for its betting exchange. It can retrieve events and prices, manage offers and support automated trading applications.

For data delivery, Matchbook is another polling example: the integration relies on independent HTTP requests rather than a persistent subscription to changes. Its product model is nevertheless closer to Betfair than to Pinnacle, because users interact with other participants’ offers and available liquidity rather than only with a price posted by a sportsbook.

Source: Matchbook Developer Centre.

Smarkets and BETDAQ: two more betting-exchange APIs

Smarkets provides market prices and bet placement through its API. It is another betting-exchange interface designed for both reading markets and managing orders.

BETDAQ provides interfaces for events, markets, prices and bet management. Its API is based on SOAP web services, with clients sending separate requests according to a WSDL specification.

These platforms illustrate a broader pattern: APIs for automated order placement and cancellation are more common at betting exchanges, where programmatic trading is part of the core product. A conventional sportsbook is itself the counterparty, so automated access to its line and limits also affects its own risk management.

Sources: Smarkets API terms, BETDAQ API documentation.

What a persistent connection changes

In a streaming model, the client connects once and specifies the data it wants. The server sends an initial snapshot and then individual changes.

If a price moves from 2.00 to 1.95, the update can be pushed to subscribers as soon as the new state is published. The client does not have to wait for its next interval or keep making requests just in case something happened.

This is particularly useful for:

  • live markets with frequent changes;
  • trading applications monitoring many events;
  • order books where both the best prices and available size change;
  • a user’s own orders, where fills and cancellations matter.

Streaming also requires more logic on both sides. The client must maintain the connection, process heartbeats, reconnect after interruptions and detect missed updates. The server must keep many connections open and prevent slow consumers from delaying delivery to others.

Kalshi and Polymarket: WebSocket order-book feeds

Kalshi and Polymarket use order books, so a price move is commonly accompanied by a change in available size at a particular level.

Kalshi’s WebSocket delivers:

  • order-book changes;
  • completed trades;
  • market-status changes;
  • fills of the user’s own orders.

For an order-book subscription, the client receives an initial orderbook_snapshot and then applies orderbook_delta messages. Kalshi’s documentation also requires clients to maintain the connection and reconnect with increasing delays when the server rejects attempts that are too frequent.

Polymarket likewise offers live market data without repeated polling. Its WebSocket can deliver the full book, price changes, the latest trade price and minimum tick-size changes. A separate stream handles updates to the user’s orders and trades. Polymarket’s documentation explicitly presents this as a way to keep data current without repeated requests.

This is a natural fit for an exchange model: the book may change after every new order, partial fill or cancellation. Periodic snapshots can miss intermediate states that matter to a trading algorithm.

Latency: polling’s clear boundary

Polling’s main weakness is easy to express: a client cannot be guaranteed to see a change before its next request.

With a ten-second interval and uniformly distributed changes, the average additional delay is about five seconds and the maximum approaches ten. Network and processing time come on top.

Reducing the interval to one second cuts latency but multiplies request volume by ten. If the line changes infrequently, almost all additional responses will be empty.

Streaming does not remove network latency, but it removes the wait for the next poll. An update is sent after the server records the new state.

Neither delivery method guarantees that the user can bet at the displayed price. Between receiving a quote and having a bet accepted are the network, request queue and the sportsbook’s price revalidation.

Load: empty requests versus persistent connections

Polling produces many short HTTP requests. Its advantage is that the server can handle each one independently:

  • responses are easy to cache;
  • rate limits are straightforward;
  • application instances can be added or removed behind a load balancer;
  • after responding, the server need not retain client connection state.

The main inefficiency is requests with no changes. Even a small empty response still requires network exchange, authentication and processing.

Streaming reduces that repetition but requires open connections. The server must track subscriptions, heartbeats, message queues and slow consumers. After a failure, thousands of simultaneous reconnections may create a more dangerous spike than ordinary polling.

Saying that WebSocket always creates less load is therefore too simplistic. It usually reduces empty requests and total transferred data, but shifts complexity into connection management and event fan-out.

Can polling spread line retrieval over time?

Yes, when clients poll at different moments.

Suppose one thousand applications request data once per minute. If their timers are evenly distributed, the server receives a relatively steady flow. Some clients learn about a move earlier and others later.

This distribution is not automatic. If every application polls at the start of each minute, polling creates its own spike. Well-behaved clients therefore add jitter, a small random variation around the base interval.

That can reduce simultaneous reactions across the client base, but at the cost of unequal timing: the client whose next request happens to arrive first gains an advantage.

With a stream, all active subscribers may receive a change at nearly the same time. That is fairer in terms of data access, but can trigger a wave of actions as many algorithms recalculate and submit orders or bets together.

Does streaming create simultaneous bet-submission load?

Potentially, but two systems must be separated.

Data distribution tells clients that a price has changed. The server need not recalculate the line separately for every subscriber: one event can be efficiently fanned out through a publish-subscribe system.

Bet or order submission is a separate operation. When many clients respond to an update at once, the trading system must validate the current price, limit, balance and risk for every request.

Under polling, these actions may naturally spread out because clients learn about the change at different moments. Streaming can synchronise their response and produce a short spike.

This is a real architectural trade-off, but it would be wrong to claim that Pinnacle chose polling specifically to spread bets artificially. Public documentation describes rate limits and efficient delta retrieval, not the product rationale for the absence of a stream.

Data delay is not a reliable sportsbook defence either. Clients may receive match information and market moves from other sources. The bet-acceptance system must still revalidate the price and reject or reprice a request that arrives after the line changes.

Comparing the approaches

CriterionPeriodic pollingStreaming delivery
Delivery speed⚠️ A change appears only on the next request✅ The server sends it as soon as it is published
Empty traffic⚠️ Responses may contain no changes✅ Data is sent when an update exists
Client implementation✅ Ordinary HTTP requests are sufficient⚠️ Subscriptions, heartbeats and reconnection are required
Connection state✅ Every request is independent⚠️ A persistent connection must be maintained
Error recovery✅ A new full snapshot can be requested⚠️ Message order and local state must be recovered
Current order book⚠️ Infrequent polling may miss intermediate states✅ Sequential changes can be applied to a local snapshot
Load⚠️ Shorter intervals create more requests and empty responses⚠️ The server maintains many active connections
Client reactions✅ Intervals and jitter can distribute requests over time⚠️ One update may trigger many trading actions at once
Infrastructure failure✅ The next request is independent⚠️ Many clients may reconnect simultaneously

In practice, a hybrid often works best

Polling and streaming do not have to be mutually exclusive.

A practical architecture may use REST for:

  • discovering events and markets;
  • retrieving the initial snapshot;
  • periodic state reconciliation;
  • placing and cancelling bets or orders;
  • recovery after a lost connection.

The stream then delivers:

  • price and size changes;
  • market-status changes;
  • completed trades;
  • updates to the user’s own orders.

This separates reliable state retrieval from fast change delivery. Even with a healthy stream, the client should be able to request a fresh full snapshot if message sequence is broken or the connection is lost.

Conclusion

Polling is easier to control and scale with standard HTTP infrastructure. It supports clear rate limits and, with appropriate jitter, can distribute client requests over time. The price is extra latency and many responses containing no new data.

Streaming delivers changes faster and is better suited to dynamic order books. In return, it requires persistent connections, local state and careful failure recovery. Near-simultaneous delivery may also synchronise trading clients and create a brief order spike.

Pinnacle uses snapshots and delta polling, while Cloudbet provides a REST Feed API and a separate betting interface. Matchbook and BETDAQ also use requests, although both are betting exchanges. Betfair provides a persistent Stream API over an SSL connection, while Kalshi and Polymarket distribute order-book changes through WebSocket.

These choices reflect more than API age or quality. They follow from different product structures, speed requirements and load-management approaches. It is also notable that most complete trading APIs found here belong to exchanges, while a public API from a conventional sportsbook remains the exception.

For the client, the key question is not simply whether WebSocket exists. What matters is how quickly data becomes available, whether missed state can be recovered and whether the displayed price will be revalidated when a bet is submitted.