Analyze and report portfolio performance and measure potential investment losses.
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
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
The fiat currency.
This endpoint is in Alpha. Changes to the format or data constraints might change without prior notice.
The Custom Valuation endpoint allows you to build completely customizable single-asset or multi-asset price feeds for NAV calculations, portfolio valuation, asset allocation strategies, and indices.
bases
Yes
quote
Yes
The fiat pricing currency.
percentages
Yes
List of percentages for outlier management.
Min: 1
Max: 5
To not enforce any outlier management, use 1
semi_length_window
Yes
The time interval to compute the transaction.
weights
Yes
Weighting list of base assets.
The order and length of bases
and their respective weights
must match in the request.
Weights must sum up to 1.
For single-asset price feeds use an asset weighting of 1
continuation_token
No
end_time
No
Last fixing of the calculation in ISO 8601 (exclusive).
exchanges
No
interval
No
Frequency in time unit after the first fixing.
Must be greater than twice the semi_length_window
Default: 1d
.
start_time
No
First fixing of the calculation in ISO 8601 (inclusive).
sources
No
boolean
. If true
, returns all prices and volumes which were used to calculate valuation price.
Default: false
timestamp
Timestamp at which the interval begins.
percentage
Percent of the price distribution centered around the median price.
price
The composite price, with a base of 100.
pair
The constituent pair.
contribution
The asset contribution to the composite price.
ref_price
The reference price per asset.
weight
The weight per asset.
List of portfolio base components.
Min: 1
Max: 5
See
The order and length of bases
and their respective weights
must match in the request.
See
Each response will only contain maximum 7 days of data.
To get more data, the continuation_token
should be used.
List of exchanges to source data from. See Default: All exchanges