https://github.com/stephanakkerman/spy-heatmap
The popular S&P 500 heatmap / treemap open-sourced
https://github.com/stephanakkerman/spy-heatmap
finance financial-analysis heatmap python sp500 spy stock stocks treemap visualization
Last synced: over 1 year ago
JSON representation
The popular S&P 500 heatmap / treemap open-sourced
- Host: GitHub
- URL: https://github.com/stephanakkerman/spy-heatmap
- Owner: StephanAkkerman
- License: mit
- Created: 2024-08-02T12:16:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-01T15:54:07.000Z (almost 2 years ago)
- Last Synced: 2025-03-10T05:53:53.638Z (over 1 year ago)
- Topics: finance, financial-analysis, heatmap, python, sp500, spy, stock, stocks, treemap, visualization
- Language: Python
- Homepage:
- Size: 1.21 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# S&P 500 Heatmap 📊
This project is a simple Python script that generates a heatmap of the S&P 500 index using the data from the Unusual Whales API. It is meant to look like the heatmap on the [Unusual Whales website](https://unusualwhales.com/heatmaps). You can save the heatmap as an image or open the dashboard to have a more detailed look into all the values.
---
## Introduction
If you have traded stocks you have probably come across the S&P 500 index and the heatmaps that are used to visualize the performance of the index. It provides a quick overview of the performance of the index and can be used to identify trends and patterns. Many sites provide these heatmaps, but I wanted to create my version using Python.
## Installation ⚙️
The required packages to run this code can be found in the requirements.txt file. To run this file, execute the following code block after cloning the repository:
```bash
pip install -r requirements.txt
```
## Usage ⌨️
To generate the chart, simply run the script using the following command:
```bash
python src/main.py
```
## Example 📊
The following chart is an example of the output generated by the script.

### References 📚
The following image was used as a reference to create this heatmap.

## Other Projects 📦
This project is part of a series of projects that I have created. You can find the other projects in the following list:
- [Total Liquidation Chart](https://github.com/StephanAkkerman/liquidations-chart)
- [Bitcoin Rainbow Chart](https://github.com/StephanAkkerman/bitcoin-rainbow-chart)
- [Live Binance Charts](https://github.com/StephanAkkerman/live-binance-charts)
- [RSI Heatmap](https://github.com/StephanAkkerman/crypto-rsi-heatmap)
- [Funding Rate Heatmap](https://github.com/StephanAkkerman/funding-rate-heatmap)