GithubHelp home page GithubHelp logo

wsbtycoon's People

Contributors

matthewkwong avatar osamahan999 avatar

Watchers

 avatar

wsbtycoon's Issues

Create stock purchase functionality

Make a script that takes in parameters:

  • username
  • stock symbol
  • amount of stocks
  • current price

Then, it does these things:

  • deducts cash from user on users table, while keeping net-worth the same
  • creates new entry on transactions table

Update user money on startup and on stock-data update

Make it so that whenever we update stock data on the page, user money is also updated. Also, when opening the page, not only is watchlist data api'd, but also stock data of specific user also called.

Ex: I log on. On page open, 30 minutes of data is ajax'd. I immediately open a stock's page (which ajax the api for 30 minutes of data) and purchase a stock. This calls our script that updates my cash/net, and updates the transactions table. This should also store the data in maybe a cookie, and then use it to update user info. Something like:

  • get user stock purchases
  • check if stock data currently in cache
  • if not, api
  • if yes, use.

Combine watch_list and users in wsbLog

I believe the best way to handle the watch list preferences is to put it with the users. have a hard coded amount, make that many columns, and allow them to be null.

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.