Spaces:
Sleeping
Sleeping
| title: NSE Portfolio Optimizer Pro | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: streamlit | |
| sdk_version: "1.51.0" | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| python_version: "3.11" | |
| # π NSE Portfolio Optimizer Pro | |
| **Real-time Portfolio Optimization for Indian Stock Market** | |
| Built with Modern Portfolio Theory and advanced analytics. | |
| ## β¨ Features | |
| ### Portfolio Selection | |
| - π **Live NIFTY 50** - Auto-fetched current constituents | |
| - π― **7 Sector Categories** - Banking, IT, FMCG, Pharma, Energy, Auto, Metals | |
| - β¨ **Custom Portfolio** - Add your own stocks | |
| ### Advanced Analytics | |
| - π² **Monte Carlo Simulation** - 1000+ scenario analysis | |
| - β οΈ **Value at Risk (VaR)** - Downside risk quantification | |
| - π **Efficient Frontier** - Interactive risk-return visualization | |
| - π **Rolling Metrics** - Time-series performance analysis | |
| - π **Drawdown Analysis** - Peak-to-trough decline tracking | |
| - π **Risk Contribution** - Individual stock risk breakdown | |
| ### Real-Time Data | |
| - πΉ **Live Market Data** - Current prices, volumes, 52-week ranges | |
| - π·οΈ **Automatic Sector Detection** - Using yfinance API | |
| - π **Smart Caching** - Fast performance with fresh data | |
| ### Interactive Results | |
| - 6 analysis tabs with professional visualizations | |
| - Export CSV reports for further analysis | |
| - Mobile-responsive interface | |
| ## π How to Use | |
| 1. **Select Portfolio Mode** | |
| - Live NIFTY 50 | |
| - Sector Focus (7 categories) | |
| - Custom Selection | |
| 2. **Configure Investment** | |
| - Investment amount (βΉ) | |
| - Historical data period | |
| - Risk parameters | |
| 3. **Analyze Results** | |
| - Allocation by sector | |
| - Efficient frontier plot | |
| - Monte Carlo scenarios | |
| - Risk metrics | |
| - Rolling performance | |
| - Live market data | |
| ## π Technologies | |
| - **Streamlit 1.51.0** - Web framework | |
| - **yfinance** - Market data | |
| - **CVXPY** - Portfolio optimization | |
| - **Plotly** - Interactive charts | |
| - **NumPy/Pandas** - Data processing | |
| - **SciPy** - Statistical analysis | |
| ## π Methodology | |
| **Modern Portfolio Theory (Markowitz, 1952)** | |
| - Mean-Variance Optimization | |
| - Sharpe Ratio Maximization | |
| - Efficient Frontier Construction | |
| - Monte Carlo Risk Simulation | |
| ## β οΈ Disclaimer | |
| **Educational purposes only.** This tool is for learning and research. It does not constitute financial advice. Always consult a qualified financial advisor before making investment decisions. Past performance does not guarantee future results. | |
| ## π License | |
| MIT License | |
| --- | |
| **Built with β€οΈ for Indian Stock Market Investors** |