A simple web app to practice buying and selling stocks with virtual money and real market data, with following features:
- Simulated Trading: Buy and sell stocks with real-time prices (via Finnhub and Financial Modeling Prep APIs).
- Portfolio Dashboard: View cash balance, invested amount, total value, and recent transactions.
- Market Overview: Track major indices (S&P 500, Dow Jones, Nasdaq 100) and see your top holding’s price trend. Browse the latest financial news headlines.
- Educational Content: Tutorial section and flashcards to learn trading concepts.
- Manan Patel: Worked on user concretion and transaction history functionality.
- Viki Yarema: Develop MongoDB database, integrate the Finnhub API.
- Nikhil Thomas: Worked on dashboard, trade page. Integrate Finnhub API functionality.
- Kyle Ye: Develop Login, Market, and Tutorial page. Integrate FMP API for Market Trending.
- Create a MongoDB instance, either locally or on MongoDB Atlas.
- Add the username, password, and cluster address to a
.envfile in theDjangoProject1folder. Path to.envfile:backend/DjangoProject1/.env - Additionally, get a Finnhub API key and store it there as well, along with your Django secret key.
The
.envfile should look like this:
MONGO_USER=...
MONGO_PASSWORD=...
MONGO_CLUSTER=...
FINNHUB_API_KEY=...
DJANGO_SECRET_KEY=...
- Install the python requirements by running: (Optionally create a venv for this project):
python3 -m venv .venv
source .venv/bin/activate cd backend
pip install -r requirements.txt- Ensure your MongoDB database is running
- Run the following command to start the Django backend:
python3 manage.py runserver 8000 - Open
frontend/index.htmlin your browser to begin using the application
