> ## 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.

# Market Risk Libraries

> Overview of the Market Risk Libraries Maven modules, covering calculation, configuration, datastore, cube, measures, and sources packages for the Sensitivities, VaR-ES, PnL, and combined cube domains.

The Atoti Market Risk libraries are a set of Maven modules containing calculations, services, and cube-related configuration, as follows:

| Module | Packages | Contents |
| - | - | - |
| mr-common-lib | com.activeviam.mr.common.calculations | Postprocessors, measure factories, and calculation implementation details common across models. |
| | com.activeviam.mr.common.constants | Constants used across all modules. |
| | com.activeviam.mr.common.services | Services common across models. |
| | com.activeviam.mr.common.domain | Domain-specific classes for each model. |
| | com.activeviam.mr.common.utils | Utility classes common across models. |
| mr-common-config | com.activeviam.mr.common.config | Model-agnostic configuration used in the MR application. |
| | com.activeviam.mr.common.cube | Cube-related configuration for all cubes. |
| | com.activeviam.mr.common.datastore | Datastore-related configuration for all cubes. |
| | com.activeviam.mr.common.measures | Measure-related configuration for all cubes. |
| | com.activeviam.mr.common.sources | Source-related configuration for all cubes. |
| mr-directquery | com.activeviam.mr.directquery | DirectQuery configuration and sources. |
| | com.activeviam.mr.migration | Migration-related classes. |
| | com.activeviam.mr.preview | DirectQuery-related preview features. |
| mr-sensi-lib | com.activeviam.mr.sensi.calculations | Postprocessors, measure factories, and calculation implementation details for the Sensitivity model. |
| mr-sensi-config | com.activeviam.mr.sensi.config | Sensitivity-specific configuration used in the MR application. |
| | com.activeviam.mr.sensi.cube | Cube-related configuration for the Sensitivity cube. |
| | com.activeviam.mr.sensi.datastore | Datastore-related configuration for the Sensitivity cube. |
| | com.activeviam.mr.sensi.measures | Measure-related configuration for the Sensitivity cube. |
| | com.activeviam.mr.sensi.sources | Source-related configuration for the Sensitivity cube. |
| mr-pnl-lib | com.activeviam.mr.pnl.measures | Measure factories, and calculation implementation details for the PnL model. |
| mr-pnl-config | com.activeviam.mr.pnl.config | Properties, adjustments and sign-off configuration for the PnL Cube. |
| | com.activeviam.mr.pnl.cube | Cube-related configuration for the PnL cube. |
| | com.activeviam.mr.pnl.datastore | Datastore-related configuration for the PnL cube. |
| | com.activeviam.mr.pnl.measures | Measure-related configuration for the PnL cube. |
| | com.activeviam.mr.pnl.sources | Source-related configuration for the PnL cube. |
| mr-product-control-config | com.activeviam.mr.productcontrol.datastore | Datastore-related configuration for product control features on the PnL cube. |
| | com.activeviam.mr.productcontrol.measures | Measure-related configuration for product control features on the PnL cube. |
| mr-var-lib | com.activeviam.mr.var.calculations | Postprocessors, measure factories, and calculation implementation details for the VaR model. |
| mr-var-config | com.activeviam.mr.var.config | VaR-specific configuration used in the MR application. |
| | com.activeviam.mr.var.cube | Cube-related configuration for the VaR-ES cube. |
| | com.activeviam.mr.var.datastore | Datastore-related configuration for the VaR-ES cube. |
| | com.activeviam.mr.var.measures | Measure-related configuration for the VaR-ES cube. |
| | com.activeviam.mr.var.sources | Source-related configuration for the VaR-ES cube. |
| mr-combined-lib | com.activeviam.mr.combined.calculations | Postprocessors for combined calculations across all other cubes. |
| mr-combined-config | com.activeviam.mr.combined.cube | Cube-related configuration for the MRCombined cube. |
| mr-combined-config | com.activeviam.mr.combined.measures | Measure-related configuration for the MRCombined cube. |

While we don't expect clients to change the code in the \*-lib modules, the source code is part of the distribution. The \*-config modules are intended to be customized through custom Spring Beans.
