Docs / nablatensor-risk / com.nablatensor.risk
record
RiskFactor
A regulatory risk factor: the key a sensitivity is bucketed and weighted by.
The record is deliberately generic — one shape for every FRTB SA / SIMM risk class. Interpretation of name / tenor / tenor2 is per risk class; the typed factory methods below encode the conventions the FRTB SA / SIMM parameter classes expect:
- GIRR delta:
bucket= currency,name= curve id ("OIS","3M","INFL","XCCY"),tenor= vertex in years. - GIRR vega:
tenor= option maturity,tenor2= residual maturity of the underlying. - CSR delta:
bucket= sector/quality bucket id,name="<issuer>|BOND"or"<issuer>|CDS",tenor= vertex in years. - Equity delta: spot has
tenor == 0; the repo-rate factor of the same issuer hastenor > 0. - Commodity delta:
name="<commodity>|<location>",tenor= maturity in years. - FX delta:
bucket=name= the currency pair.
Record components
Constructors
Methods
The equity repo-rate factor of an issuer (distinguished from spot by tenor > 0).
True for an equity repo-rate delta factor (as opposed to spot).
The issuer part of a CSR factor name ("<issuer>|BOND" -> "<issuer>").
The curve part of a CSR factor name ("BOND" / "CDS" / "VOL"); "" if none.
The commodity part of a commodity factor name ("WTI|HUB" -> "WTI").
The delivery-location part of a commodity factor name; "" if none.
The same factor as a curvature factor (measure CURVATURE, tenors preserved).
A curvature factor with the tenor collapsed — one curvature factor per curve (GIRR / CSR).