Generate EV-optimized NBA Classic GPP lineups
The `/sim/lineups` engine handles NBA Classic slates natively using possession-level minute/usage correlations, producing EV-ranked tournament lineups with no sport-specific code changes required.
- What it is
- Runs the NBA SIM lineup generator on NBA Classic slate `1243812` (`contest_id: 108465399`) with 200 draws, `diversity_weight: 0.25`, and 60% max exposure.
- When to use it
- Use this to construct diversified NBA tournament lineups capturing teammate usage correlations, blowout risk, and market ownership leverage.
- What you get back
- NBA contest portfolio EV, ROI%, diversity score, and top 5 ranked lineups.
1.Run NBA contest SIM lineup build
Call `simLineups` with `wait: true` on NBA Classic slate `1243812` and contest `108465399`.
POST request (requires your API key in STAT_API_KEY). Run the SDK program on the right or the curl snippet below.
{
"contest_id": 108465399,
"lineup_count": 5,
"sim_game_runs": 200,
"sim_seed": 42,
"diversity_weight": 0.25,
"max_player_exposure_pct": 60,
"response_format": "json"
}const nbaSimBuild = await api.dfs.slates.simLineups(1243812, { contest_id: 108465399, lineup_count: 5, sim_game_runs: 200, sim_seed: 42, diversity_weight: 0.25, max_player_exposure_pct: 60 }, { wait: true })The complete program
Every step as one runnable file. It reads STAT_API_KEY from the environment, and is the same file that ships in the cookbook project for each SDK.
import { StatApi } from '@stat-api/client'
const api = new StatApi() // reads STAT_API_KEY from the environment
// Run NBA contest SIM lineup build
const nbaSimBuild = await api.dfs.slates.simLineups(1243812, { contest_id: 108465399, lineup_count: 5, sim_game_runs: 200, sim_seed: 42, diversity_weight: 0.25, max_player_exposure_pct: 60 }, { wait: true })
// Print NBA SIM portfolio and lineups
console.log(`Slate ${nbaSimBuild.slate.id} | contest ${nbaSimBuild.contest.contest_id} | lineups=${nbaSimBuild.portfolio.lineup_count} ev=${nbaSimBuild.portfolio.payout.ev_dollars.toFixed(2)} roi_pct=${nbaSimBuild.portfolio.payout.roi_pct.toFixed(2)} diversity=${nbaSimBuild.portfolio.diversity.composite_diversity_score.toFixed(2)}`)
for (const l of nbaSimBuild.lineups.slice(0, 5)) {
console.log(`SimLineup #${l.rank} | salary=${l.salary} proj=${l.projected_points.toFixed(2)} ev=${l.payout.ev_dollars.toFixed(2)} roi_pct=${l.payout.roi_pct.toFixed(2)} win_pct=${l.payout.win_pct.toFixed(2)}`)
}Verified output across all 4 SDKs
TypeScript, Python, Go, and Java execute cleanly and print byte-identical output:
Slate 1243812 | contest 108465399 | lineups=5 ev=8678.07 roi_pct=212.72 diversity=0.65
SimLineup #1 | salary=49800 proj=276.44 ev=2263.85 roi_pct=307.90 win_pct=1.50
SimLineup #2 | salary=50000 proj=273.11 ev=1204.78 roi_pct=117.08 win_pct=0.00
SimLineup #3 | salary=50000 proj=265.53 ev=3833.00 roi_pct=590.63 win_pct=3.20
SimLineup #4 | salary=50000 proj=271.05 ev=1202.50 roi_pct=116.67 win_pct=1.00
SimLineup #5 | salary=50000 proj=245.01 ev=253.50 roi_pct=-54.32 win_pct=0.00