Skip to content

Instantly share code, notes, and snippets.

@AhmedSakrr
Forked from ilyasst/freqtrade_vultr.md
Created October 21, 2021 21:42
Show Gist options
  • Save AhmedSakrr/f599ee2213eb15f6c01763b48ea3ff8a to your computer and use it in GitHub Desktop.
Save AhmedSakrr/f599ee2213eb15f6c01763b48ea3ff8a to your computer and use it in GitHub Desktop.

Run freqtrade on your VM


Important

TA-lib requires 2Gb of RAM. You can either:

  1. Upgrade your VM to a 2Gb RAM VM
  2. Use this guide to create a SWAP file (virtual memory) on the VM's SSD that is at least 2Gb: https://www.vultr.com/docs/setup-swap-file-on-linux

In fresh Ubuntu 19.04 LTS Vultr VM, as root SSH.

We need python 3.6 and pip3, let's check that we have Python 3.6 and install pip3 247MB (python3 should be there by default, but not pip3):

sudo apt-get update
sudo apt-get install python3.6
sudo apt-get install python3-pip

We will also need venv otherwise the install will fail + a few others that should help with the install of the ones necessary for freqtrade:

sudo apt-get install python3-venv build-essential libssl-dev libffi-dev python3-dev

Let's get freqtrade:

git clone https://github.com/freqtrade/freqtrade.git
cd freqtrade
git checkout develop
./setup.sh --install

Wait ... Answer Y to all promps.

Run freqtrade: source .env/bin/activate; freqtrade trade

Additional ressources:

https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-programming-environment-on-an-ubuntu-18-04-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment