asharp02 / fantasy-basketball-bud

NBA Fantasy dashboard to help you win your matchup 🏀 ⛹🏾‍♂️
0 stars 0 forks source link

Initial yfpy Research #1

Open asharp02 opened 1 year ago

asharp02 commented 1 year ago

As part of the first iteration of the fantasy buddy app, we want to create a barebones matchup preview dashboard. Our first step should be to research the yfpy library and attempt to pull basic data from it. Our first data points that we want to make available to our users are basic matchup data specifically: 1) Who is the user matched up with 2) How many games does the user have vs how many games does the opponent have for a specific week

To Do:

asharp02 commented 1 year ago
  • [ ] Research the yfpy library and figure out how auth works

To be determined

  • [ ] Query yfpy and fetch the above data points

Get the League/Basic setup

Get generic league info including end week

Get player stats from team by week or season (Might be buggy for NBA categories, TODO: investigate further)

Find matchup info for specified week

asharp02 commented 1 year ago
  • [ ] Investigate player stats by week query endpoint and determine whether it is functional for fantasy basketball categories (currently does not seem to be returning actual values for the player stats)

Seems somewhat functional in that it returns data but incomplete? Attempting to run the weekly player stats query (get_team_roster_player_stats_by_week) seems to be returning the last day of the week stats rather than the entire week.

  • [ ] How to get # of games per team? Per player? This is crucial in order to calculate accurate player stats aggregated based on # of games being played. This will be the main anchor point for further analysis (how to maximize games played and how to get an accurate player value for an individual week!)

Consider using an NBA schedule API to get this data, doesn't seem like the Yahoo Fantasy API provides games played unless it is a stat tracked within the league's settings.