How rakeshreddy26-bit/stock-prediction-py works
This repository is a stock-market prediction product with CLI workflows and a FastAPI service. The main user flow is to request training, prediction, evaluation, or backtesting for a ticker; the CLI dispatches its operations to the shared core, while the API exposes history, indicator, model, prediction, tuning, and backtest endpoints. The README also describes a charting UI and multiple model choices, but their implementation is not present in the supplied tree. Edges reflect sampled calls or documented capabilities; unsampled implementation details are not inferred.
Main entry points: core.py Prediction Core · stock_market_prediction.py Prediction CLI · main.py FastAPI Service · ui Prediction UI
Components 15
User Interfaces
- Prediction CLI
stock_market_prediction.py - FastAPI Service
src/api/main.py
Prediction Workflows
- Prediction Core
src/core.py - Market Data
src/core.py - Indicators and Features
src/core.py - Model Training
stock_market_prediction.py - Price Prediction
src/core.py - Model Evaluation
src/core.py - Walk-Forward Backtest
src/core.py - Model Bundles
src/core.py - Reports
stock_market_prediction.py
Results Presentation
- Prediction UI
src/ui
Other components
- CLI User
- API Client
- Market Data Provider
Connections 14
- CLI User → Prediction CLI: runs command
README.md - API Client → FastAPI Service: calls endpoints
README.md - Prediction CLI → Prediction Core: imports core
stock_market_prediction.py - FastAPI Service → Prediction Core: imports core
src/api/main.py - Prediction Core → Market Data: loads prices
src/core.py - Prediction Core → Indicators and Features: computes features
src/core.py - Prediction CLI → Model Training: trains models
README.md - Prediction Core → Price Prediction: predicts prices
README.md - Prediction Core → Model Evaluation: evaluates models
README.md - Prediction Core → Walk-Forward Backtest: backtests models
README.md - Prediction Core → Model Bundles: loads bundles
src/core.py - Prediction CLI → Reports: writes reports
stock_market_prediction.py - FastAPI Service → Prediction UI: serves prediction features
README.md - Market Data Provider → Market Data: provides prices
README.md