CyberPunkMetalHead / binance-trading-bot-new-coins

This Binance trading bot detects new coins as soon as they are listed on the Binance exchange and automatically places sell and buy orders. It comes with trailing stop loss and other features. If you like this project please consider donating via Brave.
MIT License
1.46k stars 269 forks source link

improvement: exit grafecully #15

Closed mevljas closed 2 years ago

mevljas commented 2 years ago

Exit gracefully when pressing CTRL+C (sending kill signal).

The current version doesn't handle the SIGINT signal and throws an error. I think it's a better approach to handle the signal and also handle any cleanup if needed.