A Streamlit-based web application for analyzing financial portfolio data with a focus on performance metrics and visualizations.
- CSV file upload functionality
- Configurable risk-free rate
- Comprehensive performance metrics:
- Annualized returns
- Volatility
- Sharpe ratio
- Maximum drawdown
- Interactive visualizations:
- Price charts
- Returns distribution
- Returns over time
- Clone this repository
- Install the required dependencies:
pip install -r requirements.txt
- Run the Streamlit app:
streamlit run st.py
-
Using the app:
- Upload your CSV file using the sidebar uploader
- Select the price column from your data
- Adjust the risk-free rate using the slider
- View the analysis results and visualizations
-
Default behavior:
- If no file is uploaded, the app will use the default "Gold Price.csv" data
- The default risk-free rate is set to 3%
Your CSV file should contain at least one column with price data. The app will automatically detect columns and allow you to select the appropriate price column for analysis.