This is an example project of:
The simulation result might be not good as it is actually not the real focus of this project.
DON'T use it as a basis for buying any stock!!!
- Python 3.8+
- Poetry
- Azure Batch account (only if you use Azure Batch)
- Azure Storage account (only if you use Azure Batch)
Note: Azure accounts are not needed if you run the simulation using multiprocessing locally instead of Azure Batch.
- Install poetry(if it doesn't exist):
pip install poetry
- Install dependencies:
poetry install
poetry run python stock_price_simulator/run.py
poetry run python az_batch/run.py
You can also use docker to run the simulation, so that you can skip the poetry installation which is frustrating sometime.
-
Build the image:
docker build -t stock_price_simulator .
-
Run in a container:
docker run stock_price_simulator