Skip to content

Latest commit

Β 

History

History
65 lines (44 loc) Β· 2.1 KB

readme.md

File metadata and controls

65 lines (44 loc) Β· 2.1 KB

πŸ“ˆ VirtualStock - Paper Trading Platform

A modern virtual paper trading web application with zero financial risk, live simulated market fluctuations, interactive portfolio & P&L tracking, and an AI market analyst copilot.


✨ Features

  • Virtual Trading Engine: Practice trading with β‚Ή1,00,000 in simulated funds. Real-time balance updates, buy/sell orders, and stop-loss support.
  • Dynamic Watchlist: Real-time ticker and market cards for top stocks (e.g., RELIANCE, TCS, HDFCBANK, INFY, AAPL, NVDA, TSLA).
  • Portfolio & P&L Dashboard: Interactive Chart.js performance curve, live holdings breakdown, and transaction history.
  • AI Market Analyst: Built-in chat assistant offering insights on technical indicators, chart patterns, risk management, and market concepts.
  • Modern Glassmorphic UI: Custom CSS with responsive layouts, glowing accents, hero carousel, and dark theme.

πŸ“ Project Structure

β”œβ”€β”€ app.py              # Flask backend server & REST API endpoints
β”œβ”€β”€ models.py           # SQLAlchemy models for Users, Stocks, and Trades
β”œβ”€β”€ style.css           # Modern custom CSS design system
β”œβ”€β”€ app.js              # Frontend interactive trading & watchlist engine
β”œβ”€β”€ index.html          # Main landing page & live market watchlist
β”œβ”€β”€ profit_loss.html    # Portfolio performance & P&L tracker
β”œβ”€β”€ chat.html           # AI Trading Assistant chat interface
β”œβ”€β”€ login.html          # Authentication & demo account registration
└── images/             # Visual assets and illustrations

πŸš€ Quick Start

1. Prerequisites

  • Python 3.8+

2. Setup Virtual Environment & Install Dependencies

python3 -m venv venv
source venv/bin/activate
pip install flask flask-sqlalchemy flask-login requests

3. Run the Application

python app.py

Open your browser and navigate to:

http://localhost:8000

πŸ› οΈ Tech Stack

  • Frontend: HTML5, Vanilla CSS3 (Glassmorphism), JavaScript (ES6+), Chart.js, FontAwesome
  • Backend: Python, Flask, Flask-SQLAlchemy, Flask-Login, SQLite