Real-time stock market predictions using an event-driven architecture
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ source venv/bin/activate
$ python pypredict/trades.py publish
$ source venv/bin/activate
$ python pypredict/trades.py subscribe
$ source venv/bin/activate
$ uvicorn pypredict.main:app --reload
Note: the reload
flag provides the ability to refresh the application after code changes. It is not necessary.
Run docker container
$ docker-compose up
Go to http://localhost:8000 to view the application