cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
584 stars 190 forks source link

Add playoff % to standings and/or team class #256

Closed dtcarls closed 2 years ago

dtcarls commented 2 years ago

Sport

Football

Summary

On the standings page, there is now a predicted percentage to make the playoffs. I would like to access this in the Team class or whatever you feel is appropriate.

dtcarls commented 2 years ago

https://fantasy.espn.com/apis/v3/games/FFL/seasons/2021/segments/0/leagues/{LEAGUE_ID_HERE}/?view=mStandings stored in playoffPct

cwendt94 commented 2 years ago

Thanks, I was just looking at that. I see ESPN now provides draftDayProjectedRank and currentProjectedRank that could be good team information.

dtcarls commented 2 years ago

There are also some interesting projections from a simulation in there, like projected wins, losses, and division win chance.

"currentSimulationResults": {
        "divisionWinPct": 0.0,
        "modeRecord": {
            "gamesBack": 0.0,
            "losses": 11,
            "percentage": 0.0,
            "pointsAgainst": 0.0,
            "pointsFor": 0.0,
            "streakLength": 0,
            "streakType": "NONE",
            "ties": 0,
            "wins": 3
        },
        "playoffPct": 0.019,
        "rank": 10
    },
cwendt94 commented 2 years ago

New fields are now in v0.18.3 in team class draft_projected_rank and playoff_pct