A complete stock trading simulator built with Python, Flask, and SQLite that mimics real-world stock trading.
- β Register & Login system with secure password hashing
- β Real-time stock quotes using IEX Cloud API
- β Buy & Sell stocks with instant portfolio updates
- β Portfolio overview showing current holdings and total value
- β Transaction history with detailed records
- β Cash balance management
- β Quote lookup for any stock symbol
- β Responsive and clean user interface
- β Session management and security
# Clone the repository
git clone https://github.com/kabincs9/finance.git
cd finance
# Install dependencies
pip install -r requirements.txt
# Run the application
flask run
π Key Pages
Register / Login
Quote β Look up current stock prices
Buy β Purchase shares
Sell β Sell owned shares
Index β Portfolio summary with current values
History β Complete transaction log
π οΈ Technologies Used
Python + Flask (Backend Framework)
SQLite (Database)
HTML, CSS, Bootstrap (Frontend)
Jinja2 (Templating)
IEX Cloud API (Real stock data)
werkzeug (Password security)
π§ What I Learned
Building a full-stack web application with Flask
Working with third-party APIs (IEX Cloud)
Managing user sessions and authentication
Database design and SQL operations
Handling forms, validation, and security
Real-time stock price integration
β Star this repo if you enjoy full-stack finance applications or CS50 Week 9 projects!
Made with β€οΈ by Kabin
text---
**Tip**:
Make sure you have a `requirements.txt` file in your repo. If you want, I can also give you a good `requirements.txt` content.
Would you like me to:
1. Add a **Screenshots** section?
2. Include setup instructions for API key?
3. Make any part shorter or more detailed?
Just tell me your preference.
Also, what's the **next project** you want? (e.g., **C$50 Finance** final version, **Tracks**, or any other)3.1s