StockSaver is now live! Visit the application here.
StockSaver is a web application designed to simulate a stock trading platform. Originating from the finance problem set of CS50x, this project is continuously evolving with regular improvements and feature additions. It allows users to create a virtual stock portfolio to simulate the experience of trading stocks.
- User Registration: New users can register with a unique username and password.
- Stock Price Lookup: Users can check the current price of stocks using their symbols.
- Buy Stocks: Users can buy stocks using virtual cash.
- Sell Stocks: Users can sell stocks they own.
- Transaction History: Users can view a history of all their transactions.
- User Dashboard: Displays a summary of stocks owned, their current values, and the user's cash balance.
-
Clone the repository:
git clone [repository_link] cd StockSaver
-
Install the required packages:
pip install -r requirements.txt
-
Set up the Flask application:
export FLASK_APP=app.py
-
Run the application:
flask run
-
Visit the provided link to access the web application.
- Register: For new users, register with a unique username and password.
- Login: If already registered, log in with your credentials.
- Quote: Enter a stock symbol to check its current price.
- Buy: Purchase stocks by entering the stock symbol and the number of shares.
- Sell: Sell stocks you own by selecting the stock and specifying the number of shares.
- History: View a list of all your transactions.
- Deposit Cash: Add more virtual cash to your account.
- Flask
- SQLite
- IEX Cloud API (for stock price lookup)
StockSaver is a living entity, with plans for consistent updates, feature additions, and improvements as I progress in my programming journey. Feedback and suggestions are always welcome.