Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberPunkMetalHead authored Jan 17, 2022
1 parent 2f035ac commit e35dc8c
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,73 @@ The idea behind this open source crypto trading algorithm to take advantage of t
As Gateio seems to list many of these coins before Binance does, this exchange is a good place to start.
It comes with a live and test mode so naturally, use at your own risk.

# HOW TO RUN IT
## 1. Create venv (recommended to use python>=3.8, check with `python --version`)

python3 -m venv env

## 2 Activate venv

Linux:
source env/bin/activate

Windows:
env\Scripts\activate.bat

## 3. Install program requirements

python -m pip install -r requirements.txt

This contains the requirements for the program itself. You may now run the script using python main.py. No additional steps need for simply running the tool

## 4. Install dev requirements

python -m pip install -r dev_requirements.txt

This is necessary make verifying of the code easier and formats the code automatically to match the coding style.

## 5. Install pre-commit hooks

pre-commit install

This installs the pre-commit git hooks for the project and makes it possible to run the pre-commit script automatically when committing.

## 6. Run Tests and pre-commit scripts manually
### pre-commit checks
To manually run the pre-commit script:

pre-commit run --all-files

### Tox
Make sure you enabled the virtual environment.
Tox tests the code for multiple environments (3.8, 3.9) and checks code with flake8 and mypy (only on Python Version 3.8).
To run Tox:

tox

### PyTest
Make sure you enabled the virtual environment.
PyTest runs the unit tests for the code.
To run PyTest:

python -m pytest


### Flake8
Make sure you enabled the virtual environment.
Flake8 checks the code for errors and warnings.
To run Flake8:

flake8 src

### Black
Make sure you enabled the virtual environment.
Black formats the code to match the coding style.
To run Black:

black src



<p>&nbsp;</p>

Expand Down

0 comments on commit e35dc8c

Please sign in to comment.