-
Notifications
You must be signed in to change notification settings - Fork 213
Player Class
Christian Wendt edited this page Sep 24, 2024
·
11 revisions
name: str
playerId: int
posRank: int # players positional rank
eligibleSlots: List[str] # example ['WR', 'WR/TE/RB']
lineupSlot: str # the players lineup position
acquisitionType: str
proTeam: str # 'PIT' or 'LAR'
schedule: dict # key is scoring period, example: {'1': {'team': 'LAR', 'date': datetime.datetime(2018, 10, 17, 23, 0)}}
onTeamId: int # id of fantasy team
position: str # main position like 'TE' or 'QB'
injuryStatus: str
injured: boolean
total_points: int # players total points during the season
avg_points: int # players average points during the season
projected_total_points: int # projected player points for the season
projected_avg_points: int # projected players average points for the season
percent_owned: int # percentage player is rostered
percent_started: int # percentage player is started
stats: dict # holds each week stats, actual and projected points.
# week 1 example {1: {'breakdown': {'receivingReceptions': 1.7, 'rushingYards': 7.9}, 'points': 14.57, 'projected_points': 24.64, 'projected_breakdown': {'receivingReceptions': 6.354896833, 'rushingYards': 7.890957077}}}