15
loading...
This website collects cookies to deliver better user experience
/opt/nobbi/hodloo
.sudo su
cd ~
pip install -r /opt/nobbi/hodloo/requirements.txt
config.py.example
to config.py
and change the variables. The variables are very well documented in the file itself hence I won't cover this here. For your reference the variables below:
# Discord
DISCORD_WEBHOOK_5 = '' # Discord Webhook for alerts 5% under the base. Leavy empty if not desired.
DISCORD_WEBHOOK_10 = '' # Discord Webhook for alerts 10% under the base. Leavy empty if not desired.
DISCORD_PANIC = '' # Discord Webhook for panic sell alerts. Leave empty if not desired.
DISCORD_ERRORS = '' # Discord Webhook in case of errors. Mandatory.
# Hodloo
HODLOO_URI = '' # Hoodlo Websocket API. Request the info from Pete in the Hoodlo Discussions Telegram channel as it is private.
HODLOO_QUOTES = ["USDT"] # Multiple quotes -> ["USDT","USDC"]
HODLOO_EXCHANGES = ["Binance"] # Multiple exchanges -> ["Binance","Kucoin"] Note that only Binance and Kucoin are fully supported at the moment.
python3 /opt/nobbi/hodloo/hodloo-alerts-api.py
sudo apt-get install supervisor
sudo service supervisor status
sudo service supervisor start
sudo service supervisor stop
sudo service supervisor restart
hodloo-alerts-api.py
script. The following example uses vi.sudo vi /etc/supervisor/conf.d/hodloo-alerts-api.conf
[program:hodloo-alerts-api]
command=python3 -u hodloo-alerts-api.py
directory=/opt/nobbi/hodloo
stdout_logfile=/opt/nobbi/hodloo/hodloo-alerts-api.log
redirect_stderr=true
autorestart=true
sudo supervisorctl
reread
add hodloo-alerts-api
status
sudo ps -axs | grep python
HODLOO_MIN_VOLUME
allows to filter coins based on a certain amount of volume. If the volume is below the variable's threshold, the coin will be ignored. See the variable description for an example.config.py
. It now supports passing the name of the config file as a parameter, which allows running multiple instances of the script with different config files. Examples below.# Old behavior where the script uses config.py as variable source (still supported btw)
> python hodloo-alerts-api.py
# Use kucoin.py file as variable source instead.
> python hodloo-alerts-api.py kucoin.py