Skip to content

YashJoshi2109/QuantTrade-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

103 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Quants AI Trading

A comprehensive AI-powered trading and research platform with TradingView-style UI, featuring real-time market data, AI copilot, RAG-powered insights, and backtesting capabilities.

Live app: https://quanttrade.us/


Table of Contents


Core Features

  • 🌍 Global Monitor β€” Real-time geopolitical intelligence with 3D globe visualization, AI threat classification, and ticker impact correlation (NEW!)
  • Symbol Analysis with AI β€” Real-time charts, indicators, and AI-powered explanations
  • Earnings & Filings Deep Dive β€” RAG-powered analysis of SEC filings and earnings calls
  • Personal Watchlist β€” Portfolio-aware AI insights and risk monitoring
  • Strategy Backtesting β€” Rule-based strategy testing with AI explanations
  • Risk Analysis β€” Comprehensive risk scoring and factor analysis

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Frontend  β”‚  Next.js with TradingView-style charts
β”‚  (Web App)  β”‚
β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
       β”‚
β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   API Gateway/Backend   β”‚  FastAPI REST API
β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚
   β”Œβ”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚                                   β”‚
β”Œβ”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Data      β”‚              β”‚   RAG/Copilot    β”‚
β”‚  Services   β”‚              β”‚    Service       β”‚
β”‚             β”‚              β”‚                  β”‚
β”‚ - Market    β”‚              β”‚ - Embeddings     β”‚
β”‚   Data      β”‚              β”‚ - Vector Store   β”‚
β”‚ - News      β”‚              β”‚ - LLM Agent      β”‚
β”‚ - Filings   β”‚              β”‚ - Tool Calling   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚
β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Storage Layer         β”‚
β”‚                        β”‚
β”‚ - PostgreSQL (OHLCV)   β”‚
β”‚ - Vector DB (RAG)      β”‚
β”‚ - Object Storage       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Project structure:

Finance/
β”œβ”€β”€ backend/              # FastAPI backend
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/           # API routes (auth, symbols, prices, chat, backtest, etc.)
β”‚   β”‚   β”œβ”€β”€ services/      # Business logic (RAG, embeddings, data fetchers)
β”‚   β”‚   β”œβ”€β”€ models/        # SQLAlchemy models
β”‚   β”‚   β”œβ”€β”€ db/            # Database setup
β”‚   β”‚   └── tasks/         # Celery background jobs
β”‚   └── scripts/           # Data sync & DB init scripts
β”œβ”€β”€ frontend/              # Next.js (App Router) frontend
β”‚   └── src/
β”‚       β”œβ”€β”€ app/           # Pages (research, watchlist, backtest, markets, etc.)
β”‚       β”œβ”€β”€ components/    # UI components, charts, panels
β”‚       β”œβ”€β”€ contexts/      # Auth context
β”‚       β”œβ”€β”€ hooks/         # Realtime quote, news hooks
β”‚       └── lib/           # API client, auth, store
└── docs/                  # Additional documentation

Tech Stack

Layer Technologies
Backend Python, FastAPI, SQLAlchemy, PostgreSQL, Celery, Redis
Frontend Next.js 16, React 18, TypeScript, Tailwind CSS, TradingView Lightweight Charts, Zustand, TanStack Query
AI/ML OpenAI/Anthropic API, LangChain, Chroma/Pinecone (vector store)
Data yfinance, Finnhub, Finviz, SEC EDGAR API
DevOps Docker, GitHub Actions, Neon (PostgreSQL)

Getting Started

Prerequisites

  • Python 3.11 (project is tested and deployed with 3.11.x; newer Python versions like 3.14 often lack compatible wheels for key deps such as psycopg2, pandas, and torch)
  • Node.js 18+
  • PostgreSQL (or use Neon for hosted Postgres)
  • Redis (for Celery background jobs)
# Optional: run enhanced setup (sync symbols, etc.)
./setup_enhanced.sh

# Start API server
uvicorn app.main:app --reload

Quick local stack (backend only)

From project root you can use Docker:

docker-compose up

See docs/QUICK_START.md and docs/INSTALLATION_EXPLAINED.md for detailed setup and env vars.


Images / Prototype

Home Page

image

Research Page

image image

Real time Market Page

image

Real time News (as per stock)

image

Ideas-lab

image

Backtest

image

System Settings & Preference

image

Documentation


License

MIT

About

QuantCopilot is an AI-powered trading and research terminal that blends real-time, TradingView-style charts with an intelligent copilot chat. It ingests market data, news, and filings, then uses machine learning, RAG, and large language models to explain price moves, summarize documents, and highlight risks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors