How sagargupta16/stocksage-ai works
StockSage-AI is a planned Indian-market paper-trading, prediction, and competition platform; the README says the repository is currently an empty scaffold, so these are intended capabilities rather than verified runtime behavior. The principal workflow is a user viewing market information, requesting predictions, placing virtual trades, and tracking portfolio results; leaderboard rankings and the autonomous AI trader are additional product branches. Source excerpts are empty, so relationships rely on README descriptions, with uncertain implementation links left dashed.
Main entry points: main.py FastAPI application · api.ts API client · celery_app.py Scheduled jobs · fetcher.py Market and news data
Components 23
Web application
- Web interface
frontend/app/(dashboard)/dashboard/page.tsx - Stock views
frontend/app/(dashboard)/stocks/page.tsx - Trading view
frontend/app/(dashboard)/ai-trader/page.tsx - Portfolio view
frontend/app/(dashboard)/portfolio/page.tsx - Leaderboard view
frontend/app/(dashboard)/leaderboard/page.tsx - API client
frontend/lib/api.ts
API and trading
- FastAPI application
backend/app/main.py - Authentication
backend/app/routers/auth.py - Market data service
backend/app/services/stock_service.py - Prediction service
backend/app/services/ml_service.py - Paper trading
backend/app/services/trading_service.py - Portfolio analytics
backend/app/services/portfolio_service.py - Rankings
backend/app/services/leaderboard_service.py - Application database
backend/app/database.py
Prediction pipeline
- Market and news data
backend/ml/data/fetcher.py - Feature engineering
backend/ml/features/builder.py - Prediction models
backend/ml/models/ensemble.py - Model inference
backend/ml/inference/predictor.py - Model training
backend/ml/training/train.py
Background work
- Scheduled jobs
backend/tasks/celery_app.py
Other components
- User
- Market and news sources
- Autonomous AI trader
Connections 27
- User → Web interface: uses
- Web interface → API client: requests data
- API client → FastAPI application: calls API
- FastAPI application → Authentication: routes authentication
- FastAPI application → Market data service: serves market data
- FastAPI application → Prediction service: serves predictions
- FastAPI application → Paper trading: processes trades
- FastAPI application → Portfolio analytics: serves portfolios
- FastAPI application → Rankings: serves rankings
- Paper trading → Application database: stores orders
- Portfolio analytics → Application database: reads portfolio
- Rankings → Application database: reads rankings
- Stock views → API client: requests stock data
- Trading view → API client: requests predictions
- Portfolio view → API client: requests portfolio
- Leaderboard view → API client: requests rankings
- Prediction service → Model inference: requests predictions
- Model inference → Prediction models: uses models
- Market and news data → Market and news sources: fetches data
- Market and news data → Feature engineering: provides data
- Feature engineering → Prediction models: builds model inputs
- Model training → Feature engineering: uses features
- Model training → Prediction models: trains models
- Scheduled jobs → Market and news data: schedules fetching
- Scheduled jobs → Model training: schedules retraining
- Scheduled jobs → Rankings: updates rankings
- Autonomous AI trader → Paper trading: places virtual trades