J2897

Install Freqtrade (non-containerized)

Dec 24th, 2022 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

Install Freqtrade

Install necessary dependencies

# Update.
sudo apt update -y; sudo apt upgrade -y

# Install packages.
sudo apt install -y python3-pip python3-venv python3-dev python3-pandas git curl

Extend sudo time (optional)

Edit the sudoers file:

sudo visudo

Add this to the sudoers file:

# Extend the password authentication timer to 5 hours.
Defaults:john timestamp_timeout=300

Download the Freqtrade repository

# Download `develop` branch of freqtrade repository
git clone https://github.com/freqtrade/freqtrade.git

# Enter downloaded directory.
cd freqtrade

# Your choice (1): novice user
git checkout stable

# Your choice (2): advanced user
git checkout develop

# Your choice (3): older release (2022.7)
git checkout 046ae18

# --install, Install Freqtrade from scratch.
./setup.sh -i

# Then activate the Freqtrade virtual environment.
source .env/bin/activate

# Test.
freqtrade --version

Aliases (optional)

Add to the .bash_aliases file:

# Reload after modifying the bash_aliases file.
alias reload="source ~/.bashrc"

# Activate the Freqtrade virtual environment.
alias ftenv="cd /home/john/freqtrade/; source /home/john/freqtrade/.env/bin/activate"
Add Comment
Please, Sign In to add comment