/arbit

An Ethereum blockchain arbitrage bot

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Arbit

An Ethereum blockchain arbitrage bot

Alpha stage software

Quickstart

git clone git@github.com:enqack/arbit.git
cd arbit

Ubuntu prerequisites

sudo apt install python3.7-minimal python3.7-venv python3.7-dev python3-pip

Infura

In order to interact with the Ethereum blockchain a node provider, like Infura, is required.

Environment setup

Configure a python virtual environment for the bot as follows.

python3.7 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt

Set environment variables by first copying the example file.

cp example.env .env

Then edit .env as required.

ARBIT_RPC_URL="https://mainnet.infura.io/v3/<INFURA_API_KEY>"
ARBIT_ETH_WALLET_ADDRESS="0x0000"
ARBIT_ETH_INPUT_AMOUNT="0.1"
ARBIT_POLLING_INTERVAL="5"
ARBIT_LOGLEVEL="INFO"

ARBIT_RPC_URL is the URL of an Ethereum node.

ARBIT_ETH_WALLET_ADDRESS is the address of an Ethereum wallet to used for transactions.

ARBIT_ETH_INPUT_AMOUNT is the amount of Ether to use for token purchases.

ARBIT_POLLING_INTERVAL is the time, in seconds, between pricing and trade runs.

ARBIT_LOGLEVEL is the level of logging to use. Applies to both console and the log file.

Run it!

To run arbit as described below ensure you are in the root directory of the repository.

python arbit/arbit.py