Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

<?xml version="1.0" encoding="UTF-8"?>
<fixtures_fixture product_id="5" timestamp="1666864943053">
	<fixture event_id="match:131719" expiry_date="2023-01-05T11:00:00.000Z" scheduled_date="2023-01-08T11:00:00.000Z">
		<sport id="10040" name="Formula 1"/>
		<category id="20" name="Brazil"/>
		<tournament id="19" name="Classified/Not Classified"/>
		<market id="2" name="Classified/Not Classified"/>
		<competitors>
			<competitor id="40000000" name="Verstappen, Max"/>
		</competitors>
	</fixture>
</fixtures_fixture>

Two Competitor Match Fixture

<?xml version="1.0" encoding="UTF-8"?>
<fixtures_fixture product_id="5" timestamp="1666864943053">
	<fixture event_id="match:131718" expiry_date="2023-01-05T11:00:00.000Z" scheduled_date="2023-01-08T11:00:00.000Z">
		<sport id="10040" name="Formula 1"/>
		<category id="20" name="Brazil"/>
		<tournament id="18" name="H2H Race"/>
		<market id="2" name="Head to Head"/>
		<competitors>
			<competitor id="40000000" name="Verstappen, Max" type="1"/>
			<competitor id="40000001" name="Leclerc, Charles" type="2"/>
		</competitors>
	</fixture>
</fixtures_fixture>

Outright Fixture

<?xml version="1.0" encoding="UTF-8"?>
<fixtures_fixture product_id="5" timestamp="1667218180386">
	<fixture event_id="outright:131728" name="Group 1 Winner" expiry_date="2023-01-05T11:00:00.000Z" scheduled_date="2023-01-08T11:00:00.000Z">
		<sport id="10040" name="Formula 1"/>
		<category id="20" name="Brazil"/>
		<tournament id="17" name="Group 1 Winner"/>
		<market id="101" name="Short Term Winner">
		    <outcomes>
				<outcome id="40000000" name="Verstappen, Max"/>
				<outcome id="40000001" name="Leclerc, Charles"/>
				<outcome id="40000002" name="Perez, Sergio"/>
				<outcome id="40000004" name="Sainz Jr, Carlos"/>
			</outcomes>
		</market>
	</fixture>
</fixtures_fixture>

  • No labels