Problem Set for Week 9 Of CS50
Python HTML CSS Flask (and flask-session for cookies and session use) SQL (specifically sqlite3) Bootstrap
Finance is a web application which allows users to carry out a simulated trading sequence, with a portfolio keeping track of your orders with real time stock prices using the Yahoo Finance API. The application also keeps track of the history of all your trades
- Clone this repo
- Install the required dependencies with "pip install -r requirements.txt"
- Run command 'export FLASK_APP=application.py' to set the Flask environment variable
- Run command 'flask run' to open on localhost
- When the finance site opens in your browser, register for a new account (upper right corner) to create your own stock portfolio, and you're good to go!
Allows you to create an account, and stores your username and password
Allows you to change your password while logged in, permanently altering it in the database
Allows you to "buy" stocks based on their realtime stock prices, storing the information in the portfolios database.
Allows you to "sell" stocks based on their realtime stock prices, storing the information in the portfolios database.
Provides the history of all your trades.
Allows the user to see their password as they type it, to avoid mistakes.
Please note that the Login and Logout functions and all functions in helpers.py came with the assignment starter code and are not my work. Starter code ©2023 David J. Malan/ Harvard