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

# Migration notes 5.2

This page explains the changes required to migrate to the stated version
of Atoti FRTB.

## Migrate to 5.2.2

No migration needed.

### Breaking changes

None

### Summary

* Bug fixes

## Migrate to 5.2.1

No migration needed.

### Breaking changes

None

### Summary

* **Atoti Server version**: Upgraded to Atoti Server 6.0.13

## Migrate to 5.2.0

Upgrading from version 5.1.0, see [Atoti FRTB 5.2 Release
Notes](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-release/previous-versions/5.2/release-notes-5.2.md#520).

Atoti FRTB uses Atoti Server 6.0.9 and Atoti UI 5.1.x.
For new features and fixes included in these releases, please see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/) and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/intro/overview.md).

For clients licensed to use ActiveMonitor, a skeleton module based on
version 6.0.9 is included with the Atoti FRTB 5.2.0 release.

### Breaking Changes

* **DRC non-Sec risk-weights configuration** : A "bucket" column has been added to the [Default\_Risk\_Weights](https://docs.activeviam.com/solutions/frtb/6.0/configuration/default_risk_weights.md) configuration file. This column must be added to existing files, but it may be empty.
* **Variable name changes in Topic Config** : Changes to variable names and references for the topic configs.
* **Java 17**: Java 17 is now required to run Atoti FRTB and additional JVM options are needed.
* **"Category" Hierarchies removed**: For SBM Equity and CSR, the technical "Category" hierarchies are no longer needed and have been removed.
* **"DRC Seniority Ranking" level removed**: This technical level is no longer needed and has been removed.
* **Security Configuration upgraded**: The security configuration has been upgraded to Spring Security 5.8 and no longer uses deprecated classes.
* **CSR Correlation configuration**: The CSR gamma correlations are now fully defined by bucket pairs, instead of just the "sector" component.
* **Equity Correlation configuration**: The Equity gamma correlations are now defined by bucket pairs in a new file.
* **DirectQuery Database**: The SASensitivities table is now used for the RRAO Notional, instead of the SATradeDescription table.

### Summary

* Upgraded Spring Security to version 5.8.7 to resolve vulnerabilities and prepare for the upgrade to Spring Security 6.0 (via Spring Boot 3).
* Added "bucket" column to the [Default\_Risk\_Weights](https://docs.activeviam.com/solutions/frtb/6.0/configuration/default_risk_weights.md) configuration file.
* Updated configuration files to include support for US-NPR parameter set.
* Changed variable names and references for the topic configs.
* In the Stress Calibration cube:
  * Replaced PnL vector with PV vector and base PV.
  * Added scenario FX rates.
* Added file formats for loading SA summary data.
* Move to Java 17.
* Schema clean-up.
* Variable name changes in topic configs.
* Reference configuration data for non-BCBS Parameter sets have been separated into their own folders. Additionally, file names for separated data have suffixes denoting parameter set.

#### DirectQuery Database Schema

We have made the following changes to clean up the DirectQuery Database Schema:

The following tables are no longer needed:

* `SENIORITY_DESCRIPTION`
* `CSRBUCKET_DESC`
* `EQUITY_BUCKET_DESC`

The Notional used for RRAO will be stored in the `SASENSITIVITIES` table instead of the `SATRADE_DESCRIPTION` table.

#### Configuration Files

The gamma correlations for CSR and Equity are now configured by bucket pairs in configuration files.
Previously, only the "sector" component of the CSR gamma correlations was stored this way,
and the Equity gamma correlations were configured through several properties.

The DRC Seniority Description file has been changed into a configuration file and the "as-of date" column removed.
As part of this move, the SeniorityDescription table has been removed from the star Schema,
and the "DRC Seniority Ranking" level is no longer available in the cube.

#### RRAO File

A new RRAO file has been added.  This replaces the RRAO columns in the Trade Attributes file.

The old trade attributes files can still be loaded, but the RRAO-related columns have been deprecated.
A script is included to generate the new RRAO files from old trade attributes files.

#### "Category" Hierarchies Removed

The technical "Category" hierarchies used for the Equity and CSR risk classes have been removed.
For each of the removed hierarchies, there is a non-Category hierarchy that may be used in its place.

While we don't expect these hierarchies to be used in saved queries or bookmarks,
if you would like to restore these hierarchies as a customization, please contact us.

#### Spring Security Upgrade

We have upgraded to Spring Security 5.8.7, see [Spring's migration guide](https://docs.spring.io/spring-security/reference/migration/index.html).

The `frtb-common` module has been removed and security configurations which were previously found there have been moved into `frtb-starter`.

You will eventually need to migrate your own custom security configuration(s) in preparation for
Spring Security 6.0. We have upgraded our out-of-the-box security configurations to help in this migration.

> [!NOTE]
>
> We recommend using your own custom security configuration(s) and referring to the out-of-the-box security configuration
> provided only as a sample.

The default security users and roles have not changed, only the way we implement the security. We have done so by making the following changes:

##### Stop using `WebSecurityConfigurerAdapter`

We have replaced instances of `WebSecurityConfigurerAdapter` with `SecurityFilterChain` beans.
Note that in our reference implementation these can now be found inside `FRTBSecurityFilterChainsConfig`.

##### Use the new `requestMatchers` methods

In Authorize Http Requests, we have replaced invocations of `http.authorizeHttpRequests((authz) -> authz.antMatchers(...))` with `http.authorizeHttpRequests((authz) -> authz.requestMatchers(...))`.

##### Use the new securityMatchers methods

We have replaced invocations of `http.antMatchers(...)` with `http.securityMatchers(...)`.

As an example of the previous changes, the configuration for accessing the endpoint which exposes the JWT token changed from:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Configuration
@Order(1)
public static abstract class AJwtSecurityConfigurer extends WebSecurityConfigurerAdapter {

  @Autowired
  protected ApplicationContext context;

  @Autowired
  @Qualifier(BASIC_AUTH_BEAN_NAME)
  protected AuthenticationEntryPoint authenticationEntryPoint;

  @Override
  protected void configure(HttpSecurity http) throws Exception {
	  http
            .antMatcher(JwtRestServiceConfig.REST_API_URL_PREFIX + "/**")
            // As of Spring Security 4.0, CSRF protection is enabled by default.
            .csrf().disable()
            // Configure CORS
            .cors().and()
            .authorizeRequests()
            .antMatchers("/**").hasAnyAuthority(ROLE_USER)
            .and()
            .httpBasic().authenticationEntryPoint(authenticationEntryPoint);
  }
}
```

to

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Bean
@Order(1)
protected SecurityFilterChain jwtSecurityFilterChain(HttpSecurity http, ApplicationContext applicationContext) throws Exception {
final AuthenticationEntryPoint basicAuthenticationEntryPoint = applicationContext.getBean(BASIC_AUTH_BEAN_NAME, AuthenticationEntryPoint.class);
        return http
                // As of Spring Security 4.0, CSRF protection is enabled by default.
                .csrf(AbstractHttpConfigurer::disable)
                // Configure CORS
                .cors().and()
                .securityMatcher(url(JwtRestServiceConfig.REST_API_URL_PREFIX, WILDCARD))
                .authorizeHttpRequests(auth -> auth.requestMatchers(HttpMethod.OPTIONS, url(WILDCARD))
                    .permitAll()
                    .anyRequest()
                    .permitAll()
                )
                .httpBasic(basic -> basic.authenticationEntryPoint(basicAuthenticationEntryPoint))
                .build();
        }
```

##### Removed imports of `ActivePivotRemotingServicesConfig`

This class imports `org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter`, which may (if used) expose access to [CVE-2016-1000027 in the Spring-web project](https://github.com/spring-projects/spring-framework/issues/24434).

#### Variable name changes in topic configs

We have changed variable names and references for the topic configurations in our source configs. While the variables used have been changed or removed, the values themselves remain unchanged.

Here's a summary of the variable name and reference changes:

* Removed redundant static variables in source configs, which were duplicates of existing static store name variables.
* Made use of store name variables from datastore configs in source configs, DLC, tuple publishers, and column calculators, where appropriate.
* Prefixed all topic variables with "TOPIC\_".
* Suffixed all store name variables with "\_STORE\_NAME".

##### Source config changes

###### AConfigurationSourceConfig

| Old Topic | Old Store Reference | New Topic | Store Reference |
| - | - | - | - |
| COMMODITY\_BUCKETS\_RISK\_WEIGHT\_STORE | COMMODITY\_BUCKETS\_RISK\_WEIGHT\_STORE | TOPIC\_COMMODITY\_BUCKETS\_RISK\_WEIGHT | ParametersDatastoreConfig.COMMODITY\_BUCKETS\_RISK\_WEIGHT\_STORE\_NAME |
| COMMODITY\_INTRA\_BUCKET\_CORRELATIONS\_STORE | COMMODITY\_INTRA\_BUCKET\_CORRELATIONS\_STORE | TOPIC\_COMMODITY\_INTRA\_BUCKET\_CORRELATIONS | ParametersDatastoreConfig.COMMODITY\_INTRA\_BUCKET\_CORRELATIONS\_STORE\_NAME |
| DRC\_WEIGHT\_STORE | DRC\_WEIGHT\_STORE | TOPIC\_DRC\_WEIGHT | ParametersDatastoreConfig.DRC\_WEIGHT\_STORE\_NAME |
| EQUITY\_BUCKETS\_RISK\_WEIGHT\_STORE | EQUITY\_BUCKETS\_RISK\_WEIGHT\_STORE | TOPIC\_EQUITY\_BUCKETS\_RISK\_WEIGHT | ParametersDatastoreConfig.EQUITY\_BUCKETS\_RISK\_WEIGHT\_STORE\_NAME |
| ERBA\_RISK\_WEIGHT\_STORE | ERBA\_RISK\_WEIGHT\_STORE | TOPIC\_ERBA\_RISK\_WEIGHT | ParametersDatastoreConfig.ERBA\_RISK\_WEIGHT\_STORE\_NAME |
| FRTB\_PARAMETERS\_STORE | FRTB\_PARAMETERS\_STORE | TOPIC\_FRTB\_PARAMETERS | ParametersDatastoreConfig.FRTB\_PARAMETERS\_STORE\_NAME |
| CALENDAR\_STORE\_NAME | CALENDAR\_STORE\_NAME | TOPIC\_CALENDAR | DatastoreConfig.CALENDAR\_STORE\_NAME |
| FX\_DELTA\_SPECIAL\_CROSSES\_STORE | FX\_DELTA\_SPECIAL\_CROSSES\_STORE | TOPIC\_FX\_DELTA\_SPECIAL\_CROSSES | ParametersDatastoreConfig.FX\_DELTA\_SPECIAL\_CROSSES\_STORE\_NAME |
| GIRR\_DELTA\_WEIGHTING\_STORE | GIRR\_DELTA\_WEIGHTING\_STORE | TOPIC\_GIRR\_DELTA\_WEIGHTING | ParametersDatastoreConfig.GIRR\_DELTA\_WEIGHTING\_STORE\_NAME |
| GIRR\_MAJOR\_CURRENCY\_STORE | GIRR\_MAJOR\_CURRENCY\_STORE | TOPIC\_GIRR\_MAJOR\_CURRENCY | ParametersDatastoreConfig.GIRR\_MAJOR\_CURRENCY\_STORE\_NAME |
| INSTRUMENT\_TO\_LGD\_STORE | INSTRUMENT\_TO\_LGD\_STORE | TOPIC\_INSTRUMENT\_TO\_LGD | ParametersDatastoreConfig.INSTRUMENT\_TO\_LGD\_STORE\_NAME |
| LIQUIDITY\_HORIZONS\_STORE | LIQUIDITY\_HORIZONS\_STORE | TOPIC\_LIQUIDITY\_HORIZONS | ParametersDatastoreConfig.LIQUIDITY\_HORIZONS\_STORE\_NAME |
| OBLIGOR\_TO\_RISK\_WEIGHT\_STORE | OBLIGOR\_TO\_RISK\_WEIGHT\_STORE | TOPIC\_OBLIGOR\_TO\_RISK\_WEIGHT | ParametersDatastoreConfig.OBLIGOR\_TO\_RISK\_WEIGHT\_STORE\_NAME |
| OPTION\_RESIDUAL\_MATURITY\_VERTICES\_STORE | OPTION\_RESIDUAL\_MATURITY\_VERTICES\_STORE | TOPIC\_OPTION\_RESIDUAL\_MATURITY\_VERTICES | ParametersDatastoreConfig.OPTION\_RESIDUAL\_MATURITY\_VERTICES\_STORE\_NAME |
| PARAMETER\_SET\_STORE | PARAMETER\_SET\_STORE | TOPIC\_PARAMETER\_SET | ParameterSetDatastoreConfig.PARAMETER\_SET\_STORE\_NAME |
| VEGA\_LIQUIDITY\_HORIZONS\_STORE | VEGA\_LIQUIDITY\_HORIZONS\_STORE | TOPIC\_VEGA\_LIQUIDITY\_HORIZONS | ParametersDatastoreConfig.VEGA\_LIQUIDITY\_HORIZONS\_STORE\_NAME |
| VERTICES\_STORE | VERTICES\_STORE | TOPIC\_VERTICES | ParametersDatastoreConfig.VERTICES\_STORE\_NAME |
| FX\_RISK\_WEIGHT\_OVERRIDES\_STORE | FX\_RISK\_WEIGHT\_OVERRIDES\_STORE | TOPIC\_FX\_RISK\_WEIGHT\_OVERRIDES | ParametersDatastoreConfig.FX\_RISK\_WEIGHT\_OVERRIDES\_STORE\_NAME |
| GIRR\_CORRELATION\_OVERRIDES\_STORE | GIRR\_CORRELATION\_OVERRIDES\_STORE | TOPIC\_GIRR\_CORRELATION\_OVERRIDES | ParametersDatastoreConfig.GIRR\_CORRELATION\_OVERRIDES\_STORE\_NAME |
| SENSITIVITY\_SCALING\_STORE | SENSITIVITY\_SCALING\_STORE | TOPIC\_SENSITIVITY\_SCALING | ParametersDatastoreConfig.SENSITIVITY\_SCALING\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_NONSEC | CSR\_NS\_BUCKETS\_STORE | TOPIC\_CSR\_BUCKET\_NONSEC | SADatastoreConfig.CSR\_BUCKETS\_NON\_SEC\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_SECNONCTP | CSR\_SEC\_NON\_CTP\_BUCKETS\_STORE | TOPIC\_CSR\_BUCKET\_SECNONCTP | SADatastoreConfig.CSR\_BUCKETS\_SEC\_NON\_CTP\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_SECCTP | CSR\_SEC\_CTP\_BUCKETS\_STORE | TOPIC\_CSR\_BUCKET\_SECCTP | SADatastoreConfig.CSR\_BUCKETS\_SEC\_CTP\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_RISK\_WEIGHTS\_NONSEC | CSR\_NS\_BUCKETS\_RISK\_WEIGHT\_STORE | TOPIC\_CSR\_BUCKET\_RISK\_WEIGHTS\_NONSEC | ParametersDatastoreConfig.CSR\_BUCKETS\_RISK\_WEIGHT\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_RISK\_WEIGHTS\_SECNONCTP | CSR\_SEC\_NON\_CTP\_BUCKETS\_RISK\_WEIGHT\_STORE | TOPIC\_CSR\_BUCKET\_RISK\_WEIGHTS\_SECNONCTP | ParametersDatastoreConfig.CSR\_BUCKETS\_RISK\_WEIGHT\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_RISK\_WEIGHTS\_SECCTP | CSR\_SEC\_CTP\_BUCKETS\_RISK\_WEIGHT\_STORE | TOPIC\_CSR\_BUCKET\_RISK\_WEIGHTS\_SECCTP | ParametersDatastoreConfig.CSR\_BUCKETS\_RISK\_WEIGHT\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_CORRELATIONS\_NONSEC | CSR\_NS\_BUCKETS\_CORRELATIONS\_STORE | TOPIC\_CSR\_BUCKET\_CORRELATIONS\_NONSEC | ParametersDatastoreConfig.CSR\_BUCKET\_CORRELATIONS\_STORE\_NAME |
| CSR\_NON\_SEC\_HIGH\_RATINGS\_STORE | CSR\_NON\_SEC\_HIGH\_RATINGS\_STORE | TOPIC\_CSR\_NON\_SEC\_HIGH\_RATINGS | ParametersDatastoreConfig.CSR\_NON\_SEC\_HIGH\_RATINGS\_STORE\_NAME |
| IMA\_MULTIPLIER\_STORE\_NAME | IMA\_MULTIPLIER\_STORE\_NAME | TOPIC\_IMA\_MULTIPLIER | ParametersDatastoreConfig.IMA\_MULTIPLIER\_STORE\_NAME |

###### ASensiSourceConfig

| Old Topic | Old Store Reference | New Topic | Store Reference |
| - | - | - | - |
| SbmDeltaFileConstants.TOPIC\_SENSITIVITIES | SA\_SENSITIVITIES\_STORE | SbmDeltaFileConstants.TOPIC\_SENSITIVITIES | SADatastoreConfig.SA\_SENSITIVITIES\_STORE\_NAME |
| SbmVegaFileConstants.TOPIC\_SENSITIVITIES | SA\_SENSITIVITIES\_STORE | SbmVegaFileConstants.TOPIC\_SENSITIVITIES | SADatastoreConfig.SA\_SENSITIVITIES\_STORE\_NAME |
| SbmCurvatureFileConstants.TOPIC\_SENSITIVITIES | SA\_SENSITIVITIES\_STORE | SbmCurvatureFileConstants.TOPIC\_SENSITIVITIES | SADatastoreConfig.SA\_SENSITIVITIES\_STORE\_NAME |
| CrifFileConstants.TOPIC\_CRIF | SA\_SENSITIVITIES\_STORE | CrifFileConstants.TOPIC\_CRIF | SADatastoreConfig.SA\_SENSITIVITIES\_STORE\_NAME |
| TOPIC\_UPDATE\_OPTIONALITY | SA\_SENSITIVITIES\_STORE | TOPIC\_UPDATE\_OPTIONALITY | SADatastoreConfig.SA\_SENSITIVITIES\_STORE\_NAME |

###### ASourceConfig

| Old Topic | Old Store Reference | New Topic | Store Reference |
| - | - | - | - |
| SENIORITY\_DESCRIPTION\_STORE | SENIORITY\_DESCRIPTION\_STORE | TOPIC\_SENIORITY\_DESCRIPTION | ParametersDatastoreConfig.SENIORITY\_DESCRIPTION\_STORE\_NAME |
| FX\_STORE | FX\_STORE | TOPIC\_FX | DatastoreConfig.FX\_STORE\_NAME |
| TOPIC\_FX\_HISTORICAL | FX\_STORE | TOPIC\_FX\_HISTORICAL | DatastoreConfig.FX\_STORE\_NAME |
| ES\_SCENARIO\_FX\_STORE | ES\_SCENARIO\_FX\_STORE | TOPIC\_ES\_SCENARIO\_FX | IMADatastoreConfig.ES\_SCENARIO\_FX\_STORE\_NAME |
| TOPIC\_ES\_SCENARIO\_FX\_HISTORICAL | ES\_SCENARIO\_FX\_STORE | TOPIC\_ES\_SCENARIO\_FX\_HISTORICAL | IMADatastoreConfig.ES\_SCENARIO\_FX\_STORE\_NAME |
| SCENARIOS\_STORE | SCENARIOS\_STORE | TOPIC\_SCENARIOS | IMADatastoreConfig.SCENARIOS\_STORE\_NAME |
| LEGAL\_ENTITY\_ATTRIBUTES\_STORE | LEGAL\_ENTITY\_ATTRIBUTES\_STORE | TOPIC\_LEGAL\_ENTITY\_ATTRIBUTES | DatastoreConfig.LEGAL\_ENTITY\_ATTRIBUTES\_STORE\_NAME |
| EQUITY\_BUCKETS\_STORE | EQUITY\_BUCKETS\_STORE | TOPIC\_EQUITY\_BUCKETS | SADatastoreConfig.EQUITY\_BUCKETS\_STORE\_NAME |
| COMMODITY\_BUCKETS\_STORE | COMMODITY\_BUCKETS\_STORE | TOPIC\_COMMODITY\_BUCKETS | SADatastoreConfig.COMMODITY\_BUCKET\_STORE\_NAME |
| DRC\_SEC\_NON\_CTP\_BUCKETS\_STORE | DRC\_SEC\_NON\_CTP\_BUCKETS\_STORE | TOPIC\_DRC\_SEC\_NON\_CTP\_BUCKETS | SADatastoreConfig.DRC\_SEC\_NON\_CTP\_BUCKETS\_STORE\_NAME |
| TOPIC\_EQUITY\_BUCKET\_DESCRIPTION | EQUITY\_BUCKETS\_DESCRIPTION\_STORE | TOPIC\_EQUITY\_BUCKET\_DESCRIPTION | SADatastoreConfig.EQUITY\_BUCKET\_DESCRIPTION\_STORE\_NAME |
| IMA\_RISK\_FACTORS\_STORE | IMA\_RISK\_FACTORS\_STORE | TOPIC\_IMA\_RISK\_FACTORS | IMADatastoreConfig.IMA\_RISK\_FACTORS\_STORE\_NAME |
| TOPIC\_IMA\_RISK\_FACTORS\_HISTORICAL | IMA\_RISK\_FACTORS\_STORE | TOPIC\_IMA\_RISK\_FACTORS\_HISTORICAL | IMADatastoreConfig.IMA\_RISK\_FACTORS\_STORE\_NAME |
| PL\_SCENARIO\_STORE | PL\_SCENARIO\_STORE | TOPIC\_PL\_SCENARIOS | IMADatastoreConfig.PL\_SCENARIOS\_STORE\_NAME |
| PL\_SUMMARY\_SCENARIOS\_STORE | PL\_SCENARIO\_STORE | TOPIC\_PL\_SUMMARY\_SCENARIOS | IMADatastoreConfig.PL\_SCENARIOS\_STORE\_NAME |
| DRC\_SCENARIOS\_STORE | DRC\_SCENARIOS\_STORE | TOPIC\_DRC\_SCENARIOS | IMADatastoreConfig.DRC\_SCENARIOS\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_DESCRIPTION\_NONSEC | CSR\_NS\_BUCKETS\_DESCRIPTION\_STORE | TOPIC\_CSR\_BUCKET\_DESCRIPTION\_NONSEC | SADatastoreConfig.CSR\_BUCKET\_DESCRIPTION\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_DESCRIPTION\_SECNONCTP | CSR\_SEC\_NON\_CTP\_BUCKETS\_DESCRIPTION\_STORE | TOPIC\_CSR\_BUCKET\_DESCRIPTION\_SECNONCTP | SADatastoreConfig.CSR\_BUCKET\_DESCRIPTION\_STORE\_NAME |
| TOPIC\_CSR\_BUCKET\_DESCRIPTION\_SECCTP | CSR\_SEC\_CTP\_BUCKETS\_DESCRIPTION\_STORE | TOPIC\_CSR\_BUCKET\_DESCRIPTION\_SECCTP | SADatastoreConfig.CSR\_BUCKET\_DESCRIPTION\_STORE\_NAME |
| STRESS\_CALIBRATION\_SCENARIOS\_STORE | STRESS\_CALIBRATION\_SCENARIOS\_STORE | TOPIC\_STRESS\_CALIBRATION\_SCENARIOS | StressCalibrationDatastoreConfig.STRESS\_CALIBRATION\_SCENARIOS\_STORE\_NAME |
| CombinedBookParentChildDeskFileConstants.TOPIC\_COMBINED\_BOOK\_PARENT\_CHILD\_DESK | BOOK\_PARENT\_CHILD\_STORE\_NAME | CombinedBookParentChildDeskFileConstants.TOPIC\_COMBINED\_BOOK\_PARENT\_CHILD\_DESK | DatastoreConfig.BOOK\_PARENT\_CHILD\_STORE\_NAME |
| TOPIC\_BOOK\_PARENT\_CHILD | BOOK\_PARENT\_CHILD\_STORE\_NAME | TOPIC\_BOOK\_PARENT\_CHILD | DatastoreConfig.BOOK\_PARENT\_CHILD\_STORE\_NAME |
| TOPIC\_BOOK\_PARENT\_CHILD\_HISTORICAL | BOOK\_PARENT\_CHILD\_STORE\_NAME | TOPIC\_BOOK\_PARENT\_CHILD\_HISTORICAL | DatastoreConfig.BOOK\_PARENT\_CHILD\_STORE\_NAME |
| TOPIC\_BOOK\_DESK\_MAPPING | BOOK\_DESK\_MAPPING\_STORE\_NAME | TOPIC\_BOOK\_DESK\_MAPPING | DatastoreConfig.BOOK\_DESK\_MAPPING\_STORE\_NAME |
| TOPIC\_BOOK\_DESK\_MAPPING\_HISTORICAL | BOOK\_DESK\_MAPPING\_STORE\_NAME | TOPIC\_BOOK\_DESK\_MAPPING\_HISTORICAL | DatastoreConfig.BOOK\_DESK\_MAPPING\_STORE\_NAME |
| TOPIC\_DESK\_DESCRIPTION\_STORE | DESK\_DESCRIPTION\_STORE\_NAME | TOPIC\_DESK\_DESCRIPTION | DatastoreConfig.DESK\_DESCRIPTION\_STORE\_NAME |
| LEGAL\_ENTITY\_PARENT\_CHILD\_STORE | LEGAL\_ENTITY\_PARENT\_CHILD\_STORE | TOPIC\_LEGAL\_ENTITY\_PARENT\_CHILD | DatastoreConfig.LEGAL\_ENTITY\_PARENT\_CHILD\_STORE\_NAME |
| RISK\_FACTOR\_DESCRIPTION\_OVERRIDES\_STORE | RISK\_FACTOR\_DESCRIPTION\_OVERRIDES\_STORE | TOPIC\_RISK\_FACTOR\_DESCRIPTION\_OVERRIDES | SADatastoreConfig.RISK\_FACTOR\_DESCRIPTION\_OVERRIDES\_STORE\_NAME |
| UNDERLYING\_DESCRIPTION\_OVERRIDES\_STORE | UNDERLYING\_DESCRIPTION\_OVERRIDES\_STORE | TOPIC\_UNDERLYING\_DESCRIPTION\_OVERRIDES | SADatastoreConfig.UNDERLYING\_DESCRIPTION\_OVERRIDES\_STORE\_NAME |
| OBLIGOR\_OVERRIDES\_STORE | OBLIGOR\_OVERRIDES\_STORE | TOPIC\_OBLIGOR\_OVERRIDES | SADatastoreConfig.OBLIGOR\_OVERRIDES\_STORE\_NAME |
| TRANCHE\_OVERRIDES\_STORE | TRANCHE\_OVERRIDES\_STORE | TOPIC\_TRANCHE\_OVERRIDES | SADatastoreConfig.TRANCHE\_OVERRIDES\_STORE\_NAME |
| RRAO\_OVERRIDES\_STORE | RRAO\_OVERRIDES\_STORE | TOPIC\_RRAO\_OVERRIDES | SADatastoreConfig.RRAO\_OVERRIDES\_STORE\_NAME |
| LEGAL\_ENTITY\_IMPORTS\_STORE | LEGAL\_ENTITY\_IMPORTS\_STORE | TOPIC\_LEGAL\_ENTITY\_IMPORTS | DatastoreConfig.LEGAL\_ENTITY\_IMPORTS\_STORE\_NAME |
| LEGAL\_ENTITY\_IMPORTS\_STORE | LEGAL\_ENTITY\_IMPORTS\_STORE | TOPIC\_LEGAL\_ENTITY\_IMPORTS | DatastoreConfig.LEGAL\_ENTITY\_IMPORTS\_STORE\_NAME |
| PL\_STORE\_NAME | PL\_STORE\_NAME | TOPIC\_PL\_TRADES | IMADatastoreConfig.PL\_STORE\_NAME |
| PL\_SUMMARY\_STORE | PL\_STORE\_NAME | TOPIC\_PL\_SUMMARY | IMADatastoreConfig.PL\_STORE\_NAME |
| DRCScenarioCountFileConstants.TOPIC\_DRC\_SCENARIO\_COUNT | DRC\_SCENARIOS\_COUNT\_STORE | DRCScenarioCountFileConstants.TOPIC\_DRC\_SCENARIO\_COUNT | IMADatastoreConfig.DRC\_SCENARIOS\_COUNT\_STORE\_NAME |
| TradeAttributesFileConstants.TOPIC\_TRADES | SA\_SENSITIVITIES\_STORE | TradeAttributesFileConstants.TOPIC\_TRADES | SADatastoreConfig.SA\_SENSITIVITIES\_STORE\_NAME |
| DRCFileConstants.TOPIC\_DRC | IMA\_DRC\_STORE | DRCFileConstants.TOPIC\_DRC | IMADatastoreConfig.IMA\_DRC\_STORE\_NAME |
| DRCFileConstants.TOPIC\_DRC | SA\_SENSITIVITIES\_STORE | DRCFileConstants.TOPIC\_DRC | SADatastoreConfig.SA\_SENSITIVITIES\_STORE\_NAME |
| DRCNonLinearRecoveryFileConstants.TOPIC\_DRC\_NONLINEAR\_RECOVERY | IMA\_DRC\_STORE | DRCNonLinearRecoveryFileConstants.TOPIC\_DRC\_NONLINEAR\_RECOVERY | IMADatastoreConfig.IMA\_DRC\_STORE\_NAME |
| IMATradesFileConstants.TOPIC\_IMA\_TRADES | IMA\_TRADES\_STORE | IMATradesFileConstants.TOPIC\_IMA\_TRADES | IMADatastoreConfig.IMA\_TRADES\_STORE\_NAME |
| IMASummaryFileConstants.TOPIC\_IMA\_SUMMARY | IMA\_TRADES\_STORE | IMASummaryFileConstants.TOPIC\_IMA\_SUMMARY | IMADatastoreConfig.IMA\_TRADES\_STORE\_NAME |
| IMADRCSummaryFileConstants.TOPIC\_IMA\_DRC\_SUMMARY | IMA\_DRC\_STORE | IMADRCSummaryFileConstants.TOPIC\_IMA\_DRC\_SUMMARY | IMADatastoreConfig.IMA\_DRC\_STORE\_NAME |
| StressCalibrationTradesFileConstants.TOPIC\_STRESS\_CALIBRATION\_TRADES | STRESS\_CALIBRATION\_TRADES\_STORE | StressCalibrationTradesFileConstants.TOPIC\_STRESS\_CALIBRATION\_TRADES | StressCalibrationDatastoreConfig.STRESS\_CALIBRATION\_TRADES\_STORE\_NAME |

##### Datastore variable changes

| Old Store | New Store |
| - | - |
| STRESS\_CALIBRATION\_DATA\_SET\_STORE | STRESS\_CALIBRATION\_DATA\_SET\_STORE\_NAME |
| CSR\_BUCKETS\_NON\_SEC\_STORE | CSR\_BUCKETS\_NON\_SEC\_STORE\_NAME |
| CSR\_BUCKETS\_SEC\_CTP\_STORE | CSR\_BUCKETS\_SEC\_CTP\_STORE\_NAME |
| CSR\_BUCKETS\_SEC\_NON\_CTP\_STORE | CSR\_BUCKETS\_SEC\_NON\_CTP\_STORE\_NAME |

#### Reference configuration data for non-BCBS Parameter sets

There are now separate directories holding the configuration for the individual parameter sets CRR2, CRR3, NPR, and PRA.
The top-level configuration directory now retains just the BCBS parameter set.

### Input file formats

#### Added

| File | Details |
| - | - |
| [RRAO](https://docs.activeviam.com/solutions/frtb/6.0/input-files/rrao-trade.md) | File format for trade-level Residual Risk Add On |
| [Stress Calibration Scenario FX Rates](https://docs.activeviam.com/solutions/frtb/6.0/input-files/stress-calibration-scenario-fx-rates.md) | Provides FX spot rates used in stress calibration scenarios |
| [Summary Curvature](https://docs.activeviam.com/solutions/frtb/6.0/input-files/curvature-summary.md) | File format for summary StandardisedApproachCube Curvature data |
| [Delta Summary](https://docs.activeviam.com/solutions/frtb/6.0/input-files/delta-summary.md) | File format for summary StandardisedApproachCube Delta data |
| [Vega Summary](https://docs.activeviam.com/solutions/frtb/6.0/input-files/vega-summary.md) | File format for summary StandardisedApproachCube Vega data |
| [SA DRC Summary](https://docs.activeviam.com/solutions/frtb/6.0/input-files/sa-drc-summary.md) | File format for summary StandardisedApproachCube DRC data |
| [RRAO Summary](https://docs.activeviam.com/solutions/frtb/6.0/input-files/rrao-summary.md) | File format for summary Residual Risk Add On |

> [!NOTE]
>
> Input file formats for trade-level Curvature, Delta, Vega, and DRC are now distinguished as [Trade-level Curvature](https://docs.activeviam.com/solutions/frtb/6.0/input-files/curvature-trade.md), [Trade-level Delta](https://docs.activeviam.com/solutions/frtb/6.0/input-files/delta-trade.md), [Trade-level Vega](https://docs.activeviam.com/solutions/frtb/6.0/input-files/vega-trade.md), and [Trade-level DRC](https://docs.activeviam.com/solutions/frtb/6.0/input-files/sa-drc-trade.md) respectively).

#### Modified

| Modification | File | Field | Optional | Description |
| - | - | - | - | - |
| Deleted | [Stress Calibration PL Trades](https://docs.activeviam.com/solutions/frtb/6.0/input-files/stress-calibration-pl-trades.md) | PnL | N | Replaced with PV. |
| Added | [Stress Calibration PL Trades](https://docs.activeviam.com/solutions/frtb/6.0/input-files/stress-calibration-pl-trades.md) | PV | N | Replaces PnL (backwards compatible). |
| Added | [Stress Calibration PL Trades](https://docs.activeviam.com/solutions/frtb/6.0/input-files/stress-calibration-pl-trades.md) | Base PV | Y | If present, subtracted from PV to get PnL. |
| Deprecated | [Trade Attributes](https://docs.activeviam.com/solutions/frtb/6.0/input-files/trade-attributes.md) | ExoticUnderlying | | RRAO now has its own file type [RRAO](https://docs.activeviam.com/solutions/frtb/6.0/input-files/rrao-trade.md). Loading RRAO via the Trade Attributes file is now deprecated. |
| Deprecated | [Trade Attributes](https://docs.activeviam.com/solutions/frtb/6.0/input-files/trade-attributes.md) | Notional | | As above & previously deprecated just for DRC |
| Deprecated | [Trade Attributes](https://docs.activeviam.com/solutions/frtb/6.0/input-files/trade-attributes.md) | Notional Ccy | | As above & previously deprecated just for DRC |
| Deprecated | [Trade Attributes](https://docs.activeviam.com/solutions/frtb/6.0/input-files/trade-attributes.md) | OtherResidualRiskType | | As above |
| Deprecated | [Trade Attributes](https://docs.activeviam.com/solutions/frtb/6.0/input-files/trade-attributes.md) | ResidualRisk | | As above |
| Deprecated | [Trade Attributes](https://docs.activeviam.com/solutions/frtb/6.0/input-files/trade-attributes.md) | RRAO Category | | As above |

### Configuration files

#### Files Added

##### DRC Seniority Description.csv

Changed the DRC Seniority Description input file into a configuration file, [DRC Seniority Description.csv](https://docs.activeviam.com/solutions/frtb/6.0/configuration/drc-seniority-description.md) without the AsOfDate column.

##### Equity Bucket Correlations

The gamma correlations between Equity buckets is now configured in the [Equity\_Bucket\_Correlations](https://docs.activeviam.com/solutions/frtb/6.0/configuration/equity_bucket_correlations.md) file.

#### Files Modified

##### [Default\_Risk\_Weights](https://docs.activeviam.com/solutions/frtb/6.0/configuration/default_risk_weights.md)

| Modification | Field | Optional | Description |
| - | - | - | - |
| Added | Bucket | Y | Bucket may be used to look up DRC non-Sec risk-weights |

##### [frtb-config.properties](https://docs.activeviam.com/solutions/frtb/6.0/configuration/frtb-config_properties.md)

Deleted properties:

| Property Name | Comment |
| - | - |
| delta.ccy.level | Property is no longer used now that stores have been merged into SASensitivities store |
| vega.ccy.level | As above |
| risk-weight.level | As above |
| commodity.curvature.double-sums.levels | As above |
| nb.elemts.analysis.hierarchy | As above |
| ima.desk.level | As above |
| pl.index.hierarchy.level | As above |
| book.level | As above |
| book.hierarchy | As above |
| legal-entity.hierarchy | As above |
| rrao.category.level | As above |
| ima.drc.seniority.level | As above |
| drc.seniority.ranking.level | `DRC Seniority Ranking` level no longer exists as `SeniorityDescription` store has been removed from the star schema |
| equity.market-data.sector.category.level | Level intended to be used with properties has been removed |
| equity.market-data.market-cap.category.level | As above |
| equity.market-data.economy.category.level | As above |
| csr-ns.market-data.rating.category.level | As above |
| csr-ns.market-data.sector.category.level | As above |
| csr-sec-ctp.market-data.rating.category.level | As above |
| csr-sec-ctp.market-data.sector.category.level | As above |
| csr-sec-non-ctp.market-data.rating.category.level | As above |
| csr-sec-non-ctp.market-data.sector.category.level | As above |

##### [frtb-data-load.properties](https://docs.activeviam.com/solutions/frtb/6.0/configuration/frtb-data-load-properties.md)

New properties:

| Property Name | Optional | Value | Description |
| - | - | - | - |
| drc.summary.file-pattern | | \*\*/DRC\_Summary\_\*.csv\{,.gz} | File pattern for DRC summary files |
| rrao.summary.file-pattern | | \*\*/RRAO\_Summary\*.csv\{,.gz} | File pattern for RRAO summary files |
| rrao.trade.file-pattern | | \*\*/RRAO\_Trade\*.csv\{,.gz} | File pattern for RRAO trade-level files |
| sbm.summary.delta.sensitivities.file-pattern | | \*\*/SBM\_Summary\*\_Delta\_Sensitivities\*.csv\{,.gz} | File pattern for Delta summary files |
| sbm.summary.vega.sensitivities.file-pattern | | \*\*/SBM\_Summary\*\_Vega\_Sensitivities\*.csv\{,.gz} | File pattern for Vega summary files |
| sbm.summary.curvature.sensitivities.file-pattern | | \*\*/SBM\_Summary\*\_Curvature\_Sensitivities\*.csv\{,.gz} | File pattern for Curvature summary files |

Deleted properties:

| Property Name | Comment |
| - | - |
| sa.csr-nonsec.delta.gamma-rating.correlation | Correlations are directly defined instead of being calculated at runtime, therefore this parameter is no longer being used. |
| sa.equity.large-emerging-market.correlation | As above |
| sa.equity.large-advanced.correlation | As above |
| sa.equity.small-emerging-market.correlation | As above |
| sa.equity.small-advanced.correlation | As above |
| sa.equity.index.correlation | As above |
| sa.other.bucket.csr.secctp | As above |
| sa.csr-sec-non-ctp.delta.non-senior.rw-scale | As above |
| sa.csr-sec-non-ctp.delta.high-yield.rw-scale | As above |
| sa.csr-sec-non-ctp.delta.other-sector.rw | As above |

##### [CSRNS Bucket Correlations](https://docs.activeviam.com/solutions/frtb/6.0/configuration/csrns_bucket_correlations.md)

The CSRNS Bucket Correlations file now contains the (full) gamma correlation, instead of just the "sector" component of the correlation.

##### [Startup properties](https://docs.activeviam.com/solutions/frtb/6.0/configuration/startup-properties.md)

Deleted properties:

| Property Name | Comment |
| - | - |
| publishing.pre-interpolated-tuple-detection.logger-level | Property removed as it was not being used |

### Datastores

#### Added stores

| Store | Details |
| - | - |
| [StressCalibrationScenarioFxRates](https://docs.activeviam.com/solutions/frtb/6.0/datastore/stresscalibration/stress-calibration-scenario-fx-rates.md) | The Scenario FX Rates for the Stress Calibration cube |

#### Modified stores

| Modification | Store | Field | Type | Description |
| - | - | - | - | - |
| Modified | [SeniorityDescription](https://docs.activeviam.com/solutions/frtb/6.0/configuration/drc-seniority-description.md) | | | The store has been removed from the star schema and is now a configuration store |
| Deleted | [StressCalibrationTrades](https://docs.activeviam.com/solutions/frtb/6.0/datastore/stresscalibration/stress-calibration-trades.md) | PnL | N | Replaced with PV |
| Added | [StressCalibrationTrades](https://docs.activeviam.com/solutions/frtb/6.0/datastore/stresscalibration/stress-calibration-trades.md) | PV | N | Replaces PnL (backwards compatible) |
| Added | [StressCalibrationTrades](https://docs.activeviam.com/solutions/frtb/6.0/datastore/stresscalibration/stress-calibration-trades.md) | Base PV | Y | If present, subtracted from PV to get PnL |

### Databases

#### Deleted tables

The following tables are no longer part of the star schema, so they are not needed in DirectQuery anymore:

* CSRBUCKET\_DESC
* EQUITY\_BUCKET\_DESC
* SENIORITY\_DESCRIPTION

### Cube schema

#### Removed

| Cube | Dimension | Hierarchy | Levels | Datastore fields | Details |
| - | - | - | - | - | - |
| SA | Default Risk Charge | DRC Seniority | DRC Seniority Ranking | Ranking | Level is no longer being used in calculations |
| SA | Market Data | Equity Market Cap Category | Equity Market Cap Category | Market Cap Category | As above |
| SA | Market Data | Equity Economy Category | Equity Economy Category | Economy Category | As above |
| SA | Market Data | Equity Sector Category | Equity Sector Category | Sector Category | As above |
| SA | Market Data | CSR Quality Category | CSR Quality Category | Rating Category | As above |
| SA | Market Data | CSR non-Sec Rating Category | CSR non-Sec Rating Category | As above | As above |
| SA | Market Data | CSR Sec CTP Rating Category | CSR Sec CTP Rating Category | As above | As above |
| SA | Market Data | CSR Sec non-CTP Rating Category | CSR Sec non-CTP Rating Category | As above | As above |
| SA | Market Data | CSR Sector Category | CSR Sector Category | Sector Category | As above |
| SA | Market Data | CSR non-Sec Sector Category | CSR non-Sec Sector Category | As above | As above |
| SA | Market Data | CSR Sec CTP Sector Category | CSR Sec CTP Sector Category | As above | As above |
| SA | Market Data | CSR Sec non-CTP Sector Category | CSR Sec non-CTP Sector Category | As above | As above |

### Other changes

#### Java 17 JVM Options

To run Atoti FRTB using Java 17, the following needs to be added to the JVM options:

```commandline theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
--add-opens java.base/java.util.concurrent=ALL-UNNAMED
```

See the [Atoti Server documentation](https://docs.activeviam.com/engine/java-sdk/6.1/intro/overview.md) for more details.
