The AI-powered trading platform that doesn't just show signals β it explains them.
π For educational purposes only Β· Paper trading Β· Not financial advice
Every trading app shows you WHAT:
RSI: 34.2 Β· MACD crossover Β· Signal: BUY
We tell you WHY:
"RSI at 34.2 suggests oversold conditions. MACD is crossing above its signal
line indicating bullish momentum building. Price action down 2.1% over last
20 candles β a classic reversal setup is forming. Confidence: 78%"
Bloomberg Terminal charges $24,000/year for this level of insight. AI Trading Copilot is free. Forever.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β USER (Browser) β
β Mobile / Desktop / PWA β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β HTTPS
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β FRONTEND Β· Vercel (Edge Network) β
β β
β Next.js 14 Β· TypeScript Β· Tailwind CSS β
β NextAuth.js Β· TradingView Charts Β· Recharts β
β β
β Pages: Home Β· Markets Β· Dashboard Β· Learn Β· News β
β Leaderboard Β· Contact Β· About Β· Auth β
β Forgot Password Β· Reset Password β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β REST API (JSON)
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β BACKEND Β· Render (Free Tier) β
β β
β FastAPI (Python) Β· SQLAlchemy Β· JWT Auth β
β Pydantic Β· httpx Β· bcrypt β
β β
β 20+ API Routers: auth Β· signals Β· trades Β· portfolio β
β alerts Β· journal Β· backtest Β· chat Β· community β
β sentiment Β· news Β· leaderboard Β· contact Β· admin β
ββββββββ¬βββββββββββββββββββββ¬ββββββββββββββββββββββββ¬βββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββββββ
β DATABASE β β AI PROVIDERS β β MARKET DATA APIs β
β β β β β β
β PostgreSQL β β OpenRouter Gemma β β KuCoin (Crypto) β
β Neon Cloud β β (Free β default) β β TwelveData (Forex) β
β β β β β β Polygon.io (Stocks) β
β Users β β Anthropic Claude β β NewsAPI (News) β
β Trades β β (Paid β premium) β β Yahoo Finance β
β Signals β β β β β ExchangeRate API β
β Alerts β β Rule-based β β β
β Journal β β (No key needed) β β β
βββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββββββ
ββββββββββββ POST /auth/register ββββββββββββββββ
β User β βββββββββββββββββββββββββββββΊ β Backend β
β Register β β Create user β
ββββββββββββ βββββββββββββββββββββββββββββ β Return JWT β
JWT Token ββββββββββββββββ
ββββββββββββ POST /auth/login ββββββββββββββββ
β User β βββββββββββββββββββββββββββββΊ β Backend β
β Login β β Verify pass β
ββββββββββββ βββββββββββββββββββββββββββββ β Return JWT β
JWT Token ββββββββββββββββ
ββββββββββββ GET /dashboard (+ JWT) ββββββββββββββββ
βProtected β βββββββββββββββββββββββββββββΊ β Backend β
β Route β β Validate JWT β
ββββββββββββ βββββββββββββββββββββββββββββ β User data β
Session data ββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β 1. User clicks "Forgot password?" on Login page β
β β β
β βΌ β
β 2. /forgot-password β Enter email address β
β β β
β βΌ β
β 3. Backend generates secure token (expires in 1 hour) β
β Sends reset link to email via Web3Forms β
β β β
β βΌ β
β 4. User receives email with link: β
β https://kw-trading-copilot.vercel.app/reset-password?token=β
β β β
β βΌ β
β 5. /reset-password β Enter new password + confirm β
β β β
β βΌ β
β 6. Backend verifies token β updates password β clears token β
β β β
β βΌ β
β 7. β
Redirect to /login β sign in with new password β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ASSET CATEGORIES β
ββββββββββββββ¬βββββββββββββ¬βββββββββββ¬βββββββββββββ¬βββββββββββ€
β CRYPTO β FOREX β STOCKS βCOMMODITIES β INDICES β
β 7 assets β 7 pairs β 7 stocks β 3 assets β 3 index β
ββββββββββββββΌβββββββββββββΌβββββββββββΌβββββββββββββΌβββββββββββ€
β BTC/USDT β EUR/USD β AAPL β XAU (Gold) β SPY β
β ETH/USDT β GBP/USD β MSFT β XAG (Silverβ QQQ β
β SOL/USDT β USD/JPY β TSLA β WTI (Oil) β DIA β
β BNB/USDT β AUD/USD β GOOGL β β β
β XRP/USDT β USD/CAD β AMZN β β β
β ADA/USDT β USD/CHF β NVDA β β β
β DOGE/USDT β NZD/USD β META β β β
ββββββββββββββΌβββββββββββββΌβββββββββββΌβββββββββββββΌβββββββββββ€
β KuCoin β TwelveData β Polygon β TwelveData β Polygon β
β API β API β API β API β API β
ββββββββββββββ΄βββββββββββββ΄βββββββββββ΄βββββββββββββ΄βββββββββββ
User requests signal for BTCUSDT
β
βΌ
βββββββββββββββββββββββββ
β Fetch live market β
β data (price, OHLCV) β
βββββββββββββ¬ββββββββββββ
β
βΌ
βββββββββββββββββββββββββ
β Calculate technical β
β indicators: β
β RSI Β· MACD Β· BB β
β EMA Β· ATR Β· Volume β
βββββββββββββ¬ββββββββββββ
β
βΌ
βββββββββββββββββββββββββ βββββββββββββββββββ
β Send to AI provider ββββββΊβ OpenRouter β
β with full context β β Gemma (Free) β
βββββββββββββ¬ββββββββββββ βββββββββββββββββββ
β βββββββββββββββββββ
β fallback βββββΊβ Anthropic Claude β
β β (Premium) β
β βββββββββββββββββββ
β βββββββββββββββββββ
β fallback βββββΊβ Rule-based β
β β (No key needed) β
βΌ βββββββββββββββββββ
βββββββββββββββββββββββββ
β AI Response: β
β Β· Direction: BUY β
β Β· Confidence: 78% β
β Β· Risk: Medium β
β Β· Full reasoning β
β in plain English β
βββββββββββββββββββββββββ
| # | Feature | Description |
|---|---|---|
| 1 | π€ Explainable AI Signals | BUY/SELL/HOLD with full plain-English reasoning |
| 2 | π TradingView Charts | Professional candlesticks, volume, 4 timeframes |
| 3 | π Multi-Timeframe Analysis | 1D+1W+1M signals merged into one verdict |
| 4 | β‘ 5 Backtest Strategies | RSI+MACD, Bollinger, EMA, SuperTrend, Mean Rev |
| 5 | π AI Trade Journal | Auto coaching after every trade |
| 6 | π Portfolio Analytics | Equity curve, Sharpe ratio, max drawdown |
| 7 | π₯ Community Signals | Share ideas, vote, see collective consensus |
| 8 | π Price Alerts | Price-above / price-below on any asset |
| 9 | π Risk Manager | Position sizing by capital + risk % |
| 10 | π¬ AI Market Chat | Ask anything, AI answers with live data |
| 11 | π‘οΈ Sentiment Heatmap | Market mood across all 27 assets |
| 12 | π° Live News Feed | Real-time news filtered by asset |
| 13 | π Leaderboard | Top traders ranked by signals + P&L |
| 14 | π± PWA β Offline | Install on phone, works without internet |
| 15 | π Forgot Password | Secure email reset link (1 hour expiry) |
| 16 | π€ User Avatar | Professional navbar with user initial |
| 17 | π Phone + Country Code | Contact form with 20 country flags |
| 18 | π‘οΈ Admin Dashboard | Real-time stats (admin only) |
/ β Landing page (public)
/login β Sign in
/register β Create account
/forgot-password β Request reset link
/reset-password β Set new password
/dashboard β Main app (protected)
/markets β All markets overview
/markets/crypto β Cryptocurrency
/markets/forex β Forex pairs
/markets/stocks β US Stocks
/markets/commodities β Gold, Silver, Oil
/markets/indices β S&P, NASDAQ, Dow
/learn β Trading education
/news β Market news
/leaderboard β Top traders
/about β About page
/contact β Contact form
/privacy β Privacy policy
/terms β Terms of service
/admin β Admin panel
/offline β PWA offline page
Next.js 14 (App Router) TypeScript Tailwind CSS
NextAuth.js (JWT) TradingView v5 Recharts
Web3Forms (email) Vercel Analytics PWA
FastAPI (Python) SQLAlchemy ORM PostgreSQL (Neon)
Pydantic v2 bcrypt python-jose (JWT)
httpx secrets smtplib
Vercel β Frontend hosting (free)
Render β Backend API (free)
Neon β PostgreSQL cloud (free)
Web3Forms β Contact + reset emails (free)
git clone https://github.com/khanzadigithubid/Trading-Copilot.git
cd Trading-Copilotcd backend
python -m venv .venv
# Windows
.venv\Scripts\activate
# Mac/Linux
source .venv/bin/activate
pip install -r requirements.txtDATABASE_URL=sqlite:///./trading_copilot.db
SECRET_KEY=your-32-char-secret-key
CORS_ORIGINS=http://localhost:3000
# Free AI (get key at openrouter.ai/keys)
OPENROUTER_API_KEY=sk-or-...
OPENROUTER_MODEL=google/gemma-4-26b-a4b-it:free
# Market Data
TWELVE_DATA_API_KEY=your-key
POLYGON_API_KEY=your-key
NEWS_API_KEY=your-key
# Admin access
ADMIN_EMAIL=[email protected]
# Password reset emails
WEB3FORMS_KEY=your-key
FRONTEND_URL=http://localhost:3000uvicorn app.main:app --reload --port 8000
# API Docs: http://localhost:8000/docscd frontend
npm installNEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=any-random-32-char-string
NEXT_PUBLIC_API_URL=http://localhost:8000npm run dev
# App: http://localhost:30001. render.com β New Web Service
2. Connect GitHub repo
3. Root Directory: backend
4. Build: pip install -r requirements.txt
5. Start: uvicorn app.main:app --host 0.0.0.0 --port $PORT
6. Add env vars β Deploy
1. vercel.com β Import repo
2. Root Directory: frontend
3. Add env vars:
NEXTAUTH_URL = https://your-app.vercel.app
NEXTAUTH_SECRET = random-32-char-string
NEXT_PUBLIC_API_URL = https://your-backend.onrender.com
4. Deploy
| Method | Endpoint | Description |
|---|---|---|
GET |
/health |
Health check |
POST |
/auth/register |
Create account |
POST |
/auth/login |
Login + get JWT |
GET |
/auth/me |
Current user info |
POST |
/auth/refresh |
Refresh JWT token |
POST |
/auth/forgot-password |
Send reset email |
POST |
/auth/reset-password |
Set new password |
GET |
/assets |
List 27 assets |
GET |
/assets/{symbol}/price |
Live price |
GET |
/assets/{symbol}/history |
OHLCV data |
GET |
/signals/{symbol} |
AI signal |
GET |
/signals/{symbol}/mtf |
Multi-timeframe |
POST |
/backtest/run |
Run backtest |
POST |
/chat/query |
AI market chat |
GET |
/portfolio/stats |
Analytics |
GET |
/journal |
Trade journal |
GET |
/sentiment |
Sentiment data |
GET |
/news |
News feed |
GET |
/leaderboard |
Top traders |
GET |
/community/feed |
Community signals |
POST |
/contact |
Contact form |
GET |
/admin/stats |
Admin analytics |
WS |
/ws/prices |
Live prices |
π Full interactive docs: https://trading-copilot-api-okr7.onrender.com/docs
Trading-Copilot/
β
βββ π backend/
β βββ app/
β β βββ core/
β β β βββ config.py # All settings + env vars
β β β βββ database.py # SQLAlchemy engine
β β β βββ security.py # JWT + bcrypt
β β βββ models/
β β β βββ user.py # User + reset token
β β β βββ trade.py # Paper trades
β β β βββ alert.py # Price alerts
β β β βββ signal.py # Cached AI signals
β β β βββ asset.py # 27 market assets
β β β βββ community_signal.py
β β β βββ sentiment_log.py
β β βββ routers/ # 20+ API endpoints
β β β βββ auth.py # Login/register/reset
β β β βββ signals.py # AI signals
β β β βββ trades.py # Paper trading
β β β βββ portfolio.py # Analytics
β β β βββ backtest.py # Strategy testing
β β β βββ chat.py # AI chat
β β β βββ alerts.py # Price alerts
β β β βββ journal.py # Trade journal
β β β βββ community.py # Social signals
β β β βββ contact.py # Contact form
β β β βββ admin.py # Admin stats
β β βββ services/
β β βββ market_data/ # KuCoin/Polygon/TwelveData
β β βββ claude_client.py # AI provider wrapper
β β βββ backtest_engine.py
β β βββ risk_manager.py
β βββ requirements.txt
β
βββ π frontend/
βββ src/
β βββ app/ # 21 pages
β β βββ dashboard/ # Main trading app
β β βββ markets/ # 5 market pages
β β βββ forgot-password/ # Reset request
β β βββ reset-password/ # Set new password
β β βββ contact/ # Web3Forms contact
β β βββ ...
β βββ components/ # 15+ React components
β β βββ AssetDashboard # 27 assets table
β β βββ SignalPanel # AI signals
β β βββ CandlestickChart # TradingView chart
β β βββ PaperTradingPanel # Virtual trading
β β βββ PortfolioPanel # Analytics
β β βββ BacktestPanel # Backtester
β β βββ ChatPanel # AI chat
β β βββ ChatWidget # Floating bubble
β β βββ MobileNav # Mobile hamburger
β βββ lib/
β β βββ auth.ts # NextAuth config
β β βββ api.ts # API fetch wrapper
β βββ types/
β βββ next-auth.d.ts # Auth type defs
βββ public/ # PWA icons + manifest
This platform is for educational purposes only.
- β Does NOT execute real trades
- β AI signals are NOT financial advice
- β Past performance does NOT guarantee future results
- β Paper trading uses virtual money only
- β Always do your own research
MIT License β free to use, modify, and distribute with attribution.