Skip to main content

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.

The TRADEPNLS table contains some of the attributes of the PnL data used as inputs for VaR and ES computations. If you are using a database that does not support native vector aggregation, the PNL_VECTOR field is omitted and the vectors are present in the TRADEPNLS_VECTOR table.
Column NameTypeNot NullCube FieldDescription
AS_OF_DATEDATEYTimestamp (at close of business) for the data.
TRADE_KEYSTRINGYThe field contains the tradeID for full data or Book#VaR Inclusion for summary data.
TRADE_IDSTRINGYTradesIf TradeId comes from multiple systems you may need to prepend source system to the ID for uniqueness. Note that in certain cases, the TradeId could be for adjustment purposes. In such cases we might only have one PnL vector per Book or desk. The TradeId should contain this information clearly (ADDON or ADJ). Example: “ADDON_IR_IRSWAP_LIBOR3M”, “ADJ_EQ_12345677”, etc.
SCENARIO_SETSTRINGYScenario SetsName of the scenario set for the PnL vector.
CALCULATION_IDSTRINGYCalculationIdsName of the PnL vector calculation run. There may be several runs per AsOfDate.
MARKET_DATA_SETSTRINGYThis field is not currently usedThe market data set that should be used when retrieving rates for FX conversion.
RISK_FACTORSTRINGYRisk FactorsUnderlying risk factor (may be more than one) of the risk class.
RISK_CLASSSTRINGYRisk ClassesDefines the risk class that the PnL vector is computed for.
SENSITIVITY_NAMESTRINGYName of the sensitivity that the PnL is attributed to.
CCYSTRINGYCurrenciesCurrency in which the PnL values are expressed.
MTMDOUBLEThe mark-to-market value of the trade.
PNL_VECTORARRAY<DOUBLE>The PnL vector for the trade. This field is omitted if the database does not support native vector aggregation.

Unique Key

Columns
AS_OF_DATE
TRADE_KEY
SCENARIO_SET
CALCULATION_ID
MARKET_DATA_SET
RISK_FACTOR

Incoming Joins

Target TableSource ColumnsTarget Columns
TRADEPNLS_VECTORAS_OF_DATE
TRADE_KEY
SCENARIO_SET
CALCULATION_ID
MARKET_DATA_SET
RISK_FACTOR
AS_OF_DATE
TRADE_KEY
SCENARIO_SET
CALCULATION_ID
MARKET_DATA_SET
RISK_FACTOR

Outgoing Joins

Target TableSource ColumnsTarget Columns
TRADE_ATTRIBUTESAS_OF_DATE
TRADE_KEY
AS_OF_DATE
TRADE_KEY
RISK_FACTORS_CATALOGUEAS_OF_DATE
RISK_FACTOR
AS_OF_DATE
RISK_FACTOR_ID