-
Clone git repo
-
Create and add credentials in
.env
fileID= #probit API id SECRET= #probit API secret KEY= #random string
-
Run
python main.py
-
Open
127.0.0.1:5000
in local browser
To build the Docker image from the code, run:
docker compose -f .\docker-compose-dev.yml up
If you want to pull the image from the Docker repository instead, use:
docker compose -f .\docker-compose-prod.yml up
Image is automatically built and deployed through the Jenkins pipeline after changes in GitHub, and it expects a .env file for loading variables.
Pipeline is designed to automate the building and deployment of a Docker image for the Probit Exchange API. It is configured to execute different stages of the CI/CD process based on the branch being built. It assumes you have a specific versioning strategy for your application, denoted by "Patch," "Minor," and "Major."
The pipeline is executed as follows:
- Code is checked out from the GitHub repository.
- The environment is prepared by copying the
.env
file. - Tests are run.
- If the branch is 'master', a Docker image tag is generated.
- If the branch is 'master', a Docker image is built with the generated tag.
- If the branch is 'master', the Docker image is pushed to Docker Hub.
- If the branch is 'master', the Docker image is removed.
The stages for image tagging, building, deploying, and environment cleanup are conditional and will only run when the branch being built is 'master'.
Please ensure that you have the necessary plugins and tools set up in your Jenkins environment to support Docker and the required scripts for testing. Scripts are in IaC Repo
Probit is primarily used for fat finger orders. In the event of market volatility and lack of liquidity, these extreme orders can be executed.
The tool is now used for order monitoring.
To run tests, use pytest -v -s
command.