How bhupesh-debug/ml-project-portfoliofuture-substai works
PortfolioFuture-SubstAI combines an interactive fund and market intelligence product with market-data services and a fund-substitution analytics framework. The main market workflow is user-initiated quote or history requests, validated and served through the API and market-data service, then cached or delegated to a provider; indicator requests calculate analytics from retrieved history. The dashboard, allocation calculator, and institutional distribution views are documented capabilities. Source evidence is sampled for the API and market-data modules; dashboard and several analytics links rely on README documentation or are omitted where implementation wiring is not shown.
Main entry points: service.py Market data service · data_pipeline.py Fund and holdings loaders · api.py REST API · feature_engineering.py Substitution features
Components 18
User Applications
- Dashboard and quant hub
app.py - Standalone web hub
index.html - REST API
src/api.py
Market Data Services
- Market data service
src/market_data/service.py - Request and response schemas
src/market_data/schemas.py - SQLite market cache
src/market_data/cache.py - Provider interface
src/market_data/provider_base.py - Yahoo Finance adapter
src/market_data/yfinance_provider.py - Mock market provider
src/market_data/mock_provider.py - Technical indicators
src/market_analytics.py
Fund Intelligence
- Fund and holdings loaders
src/data_pipeline.py - Substitution features
src/feature_engineering.py - Substitution classifier
src/model.py - Model and fee evaluation
src/evaluate.py - Real dataset builder
src/build_real_datasets.py
Data Assets
- Fund profiles
data/processed/fund_universe_profiles_real.csv - 13F and RIA holdings
data/processed/sec_13f_ria_ownership_real.csv
Other components
- Investor or analyst
Connections 23
- Investor or analyst → Dashboard and quant hub: uses
README.md - Investor or analyst → Standalone web hub: uses
README.md - Investor or analyst → REST API: requests data
README.md - REST API → Market data service: fetches quotes or history
src/api.py - REST API → Request and response schemas: validates and returns
src/api.py - REST API → Technical indicators: calculates indicators
src/api.py - REST API → Fund and holdings loaders: loads symbol universe
src/api.py - Market data service → Request and response schemas: validates symbols
src/market_data/service.py - Market data service → SQLite market cache: reads and writes
src/market_data/service.py - Market data service → Provider interface: delegates fetches
src/market_data/service.py - Market data service → Yahoo Finance adapter: selects provider
src/market_data/service.py - Market data service → Mock market provider: selects provider
src/market_data/service.py - Yahoo Finance adapter → Provider interface: implements
src/market_data/yfinance_provider.py - Mock market provider → Provider interface: implements
src/market_data/mock_provider.py - Fund and holdings loaders → Fund profiles: loads profiles
src/data_pipeline.py - Fund and holdings loaders → 13F and RIA holdings: loads holdings
src/data_pipeline.py - Substitution features → Fund and holdings loaders: loads profiles
src/feature_engineering.py - Substitution classifier → Fund and holdings loaders: uses fund data
src/model.py - Substitution classifier → Substitution features: uses features
src/model.py - Model and fee evaluation → Fund and holdings loaders: loads funds and holdings
src/evaluate.py - Model and fee evaluation → Substitution features: extracts test features
src/evaluate.py - Real dataset builder → Fund profiles: builds profiles
- Real dataset builder → 13F and RIA holdings: builds holdings