NOTE: This project was completed as part of Harvard's CS50 on EdX. Requirements for this project can be found here.
Description: Website where users can create an account, buy, and sell imaginary stocks.
For this project, I implemented the following functionality:
register
: Allows a user to "register" on the site. The username and password are submitted via Flask and stored in a sqlite 3 databasequote
: Allows a user to look up the price of a stock using the symbolbuy
: Allows a user to buy the imaginary stock; Purchased stocks are saved to the database and money balance is updatedindex
: Displays an HTML summary table of the user's current funds and stockssell
: Allows a user to sell stocks; Sold stocks are removed from the database and the money balance is updatedhistory
: Displays an HTML table showing the transaction history for the user
All code outside of the above functions was provided by CS50.