-
Notifications
You must be signed in to change notification settings - Fork 9
Installation
Giancarlos Salas edited this page Jul 10, 2020
·
2 revisions
Download pre-built binary
curl -L https://github.com/giansalex/crypto-com-trailing-stop-loss/releases/download/v1.4/crypto-linux-amd64.tar.gz -o crypto.tar.gz
tar -xf crypto.tar.gz
Create file mycrypto.sh
with your configurations, you can use vi mycrypto.sh
and paste this content (don't forget change values)
#!/bin/bash
export CRYPTO_APIKEY=xxxxxxxx
export CRYPTO_SECRET=xxxxxxxx
export TELEGRAM_TOKEN=xxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxx
./crypto -type=SELL -pair=CRO/USDT -percent=4 -amount=100 -interval=60 -telegram.chat=0000000
You can create other configurations:
mycrypto_buy_mco.sh
,mycrypto_sell_cro.sh
, etc.
Finally run in background
nohup ./mycrypto.sh &
Program exits after sell or buy operation complete, but if you need to kill the program, find PID with command
jobs
and runkill YOUR_PID