---
title: "Flash Bet"
canonical_url: "https://apidocs.sportradar.com/resources/virtual-stadium/docs/web/adapter/custom/features/flashBet"
markdown_url: "https://apidocs.sportradar.com/resources/virtual-stadium/docs/web/adapter/custom/features/flashBet.md"
last_updated: "2026-09-16T12:32:15Z"
---

# Flash Bet

Flash Bet is an interactive module designed to provide quick and seamless betting options to your users. It is fully integrated with live match data, dynamically reacting to events occurring during the match.

***

## Prerequisites

Flash Bet is an **optional** feature that can be enabled within the Virtual Stadium configuration.

1. **Enable Flash Bet**
   Make sure that you have Flash Bet [enabled](https://apidocs.sportradar.com/resources/virtual-stadium/docs/web/widgets/virtualStadium/features/flashBet.md#1-enable-flash-bet)

2. **Moderation Setup**\
   Add the desired Sportradar Entity ID (`srEntityId`) to the [channel](https://apidocs.sportradar.com/resources/virtual-stadium/docs/moderationUi/uiOverview/moderation/channels.md#virtual-stadium-integration---sportradar-entity-id-management).

![Flash Bet Demo](https://apidocs.sportradar.com/resources/virtual-stadium/static/static/gif/flashbet-demo.gif)

***

## Overview

To integrate Flash Bet with Virtual Stadium:

1. **Step 1**

   Register your adapter with the [global SIR function](https://apidocs.sportradar.com/resources/widgets/docs/tutorials/SIR.md), ensuring only one adapter is registered per page load.

2. **Step 2**

   Implement the [`matchEventSuggestedSelection` endpoint](https://apidocs.sportradar.com/resources/widgets/docs/adapter/Types.md#matcheventsuggestedselection-function) to map live chat incidents (like goals or cards) to available betting market parameters.

3. **Step 3**

   Implement the [`market` endpoint](https://apidocs.sportradar.com/resources/widgets/docs/adapter/Types.md#market-function) or [`eventMarkets` endpoint](https://apidocs.sportradar.com/resources/widgets/docs/adapter/Types.md#eventmarkets-function) to retrieve live odds and outcome statuses.

4. **Step 4**

   Return the formatted selections and odds through the callback, updating statuses dynamically (e.g., during suspensions or bet stops).

Virtual Stadium widgets will call the adapter endpoints of this flow sequentially when a match event occurs in the chat feed to display flash bets.

## Implementation

**Backend**: Implement the adapter endpoints

> **Tip**
>
> ### Selecting the Market-Fetch Endpoint
>
> The `market` and `eventMarkets` endpoints are **mutually exclusive** — you only need to implement **one** to supply market data for the UI based on your API structure:
>
> - **Implement `market` (+ `availableMarketsForEvent`)**: Choose this if your system's API serves market data, active prices, and status updates by specific market/selection IDs (and specifiers).
> - **Implement `eventMarkets`**: Choose this if your system's API only serves active market data by event ID, returning all markets for the entire match/fixture in a single payload.

For a comprehensive implementation example with step-by-step guidance on suggestion and market fetch endpoints, see the [Adapter Flash Bet Endpoint Example](https://apidocs.sportradar.com/resources/widgets/docs/tutorials/examples/adapter-flash-bet-endpoint-example.md).

**Frontend**: Enable Flash Bet Features

To enable flash bet widgets and configure custom odds action callbacks:

- Configure `enableFlashBet: true` in the [Virtual Stadium configuration](https://apidocs.sportradar.com/resources/virtual-stadium/docs/web/widgets/virtualStadium/features/flashBet.md#1-enable-flash-bet).
- Process odds selection callbacks using `FlashBetOutcome` and `addSelectionsToBetSlip` in your `onAction` handler — see [Handling Flash Bet Actions](https://apidocs.sportradar.com/resources/virtual-stadium/docs/web/widgets/virtualStadium/features/flashBet.md#4-handling-flash-bet-actions).

**Optional — external selection IDs:** If your bet slip expects bookmaker ids, set `forceExternalSelections: true` on the Virtual Stadium widget and implement the adapter **`selectionUfToExternal`** endpoint (or use `adapterDataSource: 'f3'`). Outcome clicks use external ids when mapping is available. Flash Bet also uses channel `relatedCompetitions[].clientId` as `externalEvent.externalId`. See [External selection IDs](https://apidocs.sportradar.com/resources/virtual-stadium/docs/web/widgets/virtualStadium/features/flashBet.md#external-selection-mapping-forceexternalselections).
