NHL lineup optimizer
invoke_nhl_optimizerBuilds DraftKings NHL classic lineups (C, C, W, W, W, D, D, G, UTIL under $50,000, players from at least 3 teams and 2 games) from the BankrollSZN projections. gpp mode stacks a line or power play unit: pass stack like EDM PP1 or TOR F1, or leave it empty and the optimizer tries the top stacks of the slate by 90th percentile and keeps the best. It never rosters a goalie against its own stack, and no lineup has 2 or more skaters against its goalie (one is allowed). contest_type sets which ownership the gpp penalty and the ownership cap use. Supports locks, excludes, several lineups, a salary floor, an ownership cap and a per-team cap. Returns DK ids in slot order. Data refreshes every 30 minutes. DraftKings scoring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lock | No | Player names that must be in every lineup. | |
| mode | No | gpp scores ceiling minus an ownership penalty and stacks. cash scores the projection with no stack. Default gpp. | |
| stack | No | A stack to force, team plus unit, for example EDM PP1, TOR F1 or VGK F2. none turns stacking off. | |
| exclude | No | Player names to leave out. | |
| lineups | No | Number of lineups, 1 to 5. The free plan gets 1. Without stack, each lineup uses a different stack. | |
| slate_id | No | slate_id from nhl_list_slates. Default: the main classic slate. | |
| min_salary | No | Least salary to use. Default 45000. | |
| min_unique | No | With a forced stack or no stacking: players each lineup must differ from every lineup before it. Default 3 for gpp, 1 for cash. | |
| own_lambda | No | Ownership penalty in points per ownership percent for gpp. Default 0.15. This is a starting value, not a preset measured on contests. | |
| contest_type | No | Ownership contest type. 150max (default) is the large field baseline. 20max, 3max and single adjust projected ownership with multipliers measured on DK contests, renormalized so the total stays the same. Early season leans on the NFL contest curve. | |
| max_per_team | No | Most players from one team. Default 5. | |
| max_total_own | No | Cap on the summed ownership of the lineup, in percent. | |
| stacks_to_try | No | gpp without stack: how many of the top stacks to try. Default 6, most 10. |