The service implements background workers to load data and the server app exposing API endpoints.
cd <path-to-the-repo>
cp config.ini.template config.ini
open config.ini
and set the parameters.
cd <path-to-the-repo>
pip install poetry==1.4.1
poetry install --no-root
export PYTHONPATH=<path-to-the-repo>
uvicorn --reload --factory --host=0.0.0.0 --port=8000 src.main:app_factory
To prefetch price data run:
cd <path-to-the-repo>/src
PYTHONPATH=<path-to-the-repo> python redis_filler.py
cd <path-to-the-repo>
arq src.redis_filler.InitializationSettings
then run Scheduler:
arq src.schedule_exec.WorkerSettings