Binance spot trading bot
Easy-to-use multi-strategic automatic trading for Binance Spot with Telegram integration
Easy-to-use multi-strategic automatic trading for Binance Spot with Telegram integration The project is written primarily in Python, first published in 2022. Key topics include: algo-trading, auto-trading, binance, binance-api, binance-bot.
Binance Spot Trading Bot
Easy-to-use multi-strategic automatic trading for Binance Spot with Telegram integration
Features
- You can run it fast and it's easy to use.
- This project can handle multiple strategies at the same time.
- There are no complexities and no database usage in this project. Even dependencies are a few.
- It's easy for modifying and customization.
- You can read the code for educational purposes.
- You can be notified with Telegram messages
Run
- Clone the repository.
- Generate a Binance API key (with Spot access) and put it in your custom
.env. - Run
pip3 install -r requirements.txt. - Run
python3 main.py.
This will run an example bot on trading Bitcoin and Ethereum.
Config
To write custom bots you can:
- Define new indicators in
indicators.py. - Define a new strategy in
main.py(especially insideis_it_time_to_sell
andis_it_time_to_buyfunctions). - Config your bot settings in
config.py.
Telegram Config
- Firstly, you need to create a Telegram bot, so talk to @botfather.
- Secondly, need to know your own Telegram user ID, so the bot will know who to send messages to. Talk
to @userinfobot to get this information. - Thirdly, you have to
/startyour bot. Open up a private message with your bot by searching its username, then hit
the start button. - Finally, set
TELEGRAM_API_KEYincredentials.py, andSEND_TELEGRAM_MESSAGEandTELEGRAM_USER_ID_LIST
inconfig.py.
See Also
To-do
- Add more indicators to
indicators.py. - Find a better way for handling error codes.
Credits
Contributors
Showing top 1 contributor by commit count.
This article is auto-generated from smzerehpoush/binance-spot-trading-bot via the GitHub API.Last fetched: 6/28/2026
