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

# SA ETL for trade attributes

> Overview of the SA ETL process for Trade Attributes in Atoti FRTB, covering the transformation steps applied to the Trade Attributes input file

This page provides an overview of ETL for Trade Attributes.

## Vectorization and Interpolation

No vectorization is used within the ETL procedure for Trade Attributes; therefore no interpolation is required either.

## Normalization

#### Trade Attributes-relevant Stores

The stores that are relevant for Trade Attributes are:

| Stores |
| - |
| TradeMapping |
| SATradeDescription |
| SASensitivities |

### Mapping of Trade Attributes fields onto the stores that they populate

| Field from CSV file | TradeMapping | SATradeDescription | SASensitivities |
| - | - | - | - |
| AsOfDate | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(AsOfDate) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(AsOfDate) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(AsOfDate) |
| TradeId | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(TradeKey for trade level data) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(TradeId) and ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(TradeKey for trade level data) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(TradeId) |
| Book | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(part of TradeKey for summary data) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(part of TradeKey for summary data) | |
| LegalEntity | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(part of TradeKey for summary data) | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(part of TradeKey for summary data) | |
| Notional | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Notional) | |
| Notional Ccy | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(NotionalCcy) | |
| PresentValue | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Notional) | |
| PVCcy | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(PVCcy) | |
| ResidualRisk (Deprecated) | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(Residual Risk) | |
| ExoticUnderlying (Deprecated) | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(ExoticUnderlying) | |
| OtherResidualRiskType (Deprecated) | | ![checkmark icon](https://mintcdn.com/activeviam/GtN3Ivwh2BS7cHwq/solutions/frtb/6.0/images/etl/check.png?fit=max\&auto=format\&n=GtN3Ivwh2BS7cHwq\&q=85\&s=2b95e9e8ea16896ac07a99bca108b108)(OtherResidualRiskType) | |
| TradeDate | | | |
| Sensitivity Scale Category | | | |
| RRAO Category (Deprecated) | | | |

> [!WARNING]
>
> The `ResidualRisk`, `ExoticUnderlying`, `OtherResidualRiskType`, and `RRAO Category` columns are only read when the `rrao.use-trade-attributes` property is set to `true` (default `false`). By default, RRAO trades must be provided via the RRAO Trade file instead. This property will be removed in 6.1.0.

## Tuple Publishers

#### The Tuple Publisher and Publisher Classes

The function of the TuplePublisher and its associated Publisher classes
is to separate data in the incoming file row according to its relevance
to particular stores and apply ETL logic to the incoming rows:

| Tuple Publisher Class | Publisher Class | Function |
| - | - | - |
| TradesTuplePublisher | | - Creates and publishes tuples to the SATradeDescription, TradeMapping stores. - When `rrao.use-trade-attributes=true`, also creates RRAO-specific tuples for the SASensitivities and RRAO stores, where applicable (if a row contains RRAO values, an entry for the SASensitivities store will be created, with the RiskFactor, RiskClass and RiskMeasure fields set to “RRAO”). |
