Installation
VPS Setup
To set up a VPS (Virtual Private Server) for running the bot, follow these steps:
-
Choose a VPS Provider: Select a VPS provider such as Hetzner, DigitalOcean, AWS, or Linode. For optimal performance, it is recommended to use a Hetzner 4 core 8GB Intel server. Create an account and set up a new VPS instance with at least 4 Cores and 8GB of RAM and a suitable operating system (e.g., Ubuntu 20.04).
-
Connect to Your VPS: Use SSH to connect to your VPS. Replace
your_vps_ip
with the IP address of your VPS.ssh root@your_vps_ip
-
Update and Upgrade Packages: Ensure your VPS is up to date.
sudo apt update && sudo apt upgrade -y
-
Install Python 3.11: Follow the instructions in the "Installing Python 3.11" section below to install Python 3.11 on your VPS.
-
Install Git: If Git is not already installed, install it using:
sudo apt install git -y
-
Clone the Repository: Clone the Directional Scalper repository to your VPS:
git clone https://github.com/donewiththedollar/directionalscalper.git
-
Install Dependencies: Install the required Python dependencies.
pip3.11 install -r requirements.txt
-
Configure the Bot: Rename the configuration files and add your API keys as described in the "Quickstart" section.
-
Run the Bot: Start the bot using the appropriate command as described in the "Quickstart" section.
Prerequisites
Before you begin, ensure you have the following prerequisites:
- Python 3.11+
- pip
- git
Quickstart
-
Clone the repository:
git clone https://github.com/donewiththedollar/directionalscalper.git
Change current working directory to the project directory:
cd directionalscalper
-
Install Python 3.11 (see below)
-
Install the required dependencies:
pip3.11 install -r requirements.txt
-
Rename the
config_example.json
toconfig.json
located in the/configs
folder. Also renameaccount_example.json
toaccount.json
and add your API key(s) to theaccount.json
file located in the/configs
folder. -
Run the bot:
- To display the menu and select a strategy, use the following command:
python3.11 multi_bot_aio.py --config configs/config.json
or the old methodpython3.11 multi_bot_v4.py --config config.json (outdated)
- Alternatively, you can run the bot with command line parameters:
- For the multi-bot auto symbol rotator strategy:
python3.11 multi_bot_v3.py --exchange bybit --account_name account_1 --strategy qsgridob --config configs/config.json
- For the old single coin strategy (outdated):
python3.11 bot.py --exchange bybit --symbol DOGEUSDT --strategy qstrendob --config configs/config.json
- For the multi-bot auto symbol rotator strategy:
Installing Python 3.11
Update the package list and install the necessary dependencies
sudo apt update
sudo apt install -y wget build-essential libssl-dev zlib1g-dev \
libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev \
libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev \
libffi-dev uuid-dev libnss3-dev libgdbm-compat-dev
Download the Python 3.11.0 source code:
cd /opt
wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tgz
Extract the downloaded archive:
sudo tar -xzf Python-3.11.0.tgz
Change to the extracted directory:
cd Python-3.11.0
Configure the build with optimizations and ensure pip installation:
sudo ./configure --enable-optimizations --prefix=/usr/local --with-ensurepip=install
Compile Python:
sudo make -j 2
Install Python 3.11:
sudo make altinstall
Verify the Python installation:
python3.11 --version
You should see the installed Python version displayed.
Verify pip installation:
python3.11 -m pip --version
This should display the pip version associated with Python 3.11.
If pip is not installed for some reason, you can install it manually using the get-pip.py script:
wget https://bootstrap.pypa.io/get-pip.py
python3.11 get-pip.py
That's it! You have now installed Python 3.11 with pip on your system.