The Asset Correlation Tracker is a simple web application that allows users to visualize the historical correlation between different assets. The correlations are calculated over several rolling time horizons (30, 60, 90, 180, 360 days; 1 year, 3 years). The charts are based on daily closing prices over the past five years.
To get a local copy up and running, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/your-username/asset-correlation-tracker.git
- Navigate to the project directory:
cd asset-correlation-tracker
- Install the required Python packages:
pip install yfinance pandas numpy plotly
- Run the Python script to generate the correlation charts:
python correlation.py
- Start a local HTTP server:
python -m http.server
- Open your web browser and go to
http://localhost:8000
.
Select two assets from the dropdown menus and click "Update Chart" to view their historical correlation. The chart will display the correlation over several rolling time horizons.
The .github directory contains an update.yml file to automate updating the charts by using Github Actions.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.