Code for creating and submitting alphas for World Quant Brain
Install Python 3.10 or above and install necessary dependencies:
pip install -r requirements.txt -r requirements-dev.txt
# Install brain package in editable mode
pip install -e .Set platform credentials by copying file .env.example into .env and setting the variables.
After that you can run the main code as:
wq-brainAs an alternative you can use the Makefile to set up the environment. The following command
make installwill create virtual environment in venv/ folder and install all required packages.
For development of code and commiting into git repository, run following command before making any commits:
pre-commit install- Set
DATABASE_URLin.envfile - Create new migration:
./db_migrate.sh new my_migration_name- Update migrations file
- Execute migrations
./db_migrate.sh upBuild
docker build -t brain:latest .Run
docker run -d --name brain-container --restart=always brain:latestMonitor
docker logs -f brain-container