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 »

An odds_change message is sent when odds updates for a fixture are published. This message includes the following attributes:

XML Attributes

NAME

DESCRIPTION

event_id

The ID of the event (Match or Outright)

expiry_date

The next expiration date of the event

status

The status of the event

product_id

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

timestamp

The date & time of when the message was created

market id

The ID of the market

market status

The status of the market

market spread

The spread of the market (Only available when the market contains a spread value)

outcome id

The ID of the outcome

outcome status

The status of the outcome

odd

The latest odds for the outcome

Status IDs

ID

DESCRIPTION

0

This indicates that the status is Inactive

1

This indicates that the status is Active

Each event_id is sent in a seperate message therefore each odds_change message can only containt 1 event ID.

To resend the latest odds in the queue you can use the following POST API.

POST - Odds

XML Examples

Match Odds

<?xml version='1.0' encoding='utf-8'?>
<odds_change product_id="5" event_id="match:131718" status="1" expiry_date="2023-01-05T11:00:00.000Z" timestamp="1672744545">
	<odds>
		<market id="3" status="1" spread="18.5">
			<outcome id="6" status="1" odd="2"/>
			<outcome id="7" status="1" odd="1.7"/>
		</market>
	</odds>
</odds_change>

Match Deactivation

<?xml version='1.0' encoding='utf-8'?>
<odds_change product_id="5" event_id="match:131718" status="0" expiry_date="2023-01-05T11:00:00.000Z" timestamp="1672744545"/>

Outright Odds

<?xml version='1.0' encoding='utf-8'?>
<odds_change product_id="5" event_id="outright:131728" status="1" expiry_date="2023-01-05T11:00:00.000Z" timestamp="1672745540">
	<odds>
		<market id="101" status="1">
			<outcome id="40000000" status="1" odd="1.8"/>
			<outcome id="40000001" status="1" odd="3"/>
			<outcome id="40000004" status="0"/>
			<outcome id="40000002" status="1" odd="40"/>
		</market>
	</odds>
</odds_change>

Outright Deactivation

<?xml version='1.0' encoding='utf-8'?>
<odds_change product_id="5" event_id="outright:131728" status="0" expiry_date="2023-01-05T11:00:00.000Z" timestamp="1672745540"/>

  • No labels