Odds API WebSocket Alternative for Live Odds Streaming
5 min read
Test the live odds API on a sandbox key, no sales call.
Get sandbox key
An odds API WebSocket alternative is a feed that pushes live prices to your client over server-sent events instead. For a betting board the difference is small: the server sends a full market set once a second, your browser or backend reads it with a few lines of code, and the connection reopens by itself when it drops. RealTimeBets streams this way from Starter at $499 a month, or $249 a month billed yearly. It does not offer WebSocket.
This article is for the developer or product lead who has been told "we need WebSocket odds" and wants to know whether that is a real requirement. It covers what you give up, what you keep, the connection limits per plan, how reconnects work and what a live board costs in requests. If you want to read the endpoints first, the live odds API page lists them.
Do you need a WebSocket odds API?
Usually no. WebSocket is two-way, and a price display only needs one direction: prices travel from the server to the client. Placing a bet, recording it and cashing out are ordinary REST calls. Server-sent events (SSE) are one-way push over plain HTTP, supported natively in browsers through EventSource and easy to read in any server language.
You do need WebSocket if your client library only speaks WebSocket, if you must send messages to the feed over the same socket, or if a vendor contract names it. Check that before you pick a vendor. Everything else is a delivery detail.
How the stream behaves
You open GET /api/v1/stream with your key. The server sends an event named markets once a second containing the event state and its markets with probabilities and prices. You can ask for micro-markets, match markets or both, and a connection runs for up to 60 seconds before the server sends an end event carrying reconnect: true. Your client opens the next connection straight away.
That short life is deliberate. It means a dead client does not hold a connection slot for long, and it gives you a clean point to refresh your key or your filters. In a browser, EventSource reconnects on its own. In a backend job, a loop that reopens on end is five lines.
| Question | Server-sent events on RealTimeBets |
|---|---|
| Direction | Server to client. Bets and cash outs use REST. |
| Update rhythm | One push per second with the full market set. |
| Connection life | Up to 60 seconds, then an end event asks you to reconnect. |
| Connection limit | 2 on Starter, 10 on Growth, 50 on Enterprise. Over the limit returns HTTP 429 stream_limit. |
| Micro-markets on the stream | Growth and Enterprise. Starter streams match markets. |
| Sandbox | 1 sport, 60 second delay, 1,000 requests, 7 days. |
What a connection limit means for your design
A connection is a slot, not a user. Put one stream on your server and fan the data out to your own users through your own cache or socket layer. Then 2 connections on Starter are enough for a production board plus a staging copy, and you never hand your API key to a browser. Opening one stream per visitor would burn 2 slots with the third visitor.
If you want more than one sport or a separate micro-market view, Growth gives 10. The plan table is on the pricing page.
Streaming versus polling, with request math
Polling a REST endpoint every second for 12 live events over a 3 hour evening is 12 x 3 x 3,600 = 129,600 requests. Starter includes 500,000 requests, so a single evening takes about a quarter and a weekend of Saturday and Sunday takes about half. A stream does not count each pushed update as a request, which is why the board above should read the stream and keep REST for the calls that matter: recording a bet, checking risk, asking for a cash out quote.
The live odds feed provider checklist has the polling table for other event counts, and the live odds API comparison guide explains push versus polling in more depth. To size a whole Saturday with board polls, streams and bet calls, use the real time betting odds feed sizing worked example.
What other vendors publish about WebSocket
As read on each vendor's own page on November 23, 2026: odds-api.io lists WebSocket as an add-on priced at 2 times the plan, for example Solo plus WebSocket at £98 a month. SportsGameOdds lists real-time streams (WebSockets) on its All-Star plan, which shows "Let's talk" instead of a price. The Odds API lists no streaming access on its pricing page. The full table is on the live odds API pricing comparison. These vendors mostly aggregate other bookmakers' lines. RealTimeBets prices its own markets, so the two are different products, covered in The Odds API alternative.
What you also get with the stream
The stream is the delivery layer. Around it sit prices with a fixed margin of about 6 percent and a probability on every selection, so you can apply your own margin on your side. Growth adds automatic suspension on incidents and the risk check. Every plan can record a bet and receive a signed bet.settled webhook using HMAC SHA-256, and your backend moves the money. Enterprise adds cash out quotes and execution. Prices recompute every second and the stream pushes once a second. That is the only timing statement we make, so measure it in the sandbox against your own clock.
A five step test before you decide
- Create an account and take the sandbox key.
- Open the stream from your server and log the arrival time of each push for ten minutes.
- Kill the connection and confirm your client reopens it within a second or two.
- Record a test bet over REST and confirm the signed webhook reaches your backend.
- Open a third stream on Starter terms and confirm your code handles the 429 answer.
If all five pass, the missing WebSocket does not cost you anything. If your client truly needs WebSocket, you have learned that in an hour, not after a contract. Licensed operators should also read the rules for their state; the AGA state gaming map links each regulator.
Start with a sandbox key
Create an account, take the sandbox key and open the stream from your own server. When the numbers fit, choose Starter at $499 a month or Growth at $1,999 on the pricing page. Choosing a plan reserves it at the listed price and nothing is charged yet. The sportsbook API page shows the full call order from price to settlement.