The individual proposed and executed transactions, trades, and waiver moves.
recent_activity(
leagueId = ffl_id(),
leagueHistory = FALSE,
scoringPeriodId = NULL,
...
)
A data frame of transactions and roster moves.
Numeric league ID or ESPN fantasy page URL. Defaults to
getOption("fflr.leagueId")
. Function fails if no ID is found.
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.
Integer week of NFL season. By default, NULL
will
use the current week (see ffl_week()
). Scoring periods are always one
week in length, whereas matchups might be longer.
Additional queries passed to httr::GET()
. Arguments are
converted to a named list and passed to query
alongside view
.
As of November 2021, activity data related to trades coming from the API is
flawed. The items
list column containing the players involved in a trade
will only contain data for rejected trades (with an executionType
of
"CANCEL"). For accepted and upheld trades, that items
element is NULL
or
an empty list. This flaw comes from the API itself, not processing done by
this package.
Other player functions:
all_players()
,
list_players()
,
player_info()
,
player_news()
,
player_outlook()
,
transaction_counter()
recent_activity(leagueId = "42654852", scoringPeriodId = 2)
Run the code above in your browser using DataLab