Fetch all MLB teams for the configured season. Upserts name, abbreviation, city, stadium. One API call.
Sync Today's Games
Fetch today's MLB schedule (2026-06-24). Links home/away team IDs, stores game time, venue, and live scores if available.
Sync Results
Re-sync today's game scores and statuses from API-Sports, then auto-settle any pending predictions. Run after games finish to update final scores and trigger WIN/LOSS settlement.
Sync Standings
Fetch current MLB standings. Upserts wins, losses, PCT, GB, division rank. Also updates team league/division.
Sync Odds
Fetch moneyline, run line, and totals for today's games. Stored in market_snapshots for historical tracking.
⚠ Odds data availability depends on your API-Sports subscription plan.
Sync Bookmakers
Fetch the full API-Sports bookmaker catalog from /odds/bookmakers. Stores all available bookmaker IDs and names. Used to discover which bookmakers cover MLB markets.
Run Data Health Checks
Run all 7 data quality checks: teams freshness, games freshness, standings coverage, provider availability, sync success rate, raw vault growth, game results coverage.
Rate limit: Each sync uses 1 API call against your daily quota. The provider check uses 1 call (/status). Check your remaining quota on the Provider page before running bulk syncs. Odds data may not be available on all subscription plans.