Fetch Home, Draw & Away Odds

fetch1x2Odds

Fetches 1x2 (Home/Draw/Away) odds for a fixture.

Syntax

fetch1x2Odds(gameId)

Parameters

  • gameId: ID of the fixture.

Returns

  • Object: Contains home, draw, and away odds with probabilities.

Example

const odds = await sdk.fetch1x2Odds(12345);
console.log(odds);

Sample Return

{
  "home": 1.5,
  "draw": 3.2,
  "away": 4.0,
  "homeProb": "50%",
  "drawProb": "30%",
  "awayProb": "20%"
}

Last updated