Last updated
Last updated
Thuis endpoints helps you calculate value at risk. Computed by a proprietary and thoroughly backtested methodology that accounts for the idiosyncrasies of crypto market structure. By convention it's a forecasting VaR, i.e. the prediction of the potential loss for the next day.
bases
Yes
Total must match quantities
below.
The order of bases
and their respective quantities
must match in the request.
quote
Yes
The fiat currency.
quantities
Yes
Quantities list of base asset in the portfolio.
Must match the number of bases
.
The order of quantities
and their respective bases
must match in the request.
risk_level
Yes
The Value at Risk confidence level.
Min: 0.90
(included)
Max: 1
(excluded)
start_time
Yes
First fixing of the calculation in ISO 8601 (inclusive).
end_time
Yes
Last fixing of the calculation in ISO 8601 (inclusive).
sources
No
boolean. If true, returns all pair prices which were used to compute the Value at Risk.
Default: false
var_time
The time at which the VaR is computed.
value_at_risk
Composed of two fields: value and risk_level (the Value at Risk estimator at the specified risk_level.)
additional_vars
List of additional VaRs for standard risk levels.
pair
The constituent pair. (showing only when sources
is set to be true)
ref_price
The reference price per asset. (showing only when sources
is set to be true)
date
The date of the reference price. (showing only when sources
is set to be true)
List of portfolio base components. See