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

# TRADE_SENSITIVITIES

The TRADE\_SENSITIVITIES table contains some of the attributes of the Sensitivity data.

If you are using a database that does not [support native vector aggregation](https://docs.activeviam.com/engine/java-sdk/6.1/directquery/directquery-vectors.md#native-support),
the LADDER field is omitted and the ladder vectors are present in the [TRADE\_SENSITIVITES\_VECTOR](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities_vector.md) table.

| Column Name | Type | Not Null | Default Value[^1] | Cube Field | Description |
| - | - | - | - | - | - |
| AS\_OF\_DATE | DATE | Y | | | Timestamp (at close of business) for the data. |
| TRADE\_KEY | STRING | Y | 'N/A' | | The field contains the `tradeID` for full data or `Book#VaR Inclusion` for summary data. |
| TRADE\_ID | STRING | Y | '*DATAMEMBER*' | [Trades](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/booking.md) | If TRADE\_ID comes from multiple systems, you may need to prepend source system to the ID for uniqueness.\[!NOTE] In certain cases, the TRADE\_ID could be for adjustment purposes. In such cases we might only have one PnL vector per Book or desk.The TRADE\_ID should contain this information clearly (ADDON or ADJ). Example: "IR\_IRSWAP\_LIBOR3M", "EQ\_12345677", etc. |
| SENSITIVITY\_NAME | STRING | Y | 'N/A' | [Sensitivity](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/sensitivities.md) | The name of the sensitivity (cube measure). |
| RISK\_CLASS | STRING | Y | 'N/A' | [Risk Classes](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/risk.md) | Risk factor's asset class: "Interest rate", "Credit spread", "Foreign exchange", "Equity", "Commodity", "Hybrid". |
| MARKET\_DATA\_SET | STRING | Y | 'N/A' | This field is not currently used | The market data set that was used when the sensitivity was calculated. This will be used to retrieve appropriate market data values for PnL Explain and Taylor VaR computations. |
| RISK\_FACTOR\_ID | STRING | Y | 'N/A' | [Risk Factors](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/risk.md) | Internal risk factor/bucket identifier: instrument, curve, vol surface/cube identifier. |
| RISK\_FACTOR\_ID2 | STRING | Y | 'N/A' | [Risk Factors Secondary](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/risk.md) | \[!NOTE] This field is only present in the Vanna input file. It does not exist for Delta, Gamma, Vega, or Volga inputs.Second risk factor for the Vanna sensitivity. Example: UniCredit\_Spot price |
| TENOR\_LABEL | STRING | Y | 'N/A' | [Tenors](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/risk.md) | A tenor label, corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| TENOR\_DATE | DATE | Y | '1970-01-01' | | An explicit tenor date, which is used to sort tenors and to re-bucket sensitivities (if supported). Example: 2019-03-16 |
| MATURITY\_LABEL | STRING | Y | 'N/A' | [Maturities](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/risk.md) | Name for the bucketed group. |
| MATURITY\_DATE | DATE | Y | '1970-01-01' | | An explicit maturity date, which is used to sort tenors and to re-bucket sensitivities (if supported). Example: 2019-03-16 |
| MONEYNESS | STRING | Y | 'ATM' | [Moneyness](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/risk.md) | A label corresponding to different ways of stating moneyness. Supported formats: moneyness in percent, e.g. 80;100;120; delta-moneyness,e.g. 25p;ATM ;25c |
| VALUE | DOUBLE | Y | 0.0 | | Sensitivity value. |
| CCY | STRING | Y | 'N/A' | [Currencies](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/currencies.md) | The currency of the sensitivity. |
| HAS\_LADDER | STRING | Y | 'N' | [Ladder Availability](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/risk.md) | Flag set to "Y" if the Ladder field is not null. Null values are interpreted as "N". |
| LADDER | `ARRAY<DOUBLE>` | | | | The ladder vector for the sensitivity. This field is omitted if the database does not support [native vector aggregation](https://docs.activeviam.com/engine/java-sdk/6.1/directquery/directquery-vectors.md#native-support). |

## Unique Key

| Columns |
| - |
| AS\_OF\_DATE |
| TRADE\_KEY |
| SENSITIVITY\_NAME |
| MARKET\_DATA\_SET |
| RISK\_FACTOR\_ID |
| RISK\_FACTOR\_ID2 |
| TENOR\_LABEL |
| TENOR\_DATE |
| MATURITY\_LABEL |
| MATURITY\_DATE |
| MONEYNESS |

## Incoming Joins

| Target Table | Source Columns | Target Columns |
| - | - | - |
| [TRADE\_SENSITIVITIES\_VECTOR](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities_vector.md) | AS\_OF\_DATE TRADE\_KEY SENSITIVITY\_NAME MARKET\_DATA\_SET RISK\_FACTOR\_ID RISK\_FACTOR\_ID2 TENOR\_LABEL TENOR\_DATE MATURITY\_LABEL MATURITY\_DATE MONEYNESS | AS\_OF\_DATE TRADE\_KEY SENSITIVITY\_NAME MARKET\_DATA\_SET RISK\_FACTOR\_ID RISK\_FACTOR\_ID2 TENOR\_LABEL TENOR\_DATE MATURITY\_LABEL MATURITY\_DATE MONEYNESS |

## Outgoing Joins

| Target Table | Source Columns | Target Columns |
| - | - | - |
| [TRADE\_ATTRIBUTES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_attributes.md) | AS\_OF\_DATE TRADE\_KEY | AS\_OF\_DATE TRADE\_KEY |
| [RISK\_FACTORS\_CATALOGUE](https://docs.activeviam.com/solutions/market-risk/6.0/database/risk_factors_catalogue.md) | AS\_OF\_DATE RISK\_FACTOR\_ID | AS\_OF\_DATE RISK\_FACTOR\_ID |
| [RISK\_FACTORS\_CATALOGUE](https://docs.activeviam.com/solutions/market-risk/6.0/database/risk_factors_catalogue.md) | AS\_OF\_DATE RISK\_FACTOR\_ID2 | AS\_OF\_DATE RISK\_FACTOR\_ID |

***

[^1]: If the default value is marked as empty, it means that the default value is 'null' for nullable fields, and that a value needs to be explicitly set for non-nullable fields.
