Questions? Talk to the team on Telegram Contact us
Open account
Open your account40,000+ games and a sportsbook on one API. No setup fee, live in days.
Open account →
Home / Live betting API: running an in-play sportsbook without a trading desk

Live betting API: running an in-play sportsbook without a trading desk

In-play betting is where a sportsbook earns attention and takes most of its risk. This guide explains how a live bet is accepted, why markets suspend, how odds changes are handled on the slip, and which parts of live performance depend on your own platform rather than the sportsbook.

Get API access Compare

Why in-play is a different product

Pre-match betting is a considered purchase. A player studies a fixture, picks a price, places a bet and walks away. In-play betting is closer to a conversation that runs for ninety minutes: prices move with every attack, markets close and reopen, and the player reacts to what they are watching. The same match can produce dozens of decisions from one bettor, which is why live betting tends to carry so much of a sportsbook's activity and so much of its risk.

For an operator, a live betting API is therefore judged on different criteria from a pre-match one. Coverage matters less than behaviour: how quickly a price reflects the match, what happens when a player tries to bet at a price that has just moved, how markets are protected around dangerous moments, and how all of that feels on a mid-range phone on a mobile connection. Nocturn Sport, the sportsbook in our catalogue, offers in-play betting alongside pre-match, launched through the same API and settled through your seamless wallet. This page looks at the live side specifically.

The anatomy of a live bet

Every in-play bet goes through the same short sequence, and each step is a place where a book can be good or bad:

  1. The price is displayed. The player sees odds that reflect the match state at that moment.
  2. The player adds it to the slip and confirms. Between seeing the price and pressing the button, the match may have moved.
  3. The bet is checked. The book confirms the market is still open, the price is still valid or acceptable to the player, and the stake fits the limits.
  4. The stake is taken. Your wallet receives a bet call and debits the balance.
  5. The bet is confirmed or refused. The player sees the result on the slip.

The pause between steps two and five is where live sportsbooks protect themselves. A player watching a faster feed than the book could otherwise bet on a goal that has already happened. Every serious live product therefore applies an acceptance delay in live markets, so that a bet is only confirmed once it is clear that nothing decisive happened in the meantime. The length of that delay is a risk setting that depends on the sport and the market, and it is managed on the product side for Nocturn Sport rather than left for your team to tune.

Suspensions: closing the door at the right moment

A live market cannot stay open through a penalty kick, a break point, a red card review or the final seconds of a basketball possession. At those moments the true price is changing too fast to quote, and any bet accepted would be a bet against information the book does not yet have. A good live book suspends the market, waits until the situation is clear, re-prices and reopens.

Nocturn Sport follows that principle: while the game allows it, prices keep following the score and the run of play; the moment that stops being safe, the market locks rather than accepting a stale price. Players see the market greyed out for a moment instead of a bet confirmed at a number that no longer makes sense. It is mildly frustrating for a bettor in the moment and enormously important for the book's long-term health.

In esports the rhythm is different again. On a CS2, Dota 2 or Valorant series, the natural window is the break after each map: the result is in, teams reset, and fans place the next bet while they wait. Our esports betting API page goes deeper into that title-by-title behaviour.

Odds changes and the bet slip

Price movement while the player is placing a bet is the most common source of frustration in live betting. There are three broad ways a book can handle it: refuse the bet and ask the player to confirm the new price, accept automatically if the new price is better for the player, or accept any change. The first is safe but annoying, the last is risky for the player.

The Nocturn Sport slip lets players choose to accept higher odds automatically when a price improves while they are placing a bet. That keeps the flow quick for the most common situation without silently confirming bets at worse prices than the player saw. The slip also shows the potential return before confirmation and handles both singles and combinations.

Latency: what sits on your side of the line

Operators sometimes assume that live performance depends entirely on the sportsbook provider. A large part does, since prices, suspensions and acceptance logic run on the product side. But the player's experience also passes through systems you control, and those are worth reviewing before you promote live betting.

  • Your wallet response time. Every accepted live bet triggers a bet call to your endpoint. If your wallet takes a long time to answer, the bet takes a long time to confirm, and in a fast market a slower confirmation means more refusals. Keep the balance and debit paths lean: one atomic database operation, no external lookups in the hot path, no synchronous calls to CRM or analytics.
  • Your page around the sportsbook. Heavy scripts, pop-ups and trackers on the page that embeds the sportsbook compete for the phone's processor and network. A clean container page makes the live screen noticeably smoother.
  • Your session handling. If your platform expires sessions aggressively, a player watching a long match may find the slip refusing bets halfway through the second half. Align session lifetimes with the way sports bettors actually behave.
  • Your monitoring. Watch error rates and response times on your callback endpoint during peak fixtures, not just averages across the day. Problems in live betting cluster around kick-off times and big finals.

Cash-out and early settlement from a wallet point of view

Cash-out is a feature players ask about by name, and it is worth understanding what it means for your wallet before you promote it anywhere. Functionally, a cash-out is the sportsbook buying the bet back from the player at a price reflecting the current match state. From your wallet's perspective it is simply a credit that arrives before the event has finished, and the bet is then closed. Nothing new is needed in the integration: the same win callback carries it, and the same idempotency rules apply.

The operational point is reporting. If your finance team assumes that every credit on a sports bet follows a final result, cash-outs will look like anomalies. Make sure your reports treat an early credit as a valid settlement. Check the current feature set on the live demo before marketing cash-out to your players, so that your promotions describe exactly what the product does.

Depth of live markets

A live sportsbook is only as engaging as the markets it keeps open. Football in-play is expected to offer more than the match result: totals, both teams to score and handicaps are the backbone of live football betting. Tennis bettors follow sets and games; basketball bettors follow spreads and totals as the score swings. Nocturn Sport prices each sport with markets that fit its structure rather than a single winner line repeated everywhere, and coverage grows league by league as the pricing for each one is ready.

For your lobby, the practical advice is to give live events prominence that matches player behaviour. A "Live now" block at the top of the sports page, a live counter in your main navigation and push campaigns timed around major fixtures all send players to the part of the book they use most.

Live risk stays managed, regulation stays yours

With Nocturn Sport, live trading decisions such as suspensions, acceptance delays and limits are handled on the product side. Your responsibilities remain regulatory and commercial: some jurisdictions restrict or prohibit in-play betting, some limit specific bet types, and all of them expect you to apply your own responsible-gambling controls. Fast markets encourage fast decisions, so session reminders, deposit limits and reality checks are particularly relevant to live bettors. Those tools live in your platform, which is exactly where the seamless model leaves them.

The rest of the integration, including the callbacks and the testing checklist, is described on our betting API page and our sportsbook API page. Live markets carry no separate price: the whole book is billed at 12% of GGR, without a setup fee, from prepaid credit topped up in amounts of at least 100 USD, as detailed on our pricing page, and credentials for the sandbox are one form away on get an API key.

Frequently asked questions

Does Nocturn Sport offer in-play betting?

Yes. It offers pre-match and in-play betting, launched through the same API as casino games and settled through your seamless wallet.

Why are live bets not confirmed instantly?

Live markets use a short acceptance check so that a bet is confirmed only when nothing decisive happened while it was being placed. It protects the book against bets placed on information the market has not yet priced.

Why do live markets lock during a match?

At dangerous moments such as a penalty or a break point the fair price moves too fast to quote. Nocturn Sport locks the market rather than accepting a stale price, then reopens once it can price safely.

What can I do on my side to improve live performance?

Keep your wallet's balance and debit responses fast, keep the page around the sportsbook light, align session lifetimes with long matches and monitor your callback endpoint during peak fixtures.

How does a cash-out appear in my wallet?

As a credit arriving before the event has finished, through the same win callback. Your reporting should treat it as a valid settlement rather than an anomaly.

Is in-play betting allowed everywhere?

No. Some jurisdictions restrict or ban in-play betting or certain live bet types. Checking and enforcing that is the operator's responsibility under its licence.