Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephanakkerman/liquidations-chart
Coinglass's total liquidation chart open-sourced
https://github.com/stephanakkerman/liquidations-chart
binance bitcoin btc chart charting charts crypto cryptocurrency financial-analysis indicator liquidation total-liquidations
Last synced: about 1 month ago
JSON representation
Coinglass's total liquidation chart open-sourced
- Host: GitHub
- URL: https://github.com/stephanakkerman/liquidations-chart
- Owner: StephanAkkerman
- License: mit
- Created: 2024-06-14T17:14:19.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-23T16:23:31.000Z (6 months ago)
- Last Synced: 2024-06-23T17:36:43.539Z (6 months ago)
- Topics: binance, bitcoin, btc, chart, charting, charts, crypto, cryptocurrency, financial-analysis, indicator, liquidation, total-liquidations
- Language: Python
- Homepage:
- Size: 355 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Total Liquidation Chart 📊
This is a simple Python script that generates a liquidation chart for Bitcoin using the style of [Coinglass](https://www.coinglass.com/LiquidationData). The total liquidation chart provides an overview of the short and long liquidations as well as the corresponding BTC price on that day. The settings can be adjusted to also use other cryptocurrencies listed on Binance. The resulting plot can be used as an indicator to determine when to buy or sell Bitcoin. The chart is generated using the matplotlib library in Python.
---
## Introduction
I have previously recreated this chart for my [fintwit-bot](https://github.com/StephanAkkerman/fintwit-bot), unfortunately coinglass removed their API so I had to recreate it using other sources. I used the chart found on [Coinglass](https://www.coinglass.com/LiquidationData) as a reference. The data is fetched using [Binance Public Data](https://github.com/binance/binance-public-data/) and new data is added which each run.
## 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. The chart shows the total liquidations for Bitcoin over the past 180 days.
![Liquidation Chart](img/liquidation_chart.png)### References 📚
The following image was used as a reference to create the liquidation chart.
![Liquidation Chart Reference](img/liquidation_chart_reference.png)## 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:
- [Bitcoin Rainbow Chart](https://github.com/StephanAkkerman/bitcoin-rainbow-chart)
- [Live Binance Charts](https://github.com/StephanAkkerman/live-binance-charts)