Skip to content

Sends a message using Telegram if a sell order on Binance has been filled

License

Notifications You must be signed in to change notification settings

StephanAkkerman/binance-stop-loss-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Binance Stop Loss Alert

Python 3.8 Code style: black MIT License


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 <package>

Note

This works for all Binance trading platforms, except isolated margin.

Releases

No releases published

Packages

No packages published

Languages