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 PNL table contains Profit & Loss and Product Control data.
Column NameTypeNot NullDefault Value1Cube FieldDescription
AS_OF_DATEDATEYTimestamp (at close of business) for the data.
TRADE_KEYSTRINGYN/AThe field contains the tradeID for full data, or Book#VaR Inclusion#PLDriver for summary data.
TRADE_IDSTRINGYDATAMEMBERTradesIf TRADE_ID comes from multiple systems, you may need to prepend source system to the ID for uniqueness.

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.
DAILYDOUBLEY0The DTD PnL value.
MONTHLYDOUBLEY0The MTD PnL value.
YEARLYDOUBLEY0The YTD PnL value.
LIFETIMEDOUBLEY0The LTD PnL value.
TYPESTRINGYN/ATypesThe type of PnL.Example: ‘Actual PL’
PLDRIVERSTRINGYN/APL DriversDriver for the PnL value.Example: ‘Market moves’
IS_FULL_REVALSTRINGYN/AIsFullRevalsIndicates whether the PnL comes from a full revaluation in the risk engine.
CCYSTRINGYN/ACurrenciesThe currency of the PnL value.
MARKET_DATA_SETSTRINGYN/AThis field is not currently usedThe market data set that should be used when retrieving rates for FX conversion.
BUCKETSTRINGYN/ABucketsPlaceholder for a set of risk factors that are grouped together by common characteristics.
LEG_IDSTRINGNN/ALegsOptional input to send in trades that will have multiple legs under a single TradeId. Only available when the property mr.pnl.enable.leg-id is set to true. If using this field, please update your SQL script to include it.

Unique Key

Columns
AS_OF_DATE
TRADE_KEY
TYPE
MARKET_DATA_SET

Outgoing Joins

Target TableSource ColumnsTarget Columns
TRADE_ATTRIBUTESAS_OF_DATE
TRADE_KEY
AS_OF_DATE
TRADE_KEY

  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.  ↩︎