Skip to content

Commit

Permalink
Added Nefertiti script templates for Coinbase, Binance and KuCoin.
Browse files Browse the repository at this point in the history
  • Loading branch information
rleons committed May 28, 2021
1 parent 13fe12e commit 429b65d
Show file tree
Hide file tree
Showing 16 changed files with 456 additions and 0 deletions.
48 changes: 48 additions & 0 deletions Binance/binance-buy-cbs.sh
Original file line number Diff line number Diff line change
@@ -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
47 changes: 47 additions & 0 deletions Binance/binance-buy-default.sh
Original file line number Diff line number Diff line change
@@ -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
39 changes: 39 additions & 0 deletions Binance/binance-sell.sh
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions Binance/binance.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions Binance/clusters/binance-urls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
api.binance.com
api1.binance.com
api2.binance.com
api3.binance.com
13 changes: 13 additions & 0 deletions Binance/clusters/latency-test.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions Binance/markets.now
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PAIRONE,PAIRTWO,PAIRTHREE,PAIRFOUR,PAIRFIVE
47 changes: 47 additions & 0 deletions Coinbase/coinbase-buy-cbs.sh
Original file line number Diff line number Diff line change
@@ -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
49 changes: 49 additions & 0 deletions Coinbase/coinbase-buy-default.sh
Original file line number Diff line number Diff line change
@@ -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
37 changes: 37 additions & 0 deletions Coinbase/coinbase-sell.sh
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions Coinbase/coinbase.yaml
Original file line number Diff line number Diff line change
@@ -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
47 changes: 47 additions & 0 deletions KuCoin/kucoin-buy-cbs.sh
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 429b65d

Please sign in to comment.