NBA DraftKings lineup optimizer
invoke_nba_optimizerBuilds DraftKings NBA classic lineups from the BankrollSZN projections, with locks (any order, up to all 8 players), excludes, unique lineups, a salary floor, an ownership cap and a per-team cap. contest_type (cash, single, 3max, 20max, 150max) applies the same preset as the site optimizer: mode, ownership penalty, salary floor and that contest type's ownership. Cash scores projection plus 0.25 x floor. Returns DK ids in slot order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lock | No | ||
| mode | No | ||
| exclude | No | ||
| lineups | No | ||
| slate_id | No | ||
| min_salary | No | ||
| min_unique | No | ||
| own_lambda | No | ||
| contest_type | No | Preset from the site NBA optimizer. Explicit mode, own_lambda and min_salary override it. | |
| max_per_team | No | ||
| questionable | No | How to score a questionable player. play (default): his if-he-plays line and ownership. expected: play chance x if-he-plays line. out: leave him out. | |
| max_total_own | No | ||
| cash_floor_weight | No | Cash only: floor points added per point of floor. Default 0.25. |