Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephanakkerman/binance-stop-loss-alert
Sends a message using Telegram if a sell order on Binance has been filled
https://github.com/stephanakkerman/binance-stop-loss-alert
binance binance-api binance-exchange stop-loss telegram telegram-api telegram-bot telegram-bot-api trading
Last synced: about 1 month ago
JSON representation
Sends a message using Telegram if a sell order on Binance has been filled
- Host: GitHub
- URL: https://github.com/stephanakkerman/binance-stop-loss-alert
- Owner: StephanAkkerman
- License: mit
- Created: 2021-09-21T09:23:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-21T10:22:39.000Z (about 3 years ago)
- Last Synced: 2024-05-02T00:56:54.962Z (8 months ago)
- Topics: binance, binance-api, binance-exchange, stop-loss, telegram, telegram-api, telegram-bot, telegram-bot-api, trading
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Binance Stop Loss Alert
[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![MIT License](https://img.shields.io/github/license/StephanAkkerman/Binance_Stop_Loss_Alert.svg?color=brightgreen)](https://opensource.org/licenses/MIT)---
## Setup
- Clone this repository.
- Fill in the your API keys in `src/binance_keys.py`
- EXTRA: If you are planning on using Futures, make sure these are enabled in Binance API management
- Follow the link in binance_keys.py to get your Telegram bot and its keys
- Run `$ python src/main.py`
- See result## When does it send a message?
If a sell order has been filled that is not a market sell order, the user socket will notice this and sends a message via Telegram.
So it works for Limit, Stop Limit and OCO.## Dependencies
The required packages to run this code can be found in the `requirements.txt` file. To run this file, execute the following code block:
```
$ pip install -r requirements.txt
```
Alternatively, you can install the required packages manually like this:
```
$ pip install
```## Note
This works for all Binance trading platforms, except isolated margin.