diff --git a/Binance/binance-buy-cbs.sh b/Binance/binance-buy-cbs.sh new file mode 100755 index 0000000..e99d547 --- /dev/null +++ b/Binance/binance-buy-cbs.sh @@ -0,0 +1,48 @@ +#!/bin/sh + +# Author: Roberto Leon +# Description: Simple Nefertiti Crypto Trading Bot Buy Script (Binance) +# Crypto Base Scanner (CBS) Signals + +### Keys +sigprov="cryptobasescanner.com" +sigkey="x" +apikey="x" +apisec="x" +telekey="x" +telechat="x" +pushapp="x" +pushkey="x" + +### Settings +exchange="BINA" +cluster="1" +quote="USDT" +price="15" +mult="1.03" +repeat="0.0084" # [30 seconds] = 0.5 * (100/60/100) +ignore="leveraged" + +### Build params string +params=" +--exchange=$exchange \ +--cluster=$cluster \ +--quote=$quote \ +--price=$price \ +--mult=$mult \ +--repeat=$repeat \ +--ignore=$ignore \ +--signals=$sigprov \ +--crypto-base-scanner-key=$sigkey \ +--api-key=$apikey \ +--api-secret=$apisec \ +--telegram-app-key=$telekey \ +--telegram-chat-id=$telechat \ +--pushover-app-key=$pushapp \ +--pushover-user-key=$pushkey \ +--dca" + +### Execute Nefertiti +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Executing buy bot for $sigprov signals with the following settings:" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Exchange: $exchange | Price: $price | TP: `echo "($mult-1)*100" | bc`% | Repeat: Every $repeat hour(s)" +cryptotrader buy $params diff --git a/Binance/binance-buy-default.sh b/Binance/binance-buy-default.sh new file mode 100755 index 0000000..2c91bd7 --- /dev/null +++ b/Binance/binance-buy-default.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +# Author: Roberto Leon +# Description: Simple Nefertiti Crypto Trading Bot Buy Script (Binance) +# Built-in Default Strategy + +### Keys +apikey="x" +apisec="x" +telekey="x" +telechat="x" +pushapp="x" +pushkey="x" + +### Settings +exchange="BINA" +cluster="1" +price="15" +mult="1.03" +repeat="1" +dip="7" + +### Markets +markets=$(cat markets.now) + +### Build params string +params=" +--exchange=$exchange \ +--cluster=$cluster \ +--price=$price \ +--mult=$mult \ +--repeat=$repeat \ +--dip=$dip \ +--market=$markets \ +--api-key=$apikey \ +--api-secret=$apisec \ +--telegram-app-key=$telekey \ +--telegram-chat-id=$telechat \ +--pushover-app-key=$pushapp \ +--pushover-user-key=$pushkey \ +--dca" + +### Execute Nefertiti +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Executing buy bot with the following settings:" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Exchange: $exchange | Price: $price | TP: `echo "($mult-1)*100" | bc`% | Repeat: Every $repeat hour(s)" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Markets:" $markets +#cryptotrader buy $params diff --git a/Binance/binance-sell.sh b/Binance/binance-sell.sh new file mode 100755 index 0000000..5f9b2d5 --- /dev/null +++ b/Binance/binance-sell.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +# Author: Roberto Leon +# Description: Simple Nefertiti Crypto Trading Bot Sell Script (Binance) +# Built-in Default Strategy + +### Keys +apikey="x" +apisec="x" +telekey="x" +telechat="x" +pushapp="x" +pushkey="x" + +### Settings +exchange="BINA" +cluster="1" +quote="USDT" +hold="BNBUSDT" +mult="1.03" + +### Build params string +params=" +--exchange=$exchange \ +--cluster=$cluster \ +--quote=$quote \ +--hold=$hold \ +--mult=$mult \ +--api-key=$apikey \ +--api-secret=$apisec \ +--telegram-app-key=$telekey \ +--telegram-chat-id=$telechat \ +--pushover-app-key=$pushapp \ +--pushover-user-key=$pushkey" + +### Execute Nefertiti +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Executing sell bot with the following settings:" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Exchange: $exchange | Quote: $quote | TP: `echo "($mult-1)*100" | bc`%" +cryptotrader sell $params diff --git a/Binance/binance.yaml b/Binance/binance.yaml new file mode 100644 index 0000000..ded181c --- /dev/null +++ b/Binance/binance.yaml @@ -0,0 +1,13 @@ +apps: + - script : ./binance-sell.sh + name : Binance-Sell + log_file : "logs/sell.log" + autorestart : false + - script : ./binance-buy-cbs.sh + name : Binance-Buy-CBS + log_file : "logs/buy-cbs.log" + autorestart : false + - script : ./binance-buy-default.sh + name : Binance-Buy-Default + log_file : "logs/buy-default.log" + autorestart : false \ No newline at end of file diff --git a/Binance/clusters/binance-urls.txt b/Binance/clusters/binance-urls.txt new file mode 100644 index 0000000..d4ce1b9 --- /dev/null +++ b/Binance/clusters/binance-urls.txt @@ -0,0 +1,4 @@ +api.binance.com +api1.binance.com +api2.binance.com +api3.binance.com diff --git a/Binance/clusters/latency-test.sh b/Binance/clusters/latency-test.sh new file mode 100644 index 0000000..b164fd3 --- /dev/null +++ b/Binance/clusters/latency-test.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +URLs=binance-urls.txt + +cat $URLs | while read url + +do + average=`ping -c 10 $url | grep rtt | cut -d '/' -f 5` + if [ $average == "" ]; then + continue + fi + echo "Server: $url - Avg: $average" +done diff --git a/Binance/markets.now b/Binance/markets.now new file mode 100644 index 0000000..80deb6c --- /dev/null +++ b/Binance/markets.now @@ -0,0 +1 @@ +PAIRONE,PAIRTWO,PAIRTHREE,PAIRFOUR,PAIRFIVE diff --git a/Coinbase/coinbase-buy-cbs.sh b/Coinbase/coinbase-buy-cbs.sh new file mode 100755 index 0000000..cfafe0d --- /dev/null +++ b/Coinbase/coinbase-buy-cbs.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +# Author: Roberto Leon +# Description: Simple Nefertiti Crypto Trading Bot Buy Script (Coinbase) +# Crypto Base Scanner (CBS) Signals + +### Keys +sigprov="cryptobasescanner.com" +sigkey="x" +apikey="x" +apisec="x" +apipass="x" +telekey="x" +telechat="x" +pushapp="x" +pushkey="x" + +### Settings +exchange="GDAX" +quote="USD" +price="15" +mult="1.03" +repeat="0.0084" # [30 seconds] = 0.5 * (100/60/100) +ignore="leveraged" + +### Build params string +params=" +--exchange=$exchange \ +--quote=$quote \ +--price=$price \ +--mult=$mult \ +--repeat=$repeat \ +--ignore=$ignore \ +--signals=$sigprov \ +--crypto-base-scanner-key=$sigkey \ +--api-key=$apikey \ +--api-secret=$apisec \ +--telegram-app-key=$telekey \ +--telegram-chat-id=$telechat \ +--pushover-app-key=$pushapp \ +--pushover-user-key=$pushkey \ +--dca" + +### Execute Nefertiti +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Executing buy bot for $sigprov signals with the following settings:" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Exchange: $exchange | Price: $price | TP: `echo "($mult-1)*100" | bc`% | Repeat: Every $repeat hour(s)" +cryptotrader buy $params diff --git a/Coinbase/coinbase-buy-default.sh b/Coinbase/coinbase-buy-default.sh new file mode 100755 index 0000000..2a9a456 --- /dev/null +++ b/Coinbase/coinbase-buy-default.sh @@ -0,0 +1,49 @@ +#!/bin/sh + +# Author: Roberto Leon +# Description: Simple Nefertiti Crypto Trading Bot Buy Script (Coinbase) +# Built-in Default Strategy + +### Keys +apikey="x" +apisec="x" +apipass="x" +telekey="x" +telechat="x" +pushapp="x" +pushkey="x" + +### Settings +exchange="GDAX" +quote="USD" +price="15" +mult="1.03" +repeat="1" +dip="7" + +### Markets +markets="all" + +### Build params string +params=" +--exchange=$exchange \ +--quote=$quote \ +--price=$price \ +--mult=$mult \ +--repeat=$repeat \ +--dip=$dip \ +--market=$markets \ +--api-key=$apikey \ +--api-secret=$apisec \ +--api-passphrase=$apipass \ +--telegram-app-key=$telekey \ +--telegram-chat-id=$telechat \ +--pushover-app-key=$pushapp \ +--pushover-user-key=$pushkey \ +--dca" + +### Execute Nefertiti +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Executing buy bot with the following settings:" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Exchange: $exchange | Price: $price | TP: `echo "($mult-1)*100" | bc`% | Repeat: Every $repeat hour(s)" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Markets:" $markets +cryptotrader buy $params diff --git a/Coinbase/coinbase-sell.sh b/Coinbase/coinbase-sell.sh new file mode 100755 index 0000000..8fa45b7 --- /dev/null +++ b/Coinbase/coinbase-sell.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +# Author: Roberto Leon +# Description: Simple Nefertiti Crypto Trading Bot Sell Script (Coinbase) +# Built-in Default Strategy + +### Keys +apikey="x" +apisec="x" +apipass="x" +telekey="x" +telechat="x" +pushapp="x" +pushkey="x" + +### Settings +exchange="GDAX" +quote="USD" +mult="1.03" + +### Build params string +params=" +--exchange=$exchange \ +--quote=$quote \ +--mult=$mult \ +--api-key=$apikey \ +--api-secret=$apisec \ +--api-passphrase=$apipass \ +--telegram-app-key=$telekey \ +--telegram-chat-id=$telechat \ +--pushover-app-key=$pushapp \ +--pushover-user-key=$pushkey" + +### Execute Nefertiti +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Executing sell bot with the following settings:" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Exchange: $exchange | Quote: $quote | TP: `echo "($mult-1)*100" | bc`%" +cryptotrader sell $params diff --git a/Coinbase/coinbase.yaml b/Coinbase/coinbase.yaml new file mode 100644 index 0000000..7ff3319 --- /dev/null +++ b/Coinbase/coinbase.yaml @@ -0,0 +1,13 @@ +apps: + - script : ./coinbase-sell.sh + name : Coinbase-Sell + log_file : "logs/sell.log" + autorestart : false + - script : ./coinbase-buy-cbs.sh + name : Coinbase-Buy-CBS + log_file : "logs/buy-cbs.log" + autorestart : false + - script : ./coinbase-buy-default.sh + name : Coinbase-Buy-Default + log_file : "logs/buy-default.log" + autorestart : false \ No newline at end of file diff --git a/KuCoin/kucoin-buy-cbs.sh b/KuCoin/kucoin-buy-cbs.sh new file mode 100755 index 0000000..6bd29c3 --- /dev/null +++ b/KuCoin/kucoin-buy-cbs.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +# Author: Roberto Leon +# Description: Simple Nefertiti Crypto Trading Bot Buy Script (KuCoin) +# Crypto Base Scanner (CBS) Signals + +### Keys +sigprov="cryptobasescanner.com" +sigkey="x" +apikey="x" +apisec="x" +apipass="x" +telekey="x" +telechat="x" +pushapp="x" +pushkey="x" + +### Settings +exchange="KUCN" +quote="USDT" +price="15" +mult="1.03" +repeat="0.0084" # [30 seconds] = 0.5 * (100/60/100) +ignore="leveraged" + +### Build params string +params=" +--exchange=$exchange \ +--quote=$quote \ +--price=$price \ +--mult=$mult \ +--repeat=$repeat \ +--ignore=$ignore \ +--signals=$sigprov \ +--crypto-base-scanner-key=$sigkey \ +--api-key=$apikey \ +--api-secret=$apisec \ +--telegram-app-key=$telekey \ +--telegram-chat-id=$telechat \ +--pushover-app-key=$pushapp \ +--pushover-user-key=$pushkey \ +--dca" + +### Execute Nefertiti +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Executing buy bot for $sigprov signals with the following settings:" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Exchange: $exchange | Price: $price | TP: `echo "($mult-1)*100" | bc`% | Repeat: Every $repeat hour(s)" +cryptotrader buy $params diff --git a/KuCoin/kucoin-buy-default.sh b/KuCoin/kucoin-buy-default.sh new file mode 100755 index 0000000..42f3303 --- /dev/null +++ b/KuCoin/kucoin-buy-default.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +# Author: Roberto Leon +# Description: Simple Nefertiti Crypto Trading Bot Buy Script (KuCoin) +# Built-in Default Strategy + +### Keys +apikey="x" +apisec="x" +apipass="x" +telekey="x" +telechat="x" +pushapp="x" +pushkey="x" + +### Settings +exchange="KUCN" +price="15" +mult="1.03" +repeat="1" +dip="7" + +### Markets +markets=$(cat markets.now) + +### Build params string +params=" +--exchange=$exchange \ +--price=$price \ +--mult=$mult \ +--repeat=$repeat \ +--dip=$dip \ +--market=$markets \ +--api-key=$apikey \ +--api-secret=$apisec \ +--api-passphrase=$apipass \ +--telegram-app-key=$telekey \ +--telegram-chat-id=$telechat \ +--pushover-app-key=$pushapp \ +--pushover-user-key=$pushkey \ +--dca" + +### Execute Nefertiti +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Executing buy bot with the following settings:" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Exchange: $exchange | Price: $price | TP: `echo "($mult-1)*100" | bc`% | Repeat: Every $repeat hour(s)" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Markets:" $markets +cryptotrader buy $params diff --git a/KuCoin/kucoin-sell.sh b/KuCoin/kucoin-sell.sh new file mode 100755 index 0000000..97e4fe1 --- /dev/null +++ b/KuCoin/kucoin-sell.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +# Author: Roberto Leon +# Description: Simple Nefertiti Crypto Trading Bot Sell Script (KuCoin) +# Built-in Default Strategy + +### Keys +apikey="x" +apisec="x" +apipass="x" +telekey="x" +telechat="x" +pushapp="x" +pushkey="x" + +### Settings +exchange="KUCN" +quote="USDT" +mult="1.03" + +### Build params string +params=" +--exchange=$exchange \ +--quote=$quote \ +--mult=$mult \ +--api-key=$apikey \ +--api-secret=$apisec \ +--api-passphrase=$apipass \ +--telegram-app-key=$telekey \ +--telegram-chat-id=$telechat \ +--pushover-app-key=$pushapp \ +--pushover-user-key=$pushkey" + +### Execute Nefertiti +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Executing sell bot with the following settings:" +echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] Exchange: $exchange | Quote: $quote | TP: `echo "($mult-1)*100" | bc`%" +cryptotrader sell $params diff --git a/KuCoin/kucoin.yaml b/KuCoin/kucoin.yaml new file mode 100644 index 0000000..76fbe9a --- /dev/null +++ b/KuCoin/kucoin.yaml @@ -0,0 +1,13 @@ +apps: + - script : ./kucoin-sell.sh + name : KuCoin-Sell + log_file : "logs/sell.log" + autorestart : false + - script : ./kucoin-buy-cbs.sh + name : KuCoin-Buy-CBS + log_file : "logs/buy-cbs.log" + autorestart : false + - script : ./kucoin-buy-default.sh + name : KuCoin-Buy-Default + log_file : "logs/buy-default.log" + autorestart : false \ No newline at end of file diff --git a/KuCoin/markets.now b/KuCoin/markets.now new file mode 100644 index 0000000..e9100ce --- /dev/null +++ b/KuCoin/markets.now @@ -0,0 +1 @@ +PAIR-ONE,PAIR-TWO,PAIR-THREE,PAIR-FOUR,PAIR-FIVE