If you do not yet have a Binance account please use my referal link: https://www.binance.com/?ref=12559326
-
Get a VPS, https://console.cloud.google.com has a free micro instance that is sufficient for running this bot.
-
Get a telegram bot token from https://telegram.me/botfather and write it down somewhere.
-
ssh into the machine.
- make sure you have all deps installed:
sudo apt-get update && sudo apt-get install git ipython python2.7 virtualenv python-dev tmux
. - clone this repo.
- make sure you have all deps installed:
- cd into the project directory.
- create a python virtual env with
virtualenv .pyenv
- start the env using the helper scipt with
. pyenv.sh
- install the requirments with
pip install -r requirments.txt
- write your token into
telegram.bot.token
withecho <TOKEN> > telegram.bot.token
mkdir data
- cd into the project directory.
- start tmux with
tmux
. - start the env using the helper scipt with
. pyenv.sh
- open ipython with
ipython
- load the script with
%run script.py
- run the script with
main()
If you want to disconnect then detach from tmux with Ctrl+b d
.
To reattach use tmux a
To monitor the logs run tail -f log.txt
in a separate tmux pane/window/session/terminal/planet/galaxy.
To set it to run on reboot add reboot SHELL=/bin/bash <path to daemon.sh>
to your crontab -e
- text your bot:
/start <API_KEY> <API_SECRET>
to register your keys.
- Add instructions on how to run the script on boot in case the machine restarts.
- Do this guide on a fresh machine to make sure i did not forget any steps.
LTC: LRvSzKF9qi8uSz5K8nqCiKiLaCNmuFNEKo
ETH: 0x1A6B538A2D53212Dd1FDEd06bE746101C746b7B6
BTC: 13RiGBZDhyHKWMfd6CVny1ViykEsyJshau