Scorefam’s Whitepaper
  • 👋About Scorefam
  • Scorefam Ecosystem
    • PredictPro
    • X-Predict
    • Lossless Sportsbook
  • FEATURE ADDONS
    • Genius AI Agent (v1.0.0)
  • Rewards
    • ⏺️Scorefam Points
    • 🔥Daily Streak Bonus
    • 🪙Preliminary SFT ($PSFT)
  • AFFILIATE PROGRAM
    • 🧰How it works
    • Become an Icon
  • Token (SFT)
    • 📚Token Utility
    • ⚖️Tokenomics
  • 🔗Website
  • ✖️Twitter
  • 🇸🇴Telegram
  • 🛖GitHub
  • Appendix
    • Developer Integration (PredictPro SDK)
      • 🛫Welcome
      • 🛫Initialization
      • Wallet Connection
      • Fetching Fixtures and Odds
        • Fetch Filtered Fixtures
        • Fetch Odds
        • Fetch Correct Scores
        • Fetch Home, Draw & Away Odds
      • Tournaments
        • Register
        • Current Tournament ID
        • Play Game
        • Get Tournament
      • Rewards
      • Leaderboard
        • Get Leaderboard
        • Get Formatted Leaderboard
      • Operator Revenue Share
      • Example Usage
Powered by GitBook
On this page
Export as PDF
  1. Appendix
  2. Developer Integration (PredictPro SDK)
  3. Fetching Fixtures and Odds

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%"
}

PreviousFetch Correct ScoresNextTournaments

Last updated 3 months ago