Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you receive a new event inside fixture_change message you should use that data to request the Fixture using the following GET API data:

Endpoint

Method

Input Body

Sample Request Body

/api/v1/public/fixtures/{productid}/{eventid}

GET

  • Event ID

  • Product ID

{
"eventIds": [ 134663, 131719],
"productId": 5
}

XML Attributes

NAME

DESCRIPTION

product_id

The ID of the product (In this case ID 5 for Motorsports)

timestamp

The date & time of when the message was created

event_id

The ID of the event (Match or Outright)

expiry_date

The next expiration date of the event

scheduled_date

The date of when the event will take place

sport id

The ID of the sport

sport name

The name of the sport

category id

The ID of the category

category name

The name of the category

tournament id

The ID of the tournament

tournament name

The name of the tournament

market id

The ID of the market

market name

The name of the market

outcome id

The ID of the outcome (only for outright)

outcome name

The name of the outcome (only for outright)

competitor id

The ID of the competitor (only for match)

competitor name

The name of the competitor (only for match)

type

The position of the competitor (this should be used to determine home and away for h2h markets)

XML Examples

One Competitor Match Fixture

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<fixtures_fixture product_id="53" timestamp="1666864943053">
	<fixture event_id="match:131718" expiry_date="2023-01-05T11:00:00.000Z150926" scheduled_date="2023-0102-08T1115T19:0030:00.000Z">
		<sport id="1004010100" name="Formula 1Soccer"/>
		<category id="201" name="BrazilEngland"/>
		<tournament id="181" name="H2HPremier RaceLeague"/>
		<competitors>
		<market	<competitor id="242" name="Head to Head"Arsenal FC" type="1"/>
			<reference_ids>
				<reference_id name="betradar" id="25039095"/>
			<competitors></reference_ids>
			<competitor id="17" name="Manchester City" type="2"/>
			<reference_ids>
				<reference_id name="betradar" id="40000000" 25039093"/>
			</reference_ids>
		</competitors>
		<reference_ids>
			<referece_id name="Verstappen, Maxbetradar" id="1" type="Sport"/>
			<referece_id name="betradar" id="1" type="Category"/>
			<competitor<referece_id name="betradar" id="40000001"1" type="Tournament"/>
			<referece_id name="Leclerc, Charlesbetradar" id="37776205" type="2Match"/>
		</competitors>reference_ids>
	</fixture>
</fixtures_fixture>

...