Following the inspiration of the darwinex youtube playlist Institutional-Grade Risk Management Techniques for Traders this api will allow you to manage the risk of your trading systems based on incremental value at risk based on variance-covariance method (take into account the volatility and the correlation between assets)
The project is built in Typescript using nestjs framework.
To calculate the value at risk you need to get the last n candles of the asset. Below supported dataProvider.
Data Source | Status |
---|---|
Binance Future | ✅ |
docker run -p 3000:3000 gaugau3000/portfolio-inc-var-api
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Please find swagger doc here You can make tests on this api going to http://localhost:3000/api
This tool is MIT licensed.