How to confirm you are getting correct Markets and Outcomes data from Diffusion - abeedal/Abeedal GitHub Wiki

How to confirm you are getting correct Markets and Outcomes data from Diffusion

Request Diffusion credentials from a team Member or IT support.

Access to Events Service swagger Docs here.

Access to odds path endpoint https://sports.docs.rpb2b.io/event/{gspId}}/odds-paths where gspId = id for event

In Diffusion TOPICS navigate to a Sport → Competition → Event . For this example Its FOOTBALL → ENGLISH PREMIER → ARSENAL v MAN CITY.

  1. These Markets should then be returned in the odds path endpoint mentioned in Prerequisites.

Note:

Some Markets will have Outcomes in Diffusion but will not be returned in the odds path endpoint. When there are no outcomes returned for a Market, the Market is not then used in our own endpoints. Examples here in comments for this ticket.

Also if the Markets do not have Outcomes or supported Bookmakers in Diffusion, they will be ignored. To check for supported bookmakers, check bookmakers Ui List in Bookmakers or Bookmakers-Alias service or GET all bookmakers from the endpoint.

  1. The new odds-paths endpoints will show us markets and outcomes available in diffusion, along with the diffusion paths required to get the odds data. This data will then be consumed by our APIs and Services

  2. Confirming correct Markets data is consumed from Diffusion

Firstly import the Event from GSP using the gspId used in the odds path endpoint. Also you can get this from the GET api/event{{Id}} endpoint. Look for the gspId. Use this Id in the POST importGsp/events{{Id}} endpoint to import the event.

a) In the Events Service navigate to the New Selection/Picks screen and after selecting a sport, competition and event, then Select Markets dropdown, the Markets in the drop down should match the markets in the odds path endpoint response for that event.

b) In the GET api/event{{Id}} endpoint confirm the Markets should match the markets in the odds path endpoint response for that event.

c) In the /api/admin/event-markets/{{market-Id}} endpoint the particular Market, the Outcomes should match the those in the odds path endpoint response for that market. For this example the Market is Clean Sheet.

Note:

IF the Outcome is unlikely to be supported by bookmakers e.g Arsenal v Man City Away win 10-0 and is missing in the odds path endpoint response, then it will be missing in the response as well.

d)

In the api/admin/outcomes/{{outcomeId}} endpoint the particular Market and Outcome, the Odds should match the those in the odds path endpoint response for that Outcome. For this example the Market is Clean Sheet and the Outcome is MAN CITY.

Note:

IF there are other Odds in Diffusion for Bookmakers that we do not recognise, the Odds for those will not be returned in this response.

The things that affect the Diffusion data are:

IF the Market has NO outcomes in Diffusion

IF the Outcome is unlikely to be supported by bookmakers e.g Arsenal v Man City Away win 10-0

IF the Bookmakers are NOT available in Diffusion

IF the Markets are turned off in GSP

IF Aliases are setup for a bookmaker from the Bookmaker Alias service

IF there’s a bookmaker name we don’t recognise we won’t store odds for it. Even if it comes back from Diffusion