All Projects → lorcalhost → BTB-manager-telegram

lorcalhost / BTB-manager-telegram

Licence: MIT license
A feature packed but easy-to-use Telegram bot for remotely managing Binance Trade Bot instances

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to BTB-manager-telegram

Bybit-Auto-Trading-Bot-Ordes-placed-via-TradingView-Webhook
Python based Trading Bot that uses TradingView.com webhook JSON alerts to place orders(buy/sell/close/manage positions/TP/SL/TS etc.) on Bybit.com. Hire me directly here https://www.freelancer.com/u/Beannsofts for any assistance
Stars: ✭ 235 (-30.27%)
Mutual labels:  trading, telegram-bot, binance
binance-downloader
Python tool to download Binance Candlestick (k-line) data from REST API
Stars: ✭ 44 (-86.94%)
Mutual labels:  trading, binance
btrader
Triangle arbitrage trading bot for Binance
Stars: ✭ 197 (-41.54%)
Mutual labels:  trading, binance
wolf
🐺 Binance trading bot for node.js
Stars: ✭ 76 (-77.45%)
Mutual labels:  trading, binance
Blankly
🚀 💸 Easily build, backtest and deploy your algo in just a few lines of code. Trade stocks, cryptos, and forex across exchanges w/ one package.
Stars: ✭ 1,456 (+332.05%)
Mutual labels:  trading, binance
binance-rs-async
Async client for the Binance APIs
Stars: ✭ 74 (-78.04%)
Mutual labels:  trading, binance
pancakeswap-prediction-winner
🔥 PancakeSwap is afraid of this CHROME EXTENSION (and CLI)! This bot wins almost every 5 minute BNB-USD option on PancakeSwap (and Candle Genie).
Stars: ✭ 229 (-32.05%)
Mutual labels:  trading, binance
Trading Server
A multi-asset, multi-strategy, event-driven trade execution and management platform for running many algorithms/bots at many venues simultaneously with unified risk management and reporting. Uses MongoDB for storage and Telegram for user notifications/trade consent.
Stars: ✭ 191 (-43.32%)
Mutual labels:  trading, binance
backtrading-python-binance
Backtesting several trading strategy and rank them according their profit return.
Stars: ✭ 108 (-67.95%)
Mutual labels:  trading, binance
Twitter Activated Crypto Trading Bot
Buys crypto through keyword detection in new tweets. Executes buy in 1 second and holds for a given time (e.g. Elon tweets 'doge', buys Dogecoin and sells after 5 minutes). Tested on Kraken and Binance exchanges
Stars: ✭ 92 (-72.7%)
Mutual labels:  trading, binance
abot
A-Bot - бот для торговли на Binance
Stars: ✭ 65 (-80.71%)
Mutual labels:  trading, binance
Cryptotrader
A cryptocurrency trader for all famous exchanges
Stars: ✭ 228 (-32.34%)
Mutual labels:  trading, binance
Binance Trader
Experimental trading bot for crypto currency on Binance.com
Stars: ✭ 218 (-35.31%)
Mutual labels:  trading, binance
binance-watch
This application connects to the Binance.com public API to get live 24h price change data for all crypto trading pairs on their platform and allows you to set custom alerts or watch for price change in real time and get desktop notifications when something triggers your alerts or price watch settings.
Stars: ✭ 176 (-47.77%)
Mutual labels:  trading, binance
Bbgo
The modern cryptocurrency trading bot written in Go.
Stars: ✭ 192 (-43.03%)
Mutual labels:  trading, binance
Mida
The open-source and cross-platform trading framework
Stars: ✭ 263 (-21.96%)
Mutual labels:  trading, binance
binance-pump-bot
Automation for Binance p&d(pump and dump) activity, ensures fastest purchase and provides auto selling functionality to lockdown profit during these events.
Stars: ✭ 112 (-66.77%)
Mutual labels:  trading, binance
Binance Rs
Rust Library for the Binance API
Stars: ✭ 164 (-51.34%)
Mutual labels:  trading, binance
Krypto Trading Bot
Self-hosted crypto trading bot (automated high frequency market making) written in C++
Stars: ✭ 2,589 (+668.25%)
Mutual labels:  trading, binance
tradingview-alert-binance-trader
This trading bot listens to the TradingView alert emails on your inbox and executes trades on Binance based on the parameters set on the TD alerts.
Stars: ✭ 153 (-54.6%)
Mutual labels:  trading, binance

Binance Trade Bot Manager Telegram

A Telegram bot for remotely managing Edendg23's Binance Trade Bot and its forks (Idkravitz's, Tntwist's, MasaiasuOse's being the major forks).

This program aims to be an easy way of managing Binance Trade Bot so that I wouldn't have to constantly ssh into my VPS, and my non-techy friends could enjoy the benefits of automated trading.

This program supports only Linux and WSL. Other distributions (BSD, MacOS, Windows, ...) are unmainted and support is not currently planned and is supposed to run 24/7. If you can't have a long running computer on linux, you can use a free VPS, such as Oracle Cloud's.

Manual install

Python 3.7, 3.8 or 3.9 is required.

0 - Create a dedicated folder

Create a dedicated directory for the binance trade bot and the present manager. In this tutorial, we will be using as an example the folder ~/trading-bot:

cd ~
mkdir trading-bot

1 - Install binance trade bot.

Choose the fork you want to use. The main one (Edendg23's) is fine to go with.

Place youself in the previously created directory, e.g.:

cd ~/trading-bot

Then follow the install instruction given on the binance-trade-bot's readme. Setup telegram bot during the install of binance-trade-bot (see the section Notifications with Apprise in the README)

Once the binance-trade-bot has been installed, make sure everything is properly installed : the following commands should yeild no errors.

cd ~/trading-bot
ls binance-trade-bot/binance_trade_bot/__main__.py
ls binance-trade-bot/config/apprise.yml

2 - Install the telegram manager next to the binance trade bot

As always, place youself in the install directory, e.g.:

cd ~/trading-bot

Then, run the following lines:

git clone https://github.com/lorcalhost/BTB-manager-telegram.git
cd BTB-manager-telegram
python3 -m pip install -r requirements.txt

Other Install Methods

Automated Install

For an automated install, please refer to Enriko82's Install Script

Docker Install

This method is discouraged as it is no longer maintained. If you crave to contain the bot and its manager, you can always use python's virtual environments. However, you can still find a docker setup guide here.

Usage

As the telegram bot is launching itself the Binance Trade Bot, you only have to start the BTB Manager Telegram like so:

python3 -m btb_manager_telegram

If the bot is running on a server you may want to keep it running even after ssh connection is closed by using nohup. Note the trailing "&" :

nohup python3 -m btb_manager_telegram &

However, you can run the bot with options :

# Autostart the Binance Trade Bot when the BTB Manager starts
# (Otherwise you will have to manually start the Binance Trade Bot from telegram)
python3 -m btb_manager_telegram -s

# Use the french translation. Available translation : en, ru, fr, de, nl, es, id, cn, pt
python3 -m btb_manager_telegram -l fr

# Make possible to plot the bot's performance in EUR instead of USD
python3 -m btb_manager_telegram -u EUR

# If using other currencies than USD or EUR, for example GBP, you will have to provide
# an openexchangerates API key, see the flag --oer_key.
# Get you key here : https://openexchangerates.org/signup/free
python3 -m btb_manager_telegram -u GBP -o OPENEXCHANGERATES_KEY

# Of course you can combine all of this!
python3 -m btb_manager_telegram -s -l fr -u EUR

# Using nohup with options
nohup python3 -m btb_manager_telegram -s -l fr -u EUR &

# See all available options
python3 -m btb_manager_telegram --help

Stopping the bot

If the trade bot has been launched with the telegram bot, stopping the telegram bot will stop the trade bot.

  • If the telegram bot has been launched without nohup, closing the terminal or pressing CTRL + C will stop the bot.

  • If the telegram bot has been launched with nohup, the bot can be stopped with the command kill $(cat btbmt.pid) (no animal will be hurt in this operation). If this command respond the file btbmt.pid, it his very likely the telegram bot is no longer running.

Manual upgrade

First of, stop the telegram bot.

git pull
python3 -m pip install --upgrade -r requirements.txt

You can now reboot the telegram bot.

Additional notes

Custom scripts

This bot supports custom scripts in a plugin manner. An extensive documentation on customs scripts is available here.

Telegram token and chat_id

Make sure that Binance Trade Bot's config/apprise.yml file is correctly setup before running, the telegram manager retreives this file to connect the bot.

If Binance Trade Bot and BTB-Manager-Telegram were not installed in the same parent directory or if apprise.yml is not setup or you want to use different token and chat_id from the ones in the apprise.yml file, you can set these two keys with the options --token and --chat_id

Virtualenvs

If the Binance Trade Bot has its own python environment, that is not shared with the telegram manager, you have to specify the path of the python binary used by the trade bot with the option --python_path. For example, if you created a virtualenv specific to the binance trade bot in the folder /home/user/trading_bot/binance-trade-bot/venv, you have to run the telegram bot like so:

python3 -m btb_manager_telegram --python_path /home/user/trading_bot/binance-trade-bot/venv/bin/python

Multiple bots

If you would like to run several Binance Trade Bot instances at the same time click here.

Compatibility

This program is fully compatible with Linux and Windows through WSL (Windows Subsystem for Linux).

Severa known problems are present on native Windows and will not be asserted.

MacOS compatibility is unknown, but supposed to be good ad this system is close to Linux.

Screenshots

Click here

         

Contributions and feature requests

If you have any feature requests please open an issue.

Contributions from anyone are welcome! Before opening pull requests please read the contributing guidelines.

Disclaimer

This project is for informational purposes only. You should not consider any such information or other material as legal, tax, investment, financial, or other advice. Nothing contained here constitutes a solicitation, recommendation, endorsement, or offer by me or any third party service provider to buy or sell any securities or other financial instruments in this or in any other jurisdiction in which such solicitation or offer would be unlawful under the securities laws of such jurisdiction.

If you plan to use real money, USE AT YOUR OWN RISK.

Under no circumstances will I or the project's maintainers be held responsible or liable in any way for any claims, damages, losses, expenses, costs, or liabilities whatsoever, including, without limitation, any direct or indirect damages for loss of profits.

Contributors

Many people contributed to the project by providing ideas, finding bugs and helping in the development (Emoji Key ).
This project follows the all-contributors specification.


Lorenzo Callegari 乐子睿

🚇 ⚠️ 💻 📖 🚧 🐛 🤔

Dmytro Litvinov

💻 🤔 🚧 🧑‍🏫

Heitor Ramon Ribeiro

🤔 🎨

NovusEdge

💻

Sachin S. Kamath

🤔 📖

Hoang Dinh

🐛

Dmitry Kravtsov

🤔 💻

Florian Sydekum

💻

Nico L.

🐛

SeriousSeal

💻

titulebolide

📖 🚧 👀 🐛 🌍 ⚠️ 🔧

Stephen Goult

🐛

Patrick Weingärtner

💻 🤔 🌍 📖

Federico Arredondo

🌍

MasaiasuOse

🌍 📖

phoenix-blue

🌍

neuhausj

💻

Santiago Caro Duque

🐛

Ivan Myronov

🌍

Hieu Nguyen

🐛

Riza Abdul Aziz

🌍

Kelecheck

🌍

kentuki

🌍

maromalo

🐛 💻

Ulllas Bharadwaj

🤔 💻 🐛

Ren Kasiyas

🌍

KevinTroyT

🌍

Timur

💻 🌍

Diogo Marques

🌍

stavsher

💻
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].