Skip to content

Sportsbook Technology Practical engineering guide

Live In-Play Betting Architecture: Suspension, Risk and Recovery

Design in-play suspension and reopening controls around authoritative market state, recovery generations, consistent exposure and uncertain order outcomes.

Explore the flow Worked examples · Failure handling · Primary sources
Explore this guide

Live betting combines two changing states: what is happening in the event and what the platform has already accepted financially.

A dependable in-play architecture must connect those states without assuming that a screen update, account balance and provider message arrive together.

This guide focuses on the bet decision and its consequences. Examples are illustrative designs, not measured provider performance or universal operating rules.

Live bet lifecycle

The live-bet decision pathIllustrative design; provider contracts and protocols determine the implementation.
  1. 01Observe the event

    Receive source-specific incidents and market changes

  2. 02Update market state

    Apply status, prices and feed-health controls

  3. 03Receive bet intent

    Identify the request and capture explicit price constraints

  4. 04Validate + reserve

    Enforce permissions, limits and consistent exposure

  5. 05Accept or submit

    Apply authoritative rules at the decision point

  6. 06Reconcile + settle

    Track results, release holds and record corrections

The ingestion pipeline supplies a verified market view. The acceptance path combines that view with account permissions, exposure and explicit order instructions.

Choose the authoritative decision point

  • Operator sportsbook: The operator's acceptance system enforces its price and risk policies.
  • External exchange integration: The exchange processes the submitted order under its own market and matching rules.
  • Own exchange: The operator must implement the matching and liability controls itself.

Do not treat these models as interchangeable. A local check can restrict a request without proving what an external exchange has already done.

Separate event data from tradable market state

An incident feed may report a goal or wicket. A market feed reports whether a market is active, its prices and, for exchanges, available offers.

Stats Perform RunningBall supplies venue-sourced live data for in-play betting. That event information serves a different role from an exchange's account-order record. Source: RunningBall.

Preserve source identity and map incidents to affected markets. A goal may affect multiple related markets; the scope follows the product's rules and provider contract.

Freshness is more than time since a price changed

An unchanged price may be legitimate. Monitor whether the required feed is operating and whether the application has applied a continuous, usable state.

CheckQuestion answered
Producer healthIs the required source operating and subscribed?
Publication ageIs newly delivered information already delayed?
Processing delayIs the application falling behind the feed?
ContinuityIs the reconstructed market complete?
Market statusDoes the source currently permit trading?

Sportradar alive messages identify producer activity and subscription status. Its guidance considers missing or delayed messages and recovery completion. Source: UOF health handling.

Define acceptable conditions per product and provider cadence. A universal rule such as “no odds movement for five seconds means stale” confuses market inactivity with a data failure.

Suspension belongs in the acceptance path

A suspension must prevent the relevant new acceptance or matching decisions at the authoritative boundary. The interface should explain that state promptly, but it can receive the update later.

Sportradar bet_stop instructs clients to suspend affected active markets; prices can remain displayed while tickets are not accepted. Source: bet-stop behavior.

Close the check-to-use gap

Checking a market, waiting and then submitting a bet creates a race. Enforce the applicable market constraints when the financial decision occurs, using supported version checks or a consistent internal state transition.

Betfair's optional marketVersion constraint protects against documented material changes. Ordinary price fluctuations are not all treated as material changes. Source: order version rules.

Define the suspension state contract

Distinguish provider-reported suspension, application health restriction and recovery-in-progress. All can prevent an affected acceptance decision, but they have different causes and resume evidence. Store the source, market scope, decision version and reason rather than replacing them with one unexplained Boolean.

ConditionDecision evidenceResume requirement
Provider says suspendedCurrent authoritative market statusValid supported open-state update and remaining controls
Continuity is unresolvedGap/recovery evidenceSupported state reconstruction and verified continuity
Exposure view is unsafeAccount/risk processing evidenceRequired financial state and pending commitments reconciled
An old worker completesPrevious generation/versionCannot overwrite the current restriction

An open-market update alone must not erase a separate account or recovery restriction. Keep the controls composable and apply them at the authoritative decision boundary.

Exercise the reopen race explicitly

Create a hypothetical open market, begin a bet decision, apply suspension, then deliver a late open-state task from the previous generation. The expected result is no unsupported acceptance and no stale task restoring readiness. Next restore valid market continuity while leaving a financial outcome unresolved: the relevant financial restriction should remain.

The exact enforcement boundary depends on the local acceptance model or external exchange contract. These are proposed tests, not a report of an executed provider scenario. Preserve the decision version and reason for each attempted action so the team can explain which restriction applied. The API testing guide explains the broader harness and failure-report method.

Reserve exposure before concurrent requests can reuse it

Check funds and create the relevant reservation consistently with the order intent. Two requests must not both spend the same available amount after independent balance reads.

Worked balance example

Assume a player has £120 available and submits two £80 requests concurrently. Each request requires £80 of additional reserved funds under this example's rules.

StepUnsafe separate checksConsistent reservation
Request A reads £120PassesReserves £80
Request B arrivesMay also pass the old £120 checkSees £40 available; cannot reserve £80
Result£160 could be approved against £120£80 reserved, £40 available

The example excludes fees, bonuses and portfolio netting. Exchange lay orders require liability-based reservations under the exchange's rules, rather than always reserving the displayed backer's stake.

Bet delays and price instructions

A deliberate in-play bet delay differs from network latency. Betfair exposes its applicable delay through betDelay in documented market information. Source: Betfair delay explanation.

Treat any waiting request as a defined state with reserved funds, a timeout policy and checks at the decision boundary.

  • Sportsbook repricing: Follow the customer's permitted price-change policy and the operator's published rules.
  • Exchange limit order: Respect its price constraint; acceptance can leave some or all of it unmatched.
  • Rejected or lapsed request: Release only the reservation that no longer supports a possible obligation.

Accepted, matched and settled describe different stages. An HTTP success response alone does not establish the matched stake.

Worked incident: a goal while a bet is pending

This is a hypothetical sequence. The relative times explain ordering, not a latency target.

  1. T+0 — Intent recorded. The service receives a £100 request, stores its reference and reserves the required funds.
  2. T+1 — Suspension becomes authoritative. A goal-related update changes the affected market to suspended.
  3. T+2 — The browser still shows the earlier price. The delayed interface does not authorize a new financial decision.
  4. T+3 — The pending request reaches its decision point. The authoritative service applies the current status and applicable version or price rules.
  5. T+4 — Outcome confirmed or reconciled. A rejected request releases its hold. An unknown external submission retains the relevant allowance until resolved.
  6. T+5 — Reopening validated. The platform confirms usable market and account state before enabling affected actions.

What the test must establish

  • A delayed browser cannot bypass the market gate.
  • The reservation survives an uncertain external response.
  • A request reference cannot produce two obligations on retry.
  • Reopening the display does not erase a previously matched position.

Deliver live updates without making the browser authoritative

Choose polling, WebSockets or SSE based on provider capabilities, market count, batching, quotas and freshness requirements.

WebSockets and SSE can distribute updates from your application to browsers. They do not establish which protocol the upstream provider supports.

Send a starting snapshot and continuity information. A reconnecting client should reload state when it cannot prove that its updates are complete.

Reconcile orders and settlement separately

An external submission timeout leaves its outcome unknown. Query authoritative order records using supported references before submitting a replacement.

Disconnecting the app does not cancel resting exchange orders. Cancellation also needs a verified result, including the possibility that part of an order matched first.

Settlement and later corrections

Define which source is authoritative for each market result. Record the settlement version and use compensating entries for corrections, preserving the original decision and audit trail.

A corrected score does not automatically determine how a bet settles. Market rules, void conditions and the documented settlement source govern the financial result.

Launch checks and operating metrics

Test the decision path under feed delay, suspension, duplicate requests, concurrent reservations, partial matches and uncertain cancellations.

MetricOperational use
Oldest pending requestFind unresolved obligations
Reserved versus matched exposureDetect missing or excessive holds
Market-gate decision latencyObserve the authoritative path
Feed and processing ageSeparate upstream delay from local backlog
Reconciliation differencesIdentify account/order disagreement

Use the odds-feed ingestion guide for mapping and cache reconstruction, and the risk-management guide for outcome exposure examples.

Frequently asked questions

Select a question to open its answer. Opening another closes the previous one.

Does every price need to change regularly to be considered live?

No. A quiet market can be valid. Combine required producer health, publication timing, continuity and processing status rather than measuring price movement alone.

Must suspension reach the browser and bet service simultaneously?

No distributed interface can assume simultaneous delivery. Enforce the restriction in the authoritative acceptance or matching path and update the browser promptly with a clear status.

Is a bet delay the same as slow network delivery?

No. A bet delay is an intentional part of the applicable processing rules. Network and processing latency add separate delays that should be measured independently.

Can an accepted exchange order remain unmatched?

Yes, depending on its instructions and the exchange's rules. Track accepted, matched and unmatched amounts separately rather than treating acceptance as full execution.

How should two simultaneous bets use the same balance?

Use consistent reservations and concurrency controls so both cannot rely on the same available funds. Exact mechanisms depend on the account and risk architecture.

What happens if the order response is lost?

Keep the request unresolved and retain the relevant exposure allowance. Reconcile with authoritative records before retrying the financial action.

Can a second data provider resolve an unknown exchange order?

No. A secondary feed can supply event or market information, but the original exchange's account records establish the order's outcome.

Should polling always be replaced with streaming?

No. Compare update cadence, batching, quotas, market count and freshness needs. Streaming can help continuous delivery but still requires continuity and recovery controls.

Further reading

Primary sources

  1. Source: UOF health handling
  2. Source: bet-stop behavior
  3. Source: order version rules
  4. Source: Betfair delay explanation
  5. Source: RunningBall