> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Query time (core)

For the GIRR risk class, there are three main chains of post-processor calculations: Delta, Vega, and Curvature.

## Delta and Vega

The calculation steps for Delta and Vega are the same:

1. The calculations start by applying currency conversion to the aggregated raw sensitivities from the cube to get the [Sensitivities](./delta-vega-sensi).

2. The [risk-weights](./delta-vega-curv-rw) are applied to get the [Weighted Sensitivities](./delta-vega-weighted-sensi) (per risk-factor).

3. The [(rho) correlations](./delta-vega-risk-position-corr) are then used to calculate the [Risk Position](./delta-vega-risk-position) (per bucket).

4. The Risk Positions are combined across all buckets to calculate the [Risk Charge](./delta-vega-risk-charge).

In the bookmarks folder "ActiveViam FRTB" -> "Basel Framework" -> "SBM",
there are bookmarks "GIRR Delta" and "GIRR Vega",
which contain tabs that walk through these calculation steps and include the measures mentioned here.

## Curvature

For Curvature, the calculation steps are:

1. Start with [vectors of shocked prices](./curvature-scenario-up-down-pv-ccy) indexed by risk-weight (per risk-factor).

2. The [risk-weight](./delta-vega-curv-rw) then determines which [Shock Up/Down Prices](./curv-shock-up-down) we want, subtracting the trade **PV** if necessary.

3. The [delta sensitivities](./curv-delta-sensi) are filtered sensitivities from the Delta calculations, and aggregated per Curvature risk-factor.

4. These are then combined to calculate the [CVR Up/Down](./curv-cvr-up-down) (per risk-factor).

5. The [Risk Position Up/Down](./curv-risk-position-up-down) are calculated per bucket.

6. The greater of the up and down risk-positions is identified by the [Risk Position Scenario](./curv-risk-position-scenario) and used for the [Risk Position](./curv-risk-position) (per bucket).

7. The Risk Positions are combined across all buckets to calculate the [Risk Charge](./curv-risk-charge).

The bookmark "ActiveViam FRTB" -> "Basel Framework" -> "SBM" -> "GIRR Curvature"
contains tabs that walk through these calculation steps and includes the measures mentioned here.
