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

# Expected shortfall PL trade

Download sample file: [IMA\_CSR\_Trades.csv](./csv/IMA_CSR_Trades.csv)

This file contains input fields for various risk scenarios, liquidity horizons and risk classes, used to calculate the Expected shortfall.

For summary data used to calculate the historical averages, see [IMA Summary](https://docs.activeviam.com/solutions/frtb/6.0/input-files/ima-summary.md).

This Expected Shortfall PL Trade file type is identified using the pattern: **\*\*/IMA\_\*\_Trades\*.csv** (as specified by ima.trades.file-pattern). A sample file is `IMA_CSR_Trades`. This file is loaded using the **IMA\_Trades** topic. See the [Topic Aliases table](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-ref-impl/dev-dlc/dlc-frtb-config.md#topic-aliases) for an understanding of the topic aliases associated with each topic.

| **Field** | **Key** | **Null** | **FieldType** | **Description** | **Example** |
| - | - | - | - | - | - |
| DataSet | Y | Y | String | The data set to which the entry belongs. The following different values are possible:“Full Set Current”: data for the last 12 months, “Reduced Set Stressed”: data with the reduced set of risk factors for the 12-month stress period, “Reduced Set Current”: data with the reduced set of risk factors for the last 12 months. Note: For non-modellable risk-factors, this value should be blank. | |
| TradeId | Y | N | String | The trade Id | |
| RiskFactor | Y | Y | String | The risk factor. Note: This is required for non-modellable risk-factors, but may be blank for modellable risk-factors. | |
| RiskClass | Y | N | String | The risk class, which will be one of the following: GIRR, CSR, Equity, Commodity, FX, allin | |
| LiquidityHorizon | Y | Y | String | A String containing a list of integer values with ‘;’ as separator. The Liquidity Horizon in days: 10, 20, 40, 60, or 120. Note: For non-modellable risk-factors, this value should be blank (though it may be set to 10 without causing any problems).There must be no gap on the liquidity horizon. For instance a horizon of 40 will also apply on 10 and 20, so ‘40;20;10’ must be specified. | |
| Currency | N | N | String | The currency in which the PnL vector is expressed. | |
| PV | N | N | Double Vector | The vector of PV values calculated for each scenario. The scenarios are calibrated to the 12-month stress or current periods. For modellable risk-factors, these PV vectors are aggregated across DataSet, RiskClass, and Liquidity Horizon, while for NMRFs they are aggregated across the risk-factor. Hence the list of scenarios must be consistent for all PV vectors with these fields in common. The P\&L vector is obtained by subtracting the Base PV from each value in this vector. | |
| AsOfDate | Y | N | Date ‘YYYY-MM-DD’ | Timestamp (at close of business) for the data. | |
| Base PV | N | Y | Double | The PV for the base scenario. If this value is not provided, then the PV vector becomes the P\&L vector. | |
