Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ TradeSense AI

Intelligent Stock Trading & Portfolio Analytics Platform

Next.js TypeScript React TailwindCSS


๐Ÿ”ฎ AI-Powered Price Predictions โ€ข ๐Ÿ“Š Real-Time Market Data โ€ข ๐Ÿ’ผ Smart Portfolio Optimization


โš ๏ธ Important Disclaimer

๐ŸŽ“ EDUCATIONAL PROJECT ONLY

โšก THIS PROJECT IS FOR EDUCATIONAL AND LEARNING PURPOSES ONLY

  • ๐Ÿ“š Not Financial Advice: This is a demo/portfolio project built to demonstrate AI/ML, Next.js, and web development skills. It does NOT provide real financial or investment advice.
  • ๐Ÿšซ Do NOT Make Real Investments: Please do NOT base any real-world trading, investment, or financial decisions on the predictions, recommendations, or outputs of this application.
  • ๐Ÿค– AI Predictions are Simulated: The AI/ML models showcased here are for demonstration purposes. Their predictions should NOT be considered accurate or reliable for actual trading.
  • ๐Ÿ’ผ No Liability: The developer(s) of this project are NOT liable for any financial losses, damages, or consequences arising from the use or misuse of this application.
  • ๐ŸŽฏ Purpose: This project was created to learn and showcase skills in:
    • Full-stack development with Next.js & TypeScript
    • AI/ML model integration
    • Real-time data handling
    • Modern UI/UX design

๐Ÿ™ Please treat this as a LEARNING PROJECT, not a financial tool.


โœจ Features at a Glance

๐Ÿง  AI/ML Features

  • ๐Ÿ”ฎ LSTM Price Prediction (Demo - 82% accuracy)
  • ๐Ÿ“ฐ NLP Sentiment Analysis
  • ๐Ÿ“Š CNN Pattern Recognition
  • ๐Ÿ’ผ MPT Portfolio Optimizer
  • ๐Ÿ” Anomaly Detection
  • ๐Ÿ“ˆ Strategy Backtesting
  • โš ๏ธ Risk Assessment

๐Ÿ“ˆ Trading Tools

  • ๐Ÿ“‹ Stock Screener with filters
  • ๐Ÿฆ FII/DII Data tracking
  • ๐Ÿ“… Economic Calendar
  • ๐Ÿ’ฐ Dividend Calendar
  • ๐Ÿ”” Price Alerts
  • ๐Ÿ“ฐ Live News Feed
  • ๐Ÿ“Š 52-Week Breakouts

๐Ÿ–ผ๏ธ Screenshots

๐Ÿ  Dashboard

Premium dark theme with real-time market indices

๐Ÿง  AI/ML Features

Intelligent trading features powered by 7 ML models

๐Ÿ› ๏ธ Trading Tools

Stock Screener โ€ข FII/DII Data โ€ข Economic Calendar


๐Ÿš€ Tech Stack

Category Technology
Framework Next.js 15.1 (App Router)
Language TypeScript 5.0
UI Library React 19
Styling TailwindCSS + Custom CSS
Data API Yahoo Finance (Real-time)
Icons Lucide React
AI/ML Custom ML Models (Demo)
Charts Recharts

๐Ÿ“ Project Structure

tradesense-ai/
โ”œโ”€โ”€ ๐Ÿ“‚ src/
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ app/
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ page.tsx          # Homepage with AI features
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ ai/               # AI Chat Assistant
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ tools/            # Trading Tools (Screener, FII/DII)
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ markets/          # Stock Markets page
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ portfolio/        # Portfolio Management
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ watchlist/        # Personal Watchlist
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ calculator/       # SIP/Lumpsum Calculator
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ ipo/              # IPO Tracker
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ mutualfunds/      # Mutual Funds
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ stock/[symbol]/   # Dynamic Stock Details
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ api/
โ”‚   โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ stocks/       # Yahoo Finance API
โ”‚   โ”‚       โ”œโ”€โ”€ ๐Ÿ“‚ ai/           # AI Chat API
โ”‚   โ”‚       โ””โ”€โ”€ ๐Ÿ“‚ ml/           # ML Models API
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ lib/
โ”‚       โ””โ”€โ”€ ๐Ÿ“„ theme.ts          # Theme configuration
โ”œโ”€โ”€ ๐Ÿ“„ package.json
โ”œโ”€โ”€ ๐Ÿ“„ tailwind.config.ts
โ””โ”€โ”€ ๐Ÿ“„ README.md

๐Ÿง  AI/ML Models (Demo)

Note: These are simulated models for educational demonstration. Accuracy figures are hypothetical.

Model Purpose Demo Accuracy
๐Ÿ”ฎ LSTM Neural Network Price Prediction (7-14 days) ~82%
๐Ÿ“ฐ NLP Transformer Sentiment Analysis ~79%
๐Ÿ“Š CNN Detector Chart Pattern Recognition ~75%
โš ๏ธ Ensemble Model Risk Assessment ~85%
๐Ÿ’ผ MPT Algorithm Portfolio Optimization N/A
๐Ÿ” Isolation Forest Anomaly Detection ~88%
๐Ÿ“ˆ Backtester Strategy Testing N/A

๐Ÿ› ๏ธ Installation & Setup

Prerequisites

  • Node.js 18+
  • npm or yarn

Quick Start

# Clone the repository
git clone https://github.com/kumarharsh21112003/tradesense-ai.git

# Navigate to project
cd tradesense-ai

# Install dependencies
npm install

# Run development server
npm run dev

# Open in browser
# http://localhost:3000

๐Ÿ“Š API Endpoints

Endpoint Method Description
/api/stocks GET Fetch all stocks data
/api/stocks?market=india GET Market-specific stocks
/api/stocks?action=indices GET Live NIFTY, SENSEX, BANK NIFTY
/api/stocks?action=search&q=TCS GET Search stocks
/api/ai POST AI Chat (send message)
/api/ml POST ML Model predictions

๐ŸŽฏ Key Features Explained

๐Ÿ”ฎ AI Price Prediction (Demo)

Command: "Predict RELIANCE 7 days"
Model: LSTM Neural Network (Simulated)
Output: Day-by-day price forecast with confidence scores
โš ๏ธ For demonstration only - NOT real predictions!

๐Ÿ“ฐ Sentiment Analysis (Demo)

Command: "Sentiment TCS"
Sources: News articles (simulated analysis)
Output: Bullish/Bearish score with source breakdown
โš ๏ธ For demonstration only - NOT real sentiment data!

๐Ÿ’ผ Portfolio Optimizer (Demo)

Command: "Optimize 10 lakhs aggressive"
Model: Modern Portfolio Theory (Markowitz) - Simulated
Output: Stock allocation, expected returns, risk metrics
โš ๏ธ For demonstration only - NOT real investment advice!

๐Ÿ“Š Stock Screener

Features: Filter by Gainers, Losers, Buy-rated
Metrics: Price, Change%, P/E, Market Cap, Volume
Actions: Quick view, detailed analysis

๐ŸŽจ Design Philosophy

  • ๐ŸŒ‘ Premium Dark Theme - Easy on eyes, Groww-inspired
  • โœจ Glassmorphism Effects - Modern, translucent UI
  • ๐Ÿ“ฑ Responsive Design - Works on all devices
  • ๐ŸŽฏ User-Centric UX - Intuitive navigation
  • โšก Real-Time Updates - Live market data display

๐Ÿ“ˆ Future Roadmap (Learning Goals)

  • ๐Ÿ” User Authentication (NextAuth.js)
  • ๐Ÿ’พ Database Integration (PostgreSQL)
  • ๐Ÿ“ฑ Mobile App (React Native)
  • ๐Ÿค– GPT-4 Integration for AI Chat
  • ๐Ÿ“Š TradingView Charts
  • ๐Ÿ’ณ Paper Trading Feature
  • ๐Ÿ”” Push Notifications

๐ŸŽ“ What I Learned Building This Project

  • โœ… Next.js 15 with App Router & Server Components
  • โœ… TypeScript for type-safe development
  • โœ… Real-time API Integration with Yahoo Finance
  • โœ… AI/ML Concepts - LSTM, NLP, Portfolio Theory
  • โœ… Modern UI/UX - Dark themes, glassmorphism, animations
  • โœ… State Management & responsive design patterns
  • โœ… API Development with Next.js Route Handlers

๐Ÿ‘จโ€๐Ÿ’ป Developer

Built with โค๏ธ by Kumar Harsh

๐ŸŽ“ B.Tech CSE Student | Aspiring Software Engineer

GitHub LinkedIn Portfolio


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


โญ Star this repo if you found it helpful!


โš ๏ธ Reminder

This is an EDUCATIONAL PROJECT. Do NOT use it for real trading or investment decisions.

Made with Next.js, TypeScript, and AI ๐Ÿš€

A portfolio project demonstrating full-stack development & AI/ML skills

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages