Loading...
fetchOdds
Fetches odds for a specific fixture and market.
Syntax
fetchOdds(gameId, marketId)
Parameters
gameId: ID of the fixture.
marketId: ID of the market (e.g., 57 for correct score).
Returns
Array: List of odds for the specified fixture.
Example
const odds = await sdk.fetchOdds(12345, 57); console.log(odds);
Sample Return
[ { "type": "Correct Score", "value": 2.5, "probability": "40%" } ]