Risk Parameters

In the CVEX Protocol, Risk Oracles play a pivotal role in regularly reassessing and updating risk parameters associated with the underlying assets of each Platform. These parameters are encapsulated in a symmetric matrix resembling a variance-covariance matrix with list of independent parameters, where the diagonal elements α\alpha represent the volatility of each underlying asset as per VaR-based risk assessment, the off-diagonal elements β\beta denote the correlated volatility between pairs of assets, and independent parameters γ\gamma represent the volatility of the contract price, independent from the volatility of underlying asset:

Parameters=[α1β12β1nβ21α2β2nβn1βn2αn],[γ1γ2γm]Parameters = \begin{bmatrix} \alpha_1 & \beta_{12} & \cdots & \beta_{1n} \\ \beta_{21} & \alpha_2 & \cdots & \beta_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ \beta_{n1} & \beta_{n2} & \cdots & \alpha_n \end{bmatrix} , \begin{bmatrix} \gamma_1 \\ \gamma_2 \\ \vdots \\ \gamma_m \end{bmatrix}

This set of parameters allows the protocol and its participants to calculate the worst expected loss over a specified VaR period for any given trader's portfolio. This computation is akin to calculating variation for a linear combination of dependent and independent random variables:

ExpectedLoss=i=1nαi2Ni2+i=1n1j=i+1nβijNiNj+i=1mγi2ni2ExpectedLoss = \sqrt{\sum_{i=1}^{n} \alpha_i^2 N_i^2 + \sum_{i=1}^{n-1}\sum_{j=i+1}^{n} \beta_{ij} N_i N_j + \sum_{i=1}^{m} \gamma_i^2 n_i^2 }

Where nin_i is net exposure of each trader's position, and NiN_i is combined net exposure of the trader's positions of specific underlying asset, calculated with futures and perpetuals Mark Price PP, options Delta Hedge Ratio Δ\Delta, and positions quantity AA (positive for longs and negative for shorts):

N=Pfutures(Afutures+ΔAoptions)+PperpsAperpsN = \sum P_{futures} (A_{futures} + \Delta A_{options}) + P_{perps} A_{perps}

Risk Parameters

The diagonal parameters, denoted as α\alpha in the risk matrix, are precisely represented by the VaR estimations for each index:

αa=VaR(A)\alpha_a=VaR(A)

The off-diagonal parameters, β\beta, which capture the correlations between indices, are calculated by Risk Oracles based on the observed VaR of combined portfolios for each pair of assets. For assets AA and BB, depending on whether they are positively or negatively correlated, the correlation parameter is determined as follows:

βab=VaR(A)2+VaR(B)2VaR(A+B)2,ρ(A,B)>0\beta_{ab} = {VaR(A)^2 + VaR(B)^2 -VaR(A+B)^2}, \rho(A, B)> 0
βab=VaR(A+B)2VaR(A)2VaR(B)2,ρ(A,B)<0\beta_{ab} = {VaR(A+B)^2 - VaR(A)^2 - VaR(B)^2} , \rho(A,B)<0

While the volatility of underlying assets α\alpha and their correlations β\beta are collectively considered for all contract types involving the same assets, the independent (idiosyncratic) volatility of each contract including different expiries of the same derivatives series is assessed separately. These independent parameters γ\gamma represent fluctuations in the value of traders' positions that cannot be solely explained by the movements of the underlying assets, and may include factors, such as caused by noise trading.

The introduction of these parameters enables the efficient incorporation of adjustments for perpetual contracts, caused by funding rates. This results in a slight increase in margin requirements compared to normal expiring futures. Additionally, this approach effectively prohibits the possibility of unlimited leverage in sets of positions that are otherwise considered as perfectly hedged.

To calculate γ\gamma, Risk Oracles assess the observed difference in volatility between index prices and contract prices. For perpetuals, it also incorporates the expected funding rate, adjusted by VaR time period:

γ=VaR(contract)2VaR(index)2+r\gamma = \sqrt {VaR(contract)^2 - VaR(index)^2} + r'

Methodology Justification

It's important to note that while this methodology borrows the structure of calculations typically associated with the normal distribution, the actual variables and parameters used diverge from this norm. Specifically, all variance parameters are adjusted to the quantile representing the VaR metric, and the assumption that expected position returns follow a normal distribution is not made.

This empirical approach, while not a precise analytical representation, has demonstrated a good approximation for a portfolio's expected loss. The choice of a simpler formula for portfolio evaluation is intentional. Due to frequent recalculations within protocol execution, the formula must be deterministic and reproducible by Clearance Bots and other protocol participants. Therefore, complex calculations requiring numerical methods are avoided in favour of this more straightforward approach.

The justification for this methodology lies in its effectiveness and simplicity. Despite using a formula traditionally associated with normal distribution in a formally incorrect context, the empirical results have been encouraging. This approach provides a balance between computational efficiency and accuracy, crucial for decentralised systems where resource optimisation and deterministic outcomes are paramount. This practical compromise enables the CVEX Protocol to maintain robust risk management while ensuring operational efficiency.

In summary, this illustrates how the CVEX Protocol achieves true on-chain cross-margining.

Last updated