Microservice for Conditional Value at Risk API
- Start the application with
docker-compose up --build
- To stop the application, run
docker-compose stop
This returns a task_id
that you use to check the status of the allocation.
curl -d '{"coins": ["BTC", "ETH", "LTC"]}' -H "Content-Type: application/json" -X POST http://localhost:5000/api/allocations/
Pass in task_id
from the previous step to check the status.
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://localhost:5000/api/allocations/<task_id>/
Get <CONTAINER_ID
for the container by running docker ps
Run docker exec -it <CONTAINER_ID> python /app/tests.py