The type, date, and pick order of a league draft.

draft_settings(leagueId = ffl_id(), leagueHistory = FALSE, ...)

Arguments

leagueId

Numeric league ID or ESPN fantasy page URL. Defaults to getOption("fflr.leagueId"). Function fails if no ID is found.

leagueHistory

logical; Should the leagueHistory version of the API be called? If TRUE, a list of results is returned, with one element for each historical year of the league.

...

Additional queries passed to httr::GET(). Arguments are converted to a named list and passed to query alongside view.

Value

A data frame of league draft settings by season.

Examples

draft_settings(leagueId = "42654852")
#> # A tibble: 1 × 13
#>   seasonId auctionBudget availableDate       date               
#>      <int> <chr>         <dttm>              <dttm>             
#> 1     2024 NA            2024-08-21 14:30:00 2024-08-21 15:30:00
#> # ℹ 9 more variables: isTradingEnabled <lgl>, keeperCount <int>,
#> #   keeperCountFuture <int>, keeperOrderType <chr>, leagueSubType <chr>,
#> #   orderType <chr>, pickOrder <list>, timePerSelection <int>, type <chr>