An open API service indexing awesome lists of open source software.

https://github.com/volpigiuliano/portfolio-heap-map


https://github.com/volpigiuliano/portfolio-heap-map

correlation heap-map portfolio yfinance

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# Portfolio Heap Map

This notebook creates a heap map showing the correlation matrix of the asset returns of our choosing. The historical data comes from the Yahoo Finance API

![1706789572329](image/README/1706789572329.png)

## Setup

The notebook uses these two external libraries, it is very important to have the last version of `yfinance`.

```bash
!pip install yfinance
```

```bash
!pip install ipywidgets
```

In some types of notebooks (like Colab) the `%matplotlib` widget can create headaches so it is better to just comment it like this:

![1706788828177](image/README/1706788828177.png)

## How to use it

+ Run the `Setup` and `Interaction` groups
+ Choose the assets and the period of interest
+ Run the `Calculations` and `Plot` groups

![1706804524561](image/README/1706804524561.png)