Skip to main content

1.1.0

2026-11-30

VaR cube

New features

  • Scenario engine on the VaR cube: a scenario can override the Confidence Level measure with the constant_scalar or scale_scalar action. Queries on that scenario then return VaR and ES at a confidence level that the cube is not configured with. Scenarios are selected on the new Simulation Scenarios dimension. The feature is opt-in: the var-cube-starter does not bring the Atoti Server scenario engine, so the application wires it as the scenario engine documentation describes. The atoti.solution.model.cubes.var.simulations.enabled property, true by default, turns the feature off for the cube. See Scenarios.
  • Pre-trade What-If scenarios: a scenario can show the effect of a hypothetical trade that is not yet booked on VaR and ES. The trade’s TradePnL and TradeAttributes rows are loaded in advance under their own DataSimulationId. Activating the scenario makes them count in the queries that select it. Other queries do not include them. See How to activate a pre-trade What-If scenario.

Improvements

  • Faster, lighter incremental contributions: the Incremental VaR Contribution and Incremental ES Contribution measures are now faster and use less memory. The improvement is most visible on trade-level queries over large books or portfolios. Results, measure names, and configuration are unchanged.
  • Faster currency conversion of P&L vectors: queries on P&L vectors are now faster and allocate less memory when the vectors are already in the display currency. Conversion now skips the copy and multiplication when the FX rate is one. Results are unchanged.

Fixes

  • VaR and ES scenario index and name on each scenario: with the Scenario level on an axis, the VaR Scenario Index, VaR Scenario Name, ES Scenario Indices, and ES Scenario Name(s) measures repeated the value of the Scenario total on every scenario. They now have a value on the Scenario total only.
  • Startup no longer fails on cube levels with fields of the same name: the application failed at startup when the book aggregate provider was partitioned on a level whose table the fact table reaches through several joins, or whose field has the same name as the field of another level. The error asked for an explicit partitioning, which the IModelConfigurer bean could not give because it runs later. A level reached through several joins now resolves. When another level has a field of the same name, the application starts and logs a warning that names the provider and the two levels, and the IModelConfigurer bean can replace the partitioning. See How to resolve a clash of field names.

Changes

  • New default trade maturity: a trade with no maturity date, because the value is blank or the trade has no TradeAttributes row, now shows +999999999-12-31 on the trade maturity level instead of -999999999-01-01. VaR and ES results are unchanged.

API changes

  • Scenario level in the scenario index and name inputs: the constructors of VaRScenarioIndexInput, VaRScenarioNameInput, EsIndicesInput, and EsScenarioNamesInput take a new last argument, the scenario level. See Migration guides.
  • Scenario engine accessors on the VaR cube interfaces: in the package com.activeviam.solutions.marketrisk.lib.api.cube.var, IVaRCubeLevels has the new method simulationScenarios(), which returns null when the cube’s scenarios are not enabled. IVaRCubeProperties has the new method getSimulations(). A class that implements these interfaces must add the methods. See Migration guides.
  • New pnlVectorSumInframarginal() method: IVaRPnLMeasures has a new abstract pnlVectorSumInframarginal() method. A class that implements IVaRPnLMeasures must add it.
  • FX conversion inputs take the FX rate measure only: FxScalarConversionInput and FxVectorConversionInput no longer take an FxRateInput, so withFxRateInput(...) and fxRateInput() are removed. The FX rate measure is required. FxRateInput has a new optional vectorSize. See Migration guides.
  • FxVectorConversionInput takes additional levels and a missing-rate option: in the package com.activeviam.solutions.marketdata.lib.api.factories, the public constructor takes the underlying measure, the currency level, the additional levels, the FX rate measure, and nullWhenRateMissing. Additional levels are levels, besides the currency, along which the FX rate varies, such as a time point. When nullWhenRateMissing is true, the converted sum is null if any vector has no FX rate. Otherwise it sums the vectors that have one. The new accessors are additionalLevels() and nullWhenRateMissing(). The builder has the new methods withAdditionalLevel, withAdditionalLevels, clearAdditionalLevels, and withNullWhenRateMissing. By default there are no additional levels and nullWhenRateMissing is false, which converts as in 1.0.0. See Migration guides.