PredictX logoPredictX Docs

Live Odds Demo Trading

Environment variables for live odds-backed demo-currency market rows in PredictX.

Live Odds Demo Trading

PredictX can show live odds-backed market rows while keeping all trading paper-only.

Required environment variable

Set one of these server-side variables in Vercel:

  • THE_ODDS_API_KEY
  • ODDS_API_KEY
  • SPORTS_ODDS_API_KEY

The key must not be exposed as a NEXT_PUBLIC_ variable.

Optional variables

  • LIVE_ODDS_SPORT_KEYS
    • Comma-separated sport keys.
    • Example: soccer_epl,basketball_nba,americanfootball_nfl
  • LIVE_ODDS_REGIONS
    • Default: uk,us
  • LIVE_ODDS_MARKETS
    • Default: h2h

Behaviour

When a live odds key is present, PredictX fetches odds server-side and converts decimal odds into demo YES/NO prices.

The UI may say live odds, but balances, orders, tickets, fills, portfolio history, and settlement remain demo currency only.

If the key is missing, invalid, rate-limited, or the API is unavailable, PredictX falls back to the existing Polymarket/read-only and build-safe demo data.