Find odds divergence between sportsbook consensus and Polymarket sports markets, then trade the gap.
This is a template. The default signal compares sportsbook consensus odds against Polymarket prices and trades when divergence exceeds a threshold. Remix it — adjust the sports, threshold, sizing, or add your own filters (e.g., only trade NBA, require minimum volume, weight by recency).
Scans active Polymarket sports markets and compares prices against the sportsbook consensus from The Odds API. When a market is mispriced relative to sharp bookmaker lines, it buys the underpriced side.
The edge: Sportsbook lines are set by professional oddsmakers with billions in handle — they're extremely well-calibrated. Polymarket sports markets are thinner and less efficient. When they disagree, the books are usually right.
Two parallel scanning modes run each cycle:
Game-level (h2h): Matches individual Polymarket game markets against sportsbook moneylines.
GET /api/sdk/markets?q=<sport>Futures (outrights): Matches Polymarket championship/winner markets against sportsbook futures odds.
_winner sport keys, e.g., basketball_nba_championship_winner)| Variable | Required | Description |
|---|---|---|
SIMMER_API_KEY | Yes | Your Simmer API key |
THE_ODDS_API_KEY | Yes | Free key from the-odds-api.com (500 req/month free) |
MIN_DIVERGENCE | No | Minimum probability gap to trade (default: 0.08 = 8%) |
TRADE_AMOUNT | No | Amount per trade in venue currency (default: 10.0) |
SPORTS | No | Comma-separated Odds API sport keys (default: NBA, NFL, NHL, MLB, MMA, EPL, MLS) |
FUTURES | No | Comma-separated futures sport keys (default: NBA, NFL, NHL, MLB championship winners) |
LIVE | No | Set to true for real trades. Default is dry-run. |
export THE_ODDS_API_KEY=your_key_here# Dry run (default) — logs what it would trade
python sports_edge.py
# Live trading
LIVE=true python sports_edge.py
[Sports Edge] Scanning 7 sports + 4 futures... (dry_run=True, min_divergence=8%)
[Sports Edge] NBA: Found 6 games with odds
[Sports Edge] Matched: "Will the Celtics win vs Pacers?" → Boston Celtics vs Indiana Pacers
[Sports Edge] Polymarket YES: 0.58 | Books: 0.69 | Divergence: +0.11
[Sports Edge] DRY RUN: Would buy YES at 0.58 (edge 11%) — 10.0
[Sports Edge] Futures NBA championship: Found 30 teams in outrights
[Sports Edge] Matched: "Will the Celtics win the 2026 NBA Champion" → Boston Celtics
[Sports Edge] Polymarket YES: 0.12 | Books: 0.22 | Divergence: +0.10
[Sports Edge] DRY RUN: Would buy YES at 0.12 (edge 10%) — 10.0
[Sports Edge] Done. 2 opportunities found (dry run).