This project has been built to the purpose of calculating, in real-time, the VWAP to the following tradings-pairs.
Follow the bellow instructions to run up the project.
There are built-in scripts to make those processes easier, to go through, but feel free to run it manually
I strongly encourage and recommend you to use pyenv to alternate between python versions, it helps you to properly manage it without pain
I've been using it over
pipbecause it's fully better constructed to manage python dependencies from applications, see here
Even pipenv already automatically creates an entire own virtualenv to install the project
dependencies, I recommend create a local one to be used, in favor to keep things unhidden,
given the flexibility to don't have to use pipenv to run into virtualenv, especially in production.
So, to do that, it's basically to run the following command in your terminal:
it creates a
venv/directory on project's root, which it's ignored on git by default
$ pipenv run virtualenv venv$ pipenv install$ pipenv run python .Or, use the built-in script to run that:
$ ./scripts/run.shIn watch mode, just run:
$ ./scripts/run_watch.sh$ pipenv run python -m pytestOr, use the built-in script to run that:
$ ./scripts/test.shIf you're in development mode, to help you out on changing tests or writing new ones, just run the following script:
$ ./scripts/test_development.shdefault standards based on PEC-8.
The code have been statically checked by pylint linter.
To go through this, just run in your terminal, the following command:
$ pipenv run pylintOr, use the built-in script to run that:
$ ./scripts/lint.sh