Skip to content

Instantly share code, notes, and snippets.

@d00vy
Last active April 16, 2021 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d00vy/d2614e552084d4a4396f953810c74940 to your computer and use it in GitHub Desktop.
Save d00vy/d2614e552084d4a4396f953810c74940 to your computer and use it in GitHub Desktop.
ECHO OFF
::::::::::::::::::::
:: Buy Bot Scripting Template for Nefertiti Cryptotrader Bot
:: Created by github.com/d00vy
::
:: More information at: https://d00vy.com/blog/how_setup_nefertiti_cryptotrader_bot/
:: Nefertiti Documentation: https://nefertiti-tradebot.com/
::::::::::::::::::::
:::: Define sell bot variables
:: Exchange you want to run
SET EXCHANGE=BTRX
:: Amount of base currency to spend per order
SET PRICE=XX
:: Markets to trade (USD-ETH,USD-BTC)
SET MARKET=USD-ETH
:: Exchange API Key
SET API_KEY=XXX
:: Exchange API Secret
SET API_SECRET=XXX
:: Exchange API Passphrase (remove if not required)
SET API_PASS=XXX
:: Pushover App Key
SET PUSHOVER_APP_KEY=NONE
:: Pushover User Key
SET PUSHOVER_USER_KEY=NONE
:: Telegram Bot Token
SET TELEGRAM_KEY=XXX
:: Telegram channel ID
SET TELEGRAM_ID=XXX
:: Repeat interval (Default is 1 hour)
SET REPEAT=1
:::: Execute buy bots
echo Loaded variables - Starting Buy Bot for %MARKET%
cryptotrader buy ^
--exchange=%EXCHANGE% ^
--market=%MARKET% ^
--api-key=%API_KEY% ^
--api-secret=%API_SECRET% ^
--api-passphrase=%API_PASS% ^
--telegram-app-key=%TELEGRAM_KEY% ^
--telegram-chat-id=%TELEGRAM_ID% ^
--pushover-app-key=%PUSHOVER_APP_KEY% ^
--pushover-user-key=%PUSHOVER_USER_KEY% ^
--price=%PRICE% ^
--repeat=%REPEAT% ^
--ignore-error
#!/bin/bash
set -eu
##########
# Buy Scripting Template for Nefertiti Cryptotrader Bot
# Created by github.com/d00vy
#
# More information at: https://d00vy.com/blog/how_setup_nefertiti_cryptotrader_bot/
# Nefertiti Documentation: https://nefertiti-tradebot.com/
##########
## Define buy bot variables
EXCHANGE="BTRX" #Exchange you want to run
PRICE="XX" #Amount of base currency to spend per order
MARKET="USD-ETH" #Markets to trade (USD-ETH,USD-BTC)
API_KEY="XXX" #Exchange API Key
API_SECRET="XXX" #Exchange API Secret
API_PASS="XXX" #Exchange API Passphrase (remove if not required)
PUSHOVER_APP_KEY="NONE" #Pushover App Key
PUSHOVER_USER_KEY="NONE" #Pushover User Key
TELEGRAM_KEY="XXX" #Telegram Bot Token
TELEGRAM_ID="XXX" #Telegram channel ID
REPEAT=1 #Repeat interval (Default is 1 hour)
## Execute buy bots
echo "Loaded variables - Starting Buy Bot for $MARKET"
cryptotrader buy \
--exchange=$EXCHANGE \
--market=$MARKET \
--api-key=$API_KEY \
--api-secret=$API_SECRET \
--api-passphrase=$API_PASS \
--telegram-app-key=$TELEGRAM_KEY \
--telegram-chat-id=$TELEGRAM_ID \
--pushover-app-key=$PUSHOVER_APP_KEY \
--pushover-user-key=$PUSHOVER_USER_KEY \
--price=$PRICE \
--repeat=$REPEAT \
--ignore-error

Nefertiti Scripting Templates

Scripting templates for simplifying and automating the deployment of Nefertiti Cryptotrader Bot.

Linux users will want .sh files | Windows user will want .bat files

The scripts are commented for ease of use and should be self-explanatory. The scripts are used in the guide I wrote to get started with Nefertiti quickly and easily.

Visit https://d00vy.com/blog for more information.

ECHO OFF
::::::::::::::::::::
:: Sell Bot Scripting Template for Nefertiti Cryptotrader Bot
:: Created by github.com/d00vy
::
:: More information at: https://d00vy.com/blog/how_setup_nefertiti_cryptotrader_bot/
:: Nefertiti Documentation: https://nefertiti-tradebot.com/
::::::::::::::::::::
:::: Define sell bot variables
:: Exchange you want to run
SET EXCHANGE=KUCN
:: Exchange API Key
SET API_KEY=XXX
:: Exchange API Secret
SET API_SECRET=XXX
:: Exchange API Passphrase
SET API_PASS=XXX
:: Pushover App Key
SET PUSHOVER_APP_KEY=NONE
:: Pushover User Key
SET PUSHOVER_USER_KEY=NONE
:: Telegram Bot Token
SET TELEGRAM_KEY=XXX
:: Telegram channel ID
SET TELEGRAM_ID=XXX
:: Selling strategy to use [0*|1|2|3|4]
SET STRATEGY=0
:: Notification verbosity [0|1|2*|3]
SET NOTIFY=2
:: Set sell price multiplier, default is 5% (1.05*)
SET MULT=1.05
:: Name of markets not to sell
::SET HOLD=BTC-USD,BTC-USDT
:::: Execute sell bot
echo Loaded Variables - Starting Sell Bot on %EXCHANGE%
.\cryptotrader.exe sell ^
--exchange=%EXCHANGE% ^
--api-key=%API_KEY% ^
--api-secret=%API_SECRET% ^
--api-passphrase=%API_PASS% ^
--telegram-app-key=%TELEGRAM_KEY% ^
--telegram-chat-id=%TELEGRAM_ID% ^
--pushover-app-key=%PUSHOVER_APP_KEY% ^
--pushover-user-key=%PUSHOVER_USER_KEY% ^
--strategy=%STRATEGY% ^
--notify=%NOTIFY% ^
--mult=%MULT% ^
--ignore-error
#!/bin/bash
set -eu
##########
# Buy Scripting Template for Nefertiti Cryptotrader Bot
# Created by github.com/d00vy
#
# More information at: https://d00vy.com/blog/how_setup_nefertiti_cryptotrader_bot/
# Nefertiti Documentation: https://nefertiti-tradebot.com/
##########
## Define variables
EXCHANGE="BTRX" #Exchange you want to run
API_KEY="XXX" #Exchange API Key
API_SECRET="XXX" #Exchange API Secret
API_PASS="XXX" #Exchange API Passphrase
PUSHOVER_APP_KEY="NONE" #Pushover App Key
PUSHOVER_USER_KEY="NONE" #Pushover User Key
TELEGRAM_KEY="XXX" #Telegram Bot Token
TELEGRAM_ID="XXX" #Telegram channel ID
STRATEGY="0" #Selling strategy to use [0*|1|2|3|4]
NOTIFY="2" #Notification verbosity [0|1|2*|3]
MULT="1.05" #Set sell price multiplier, default is 5% (1.05*)
#HOLD=BTC-USD,BTC-USDT #Name of markets not to sell
## Execute sell bot
echo "Loaded Variables - Starting Sell Bot on $EXCHANGE"
cryptotrader sell \
--exchange=$EXCHANGE \
--api-key=$API_KEY \
--api-secret=$API_SECRET \
--api-passphrase=$API_PASS \
--telegram-app-key=$TELEGRAM_KEY \
--telegram-chat-id=$TELEGRAM_ID \
--pushover-app-key=$PUSHOVER_APP_KEY \
--pushover-user-key=$PUSHOVER_USER_KEY \
--strategy=$STRATEGY \
--notify=$NOTIFY \
--mult=$MULT \
--ignore-error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment