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 IMATRADES table is the base in the IMA Cube star schema. Each row in this table represents a fact in the IMA Cube. The IMATRADES table contains vector fields. In databases that do not natively support vectors, the vector fields are stored as separate columns.

IMATRADES Table Fields

Column NameTypeNot NullCube FieldDescription
DATA_SETSTRINGYData SetThe 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 For non-modellable risk-factors, this value should be blank.
TRADE_KEYSTRINGYThis field is for internal usage onlyThe field contains the tradeID for full data or Book#LegalEntity for summary data
TRADE_IDSTRINGYTradeIdThe trade Id.
RISK_FACTORSTRINGYRiskFactorThe risk-factor.

Note: This is required for non-modellable risk-factors, and optional for modellable risk-factors.
RISK_CLASSSTRINGYRiskClassThe risk class, which will be one of the following:GIRR, CSR, Equity, Commodity, FX, allin
PL_LHSTRINGYLiquidity HorizonThe 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).

The list must contain all the referring horizons, for instance for a horizon of 40 you must specify “40;20;10”.
CCYSTRINGYCurrencyThe currency of the PnL vector entries.
BASE_PVDOUBLEYThis field is a measureThe base PV.
AS_OF_DATEDATEYAsOfDateTimestamp (at close of business) for the data.

IMATRADES_VECTOR Table Fields

Column NameTypeNot Null
VECTOR_INDEXINTY
DATA_SETSTRINGY
TRADE_KEYSTRINGY
TRADE_IDSTRINGY
RISK_FACTORSTRINGY
RISK_CLASSSTRINGY
PL_LHSTRINGY
CCYSTRINGY
BASE_PVDOUBLEY
PVDOUBLEY
AS_OF_DATEDATEY

IMATRADES_VECTOR Unique Key

Columns
VECTOR_INDEX
DATA_SET
TRADE_KEY
RISK_FACTOR
RISK_CLASS
PL_LH
AS_OF_DATE

Outgoing Joins

Target TableSource ColumnsTarget Columns
IMATRADES_VECTORDATA_SET
TRADE_KEY
RISK_FACTOR
RISK_CLASS
PL_LH
AS_OF_DATE
AS_OF_DATE
BOOK
IMARISK_FACTORSRISK_FACTOR
RISK_CLASS
AS_OF_DATE
RISK_FACTOR
RISK_CLASS
AS_OF_DATE
TRADE_MAPPINGTRADE_KEY
AS_OF_DATE
TRADE_KEY
AS_OF_DATE