Git Product home page Git Product logo

optidfs's People

Contributors

markjoeljimenez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

optidfs's Issues

Performance enhancements

There are several areas that can be improved on in terms of performance and speed:

  • Viewing all players
    • Implement lazy loading? Pagination?
  • Update settings of specific players like lock/exclude, minimum exposure, projected ownership, etc.
  • Switch between view all players and optimized lineups.

Re add status column

Now that we're requesting from the .csv API and not the JSON API, there's no way to check the status of players. We can possibly add this back in but we need several Python APIs to support multiple sports.

Or possibly a simpler way to get player statuses is:

  1. Make a second request from https://api.draftkings.com/draftgroups/v1/draftgroups/{DRAFT_GROUP_ID/draftables endpoint
  2. Loop through the players in the .csv (retrieved from https://www.draftkings.com/lineup/getavailableplayerscsv?contestTypeId={contest_id}&draftGroupId={draft_group_id})
  3. In the loop, find that player in the endpoint above and get the status
  4. Finally map a new JSON (or Pandas dataframe) with the appropriate statuses
    • (Time complexity?: O(n2))

DraftKing's API doesn't provide "Roster positions"

DraftKing's API doesn't provide "Roster positions" (ex: PF/C/FLEX) which is needed for better optimization calculations.

Instead we can either:

  • Only allow CSV uploads for now
  • Request and download CSV from this URL: https://www.draftkings.com/lineup/getavailableplayerscsv?contestTypeId=${CONTEST_TYPE_ID}&draftGroupId=${DRAFT_GROUP_ID} then transform players on the backend

Add instructions after sport is selected

After selecting a sport, it may be helpful to provide instructions on what to do next. Ex:

  • Contests loaded! Please upload a .csv or select a contest from the dropdown above

Cleanup

Task list:

  • Remove all 'any' types
  • Clean up Redux action names
  • Consistent function declaration vs function expression
  • Organize Table.reducer.ts, saga.ts better

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.