InvestEARN

📊 Mutual Fund Portfolio X-Ray

A Streamlit-based application that analyzes mutual fund portfolios from CAMS/KFintech statements and provides actionable insights for optimization.

Features

Portfolio Reconstruction

📈 Key Metrics Analysis

🔍 Overlap Detection

💡 Smart Recommendations

💰 Impact Analysis

Quick Start

Installation

  1. Install Python 3.8 or higher (if not already installed)

  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Run the application:
    streamlit run app.py
    

The app will open in your browser at http://localhost:8501

How to Use

Option 1: Upload Your Statement

  1. Select “Upload PDF Statement” from the sidebar
  2. Upload your CAMS or KFintech mutual fund statement (PDF format)
  3. The app will automatically extract your portfolio data

Option 2: View Sample Portfolio

  1. Select “Sample Portfolio” from the sidebar
  2. Explore the analysis with pre-loaded sample data

Understanding the Output

📊 Summary Tab

📈 Metrics Tab

🎯 Recommendations Tab

📋 Detailed Holdings Tab

Supported Statement Formats

Currently supports multiple file formats:

How to Download Your Statement

Option 1: PDF Statement

  1. Log in to CAMS MF or KFintech portal
  2. Go to My Portfolios or Statements
  3. Select date range and Download PDF
  4. Upload to the app

Option 2: CSV Export

  1. Log in to your MF dashboard
  2. Navigate to Portfolio or Holdings
  3. Look for Export or Download
  4. Select CSV format
  5. Upload the exported file

Option 3: Excel Export

  1. Log in to your MF dashboard
  2. View your Portfolio Holdings
  3. Select Export to Excel or Download as Excel
  4. Upload the XLSX/XLS file

File Format Requirements

CSV Format

Your CSV file should have these columns (names can vary slightly):

Fund Name,Units,NAV,Current Value
Axis Bluechip Fund - Direct Growth,150,45.32,6798
SBI Smallcap Fund - Direct Growth,75,52.15,3911.25

Excel Format

Your Excel file should have similar columns in the first sheet:

| Fund Name                              | Units | NAV   | Current Value |
|----------------------------------------|-------|-------|---------------|
| Axis Bluechip Fund - Direct Growth     | 150   | 45.32 | 6798          |
| SBI Smallcap Fund - Direct Growth      | 75    | 52.15 | 3911.25       |

PDF Format

The app automatically extracts text from PDF statements. Ensure:

Note: The app intelligently detects column names, so exact naming isn’t critical. Common variations are automatically recognized.

Key Metrics Explained

Expense Ratio (ER)

XIRR (Extended Internal Rate of Return)

Overlap Analysis

Allocation Categories

Recommendation Strategy

The app recommends rebalancing based on:

  1. Asset Allocation Balance
    • Optimal: 65% Equity, 20% Debt, 15% Liquid
    • Adjust based on your age and risk appetite
  2. Overlap Reduction
    • Max 1-2 funds per category
    • Consolidate when overlap > 50%
  3. Expense Optimization
    • Portfolio ER should be < 0.65%
    • Target 0.50% or lower
  4. Diversification
    • Maintain 5-7 funds across categories
    • Avoid concentrated positions

Example Recommendations

✅ Reduce Equity Exposure

If equity >75%

✅ Reduce Small Cap Fund Overlap

If 3+ small cap funds

✅ High Expense Ratio Drag

If portfolio ER > 0.75%

Important Disclaimers

⚠️ This tool provides educational insights only:

Troubleshooting

PDF Upload Issues

Missing Fund Data

Recommendation Not Applicable

Data Privacy

Your data stays private:

Future Enhancements

🚀 Planned features:

Support & Feedback

For issues or feature requests:

  1. Check the troubleshooting section above
  2. Verify your statement format is supported
  3. Try the sample portfolio for comparison

License & Attribution

This tool is designed for retail Indian investors to better understand their mutual fund portfolios.


Happy Investing! 🎯📈

Remember: The best portfolio is one you understand and can stick with through market cycles.