Loading...
fetch1x2Odds
Fetches 1x2 (Home/Draw/Away) odds for a fixture.
Syntax
Parameters
gameId: ID of the fixture.
Returns
Object: Contains home, draw, and away odds with probabilities.
Example
Sample Return
fetch1x2Odds(gameId)
const odds = await sdk.fetch1x2Odds(12345); console.log(odds);
{ "home": 1.5, "draw": 3.2, "away": 4.0, "homeProb": "50%", "drawProb": "30%", "awayProb": "20%" }