Expected Shortfall PL Trade

Download sample file: 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.

This Expected Shortfall PL Trade file type is identified using the pattern: **/IMA_*_Trades*.csv (as specified by ima.trades.file-pattern). This file is loaded using the IMA_Trades topic. See the Topic Aliases table 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).

You have to ensure yourself that there is no gap on the liquidity horizon. For instance an horizon of 40 will also apply on 10 and 20 so you must specify ‘40;20;10’.

Currency N N String The currency in which the PnL vector is expressed.
PnL N N Double The PnL vector for 12 months' worth of data - there is one value per day, which needs to be computed for a liquidity horizon of 10 days in the risk engine - the values are separated by a semi-colon. This is effectively an extra PnL vector Liquidity Horizon column to use as the reference into the new PnL Vector store. This new column will be copied from the existing Liquidity Horizon column for lines in the input files where PnL vectors exist. Then once the file is loaded (or transaction complete), a second pass will fill in the gaps by adding facts with missing Liquidity Horizons and existing PnL vectors. The advantage gained from this is that ‘Liquidity Horizon gaps’ do not need to be filled any more.
AsOfDate Y N Date ‘YYYY-MM-DD’ Timestamp (at close of business) for the data.