Betting Entertainment Tools

Common

Types used in adapter.

Type Definitions

Object

# Category

Category of the event.

Properties:
Name Type Attributes Description
id string

The unique identifier assigned to the category.

name string

The name of the category.

cc Object

Country code.

a2 string <required>

Country code in A2 format.

Object

# Event

Event data (match/stage/round...).

Properties:
Name Type Attributes Description
id string <required>

The unique identifier assigned to the event.

srEventId string | number

The unique sr identifier.

externalId string | number

Your unique identifier for the event.

date string

The date of the event.

sport Sport Adapter.Types.CommonAdapterTypes.Sport

The sport of the event.

category Category Adapter.Types.CommonAdapterTypes.Category

The category of the event.

tournament Tournament Adapter.Types.CommonAdapterTypes.Tournament

The tournament of the event.

name string

Event name.

teams Array.<Team> Array.<Adapter.Types.CommonAdapterTypes.Team>

An array containing information about the teams participating in the event.

isLive boolean

Is the event live.

liveCurrentTime string | number

The current time of the event.

result1 Result Adapter.Types.CommonAdapterTypes.Result

The first result of the event.

result2 Result Adapter.Types.CommonAdapterTypes.Result

The second result of the event.

result3 Result Adapter.Types.CommonAdapterTypes.Result

The third result of the event.

numberOfMarkets number

Number of markets available for the event.

Object

# MatchEvent

Match event data.

Properties:
Name Type Attributes Description
type string <required>

The type of event.

metadata object

Additional data.

tag string

The tag of event.

# OnRequestCallback(error, data) → {void}

Arguments provided in bet share request.

Parameters
Name Type Description
error object | undefined

Error object or undefined if there is no error.

data object | undefined

Shape of this object is defined by requestName.

Will not return anything.

void
Object

# Result

Result data.

Properties:
Name Type Attributes Description
result Array.<(number|string)> <required>

The result of the event.

label string
Object

# Sport

Arguments provided in bet share request.

Properties:
Name Type Attributes Description
id string

The unique sr identifier.

name string

The name of the sport.

icon string

Url where icon is located.

Object

# Team

Team data provides information about the teams participating in the event.

Properties:
Name Type Attributes Description
id string

The unique sr identifier assigned to the team.

name string <required>

The name of the team.

Object

# Tournament

Tournament of the event.

Properties:
Name Type Attributes Description
id string

The unique identifier assigned to the tournament.

externalId string

Your unique identifier for the tournament.

name string

The name of the tournament.