tomjrtsmith / nfi-tags-auto-update

Automatically pull latest tags of NostalgiaForInfinity strategy for Freqtrade bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NFI Tags Auto Updater

Simple Bash script to check for NostalgiaForInfinity newly added tags or commits and update it for usage with Freqtrade bot.

Assumptions

  • Both freqtrade and NostalgiaForInfinity folders are in the same path level (e.g. /home/ubuntu)

Installation

Clone the repo:

git clone https://github.com/krsh-off/nfi-tags-auto-update.git

Open update.sh file and tweak some variables:

  • ROOT_PATH - path to the directory where NostalgiaForInfinityNext and freqtrade directories are places
  • TG_TOKEN - Telegram token you've got for the bot
  • TG_CHAT_ID - Telegram chat ID with your bot
  • TG_FT_BOT_ID - Telegram ID of your Freqtrade bot, the one that ends in bot
  • MODE - check out tags (default) or latest commit in the repo
  • AUTO_RELOAD - keep it true if you want to fully automate the process

Make the file executable:

chmod +x update.sh

Setup a Cron job to execute the script periodically.

Log into your server and type crontab -e. Next you should be editing the cron file, add in the following line at the bottom of the file.

*/30 * * * * /bin/bash -c "nfi-tags-auto-update/update.sh"

Once that is saved, the updater will check for new git updates every 30 mins and notify you via Telegram if there was anything new so you can restart it.

About

Automatically pull latest tags of NostalgiaForInfinity strategy for Freqtrade bot


Languages

Language:Shell 100.0%