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

# Regulatory book

> Guide to adding a Regulatory Book classification in Atoti FRTB to investigate the impact of moving trades between the Trading and Banking Books

### Regulatory Book classification

To investigate the impact of moving a trade between the Trading and Banking Books, it is possible to add a Regulatory Book classification to the cubes.

When the property `regulatory-book.classification.enabled=true` is set, the "Regulatory Book" field is added to the cube and [Book description](https://docs.activeviam.com/solutions/frtb/6.0/input-files/book-description.md) file.
This field can take the values "Trading Book" and "Banking Book".

Additionally, the "Switch Regulatory Book" What-If simulation is added to allow users to see the impact of switching the regulatory book in a What-If branch.

### Regulatory Book filter

It is also possible to filter SA sensitivities according to which regulatory book and risk-class they belong.

| Regulatory Book | Risk Classes | Filter |
| - | - | - |
| Trading Book | All | Include |
| Banking Book | FX and Commodity | Include |
| Banking Book | GIRR, CSR, Equity, DRC, RRAO | Exclude |

To enable this filtering set the property `regulatory-book.filter.enabled=true`.

### Reference data

The details in this section may be changed in the configuration.

#### [Book description](https://docs.activeviam.com/solutions/frtb/6.0/input-files/book-description.md) file

The column "Regulatory Book" is added to the end of the rows of the Book Description file.

#### [BookDescription](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/bookdescription.md) store

The field "Regulatory Book" is appended to the BookDescription store. It has a default value of "Trading Book".

Similarly, the field is also appended to the [BOOK\_DESCRIPTION](https://docs.activeviam.com/solutions/frtb/6.0/database/book_description.md) table used by DirectQuery.

#### Regulatory Book Hierarchy

The "Regulatory Book" hierarchy is added to the "Booking" dimension. This hierarchy has a single level: "Regulatory Book".

#### Regulatory Book Filter Hierarchy

The hidden hierarchy "Regulatory Book Filter" is also added to the "Booking" dimension.  This hierarchy has a single level: "Regulatory Book Filter".

The level takes two values "Y" (include) and "N" (exclude) according to the Regulatory Book Filter table above.
It is a slicing hierarchy with the default member "Y". As a result, only sensitivities included in the Regulatory Book Filter table above will be used in the calculations.

### Startup properties

See [Startup Properties](https://docs.activeviam.com/solutions/frtb/6.0/configuration/startup-properties.md#regulatory-book) for details on where the properties can be set to fine-tune the behavior of this feature.
