2024 10 06 ESPN Fantasy Football SpringBoot

Quickly reviewing what I learned looking through the api.

In the in-match api return for an active week, i.e. scoringPeriodId is set to the current week, and our view contains mBoxScore, mScoreBoard, mLiveScoring, mMatchupScore, we'll get each teams active roster, currrent total projected points, and current live points. In each roster spot, we'll get two different stat objects, one representing the original projection and one the live stats. In the original projection, it's important to note that we have a appliedTotalCeiling value, we'll need that.

The appliedTotalCeiling is almost like a maximum conceived value that the player could achieve for this game. The ESPN match cycles through each player of the team and determines the projected points, which includes the live points + the remaingProjectedPoints, which is the fractional game value left multipled by the original projection.

In the Tt function, we see that the projected ceiling is the addition of the original projected ceiling times the game time remaining fraction plus the live points.

Comments