Module presets
Expand description
The risk measures a desk names, declared once.
A Measure is a point in a product space — an axis, a basis, an
aggregation, a scale — and most of that space is reachable but unnamed. A
Preset names the points a desk asks for by name (DV01, PAR_LADDER,
CS01), files each under the asset class its axis belongs to, and carries
the scale that name is conventionally quoted in.
The table below is the vocabulary. The constants, Preset::ALL and the
accepted spellings a rejection lists are all generated from it, so none of
them can list a preset the others do not.
Macros§
- presets 🔒
- Declares the table: one constant per preset, and from the same list
Preset::ALLandPreset::ACCEPTED.
Structs§
- Preset
- A named risk measure: the point it names, and the scale it reports in when asked for by name.
Enums§
- How
- How a catalogued measure is computed.
Constants§
- CORRELATION
- Base-correlation delta per point, per correlation point.
- CORRELATION_
BUMPED - Base-correlation sensitivity by central difference per skew.
- CREDIT_
VEGA - CDS option vega, one number, per vol point.
- CREDIT_
VEGA_ LADDER - CDS option vega per credit vol node.
- CS01
- Credit delta at the hazard basis, one number.
- CS01_
BUCKETED - Credit delta by tenor bucket.
- CS01_
BY_ CURVE - Credit delta by entity curve.
- DV01
- Rate delta at the curve-node basis, one number, per basis point.
- DV01_
BUCKETED - Rate delta by tenor bucket.
- DV01_
BY_ CURVE - Rate delta by curve — discount separable from projection.
- DV01_
LADDER - Rate delta per curve pillar.
- EQUITY_
DELTA - Equity delta per quoted spot, per unit of price.
- EQUITY_
VEGA - Equity vega, summed over the vol nodes, per vol point.
- FUTURE_
DELTA - Futures delta per quoted listed future, per price point — the underlying exposure of an option on a bond future.
- FX_
DELTA - FX delta per spot, per unit of spot. Not per percent: the derivative is against the spot’s absolute level.
- FX_VEGA
- FX vega, one number, per vol point.
- FX_
VEGA_ LADDER - FX vega per vol node.
- INF01
- Inflation delta against the calibrating swaps’ breakevens, one number. Par, because at the node basis the inputs are undated index levels.
- INF01_
BUCKETED - Inflation delta by tenor bucket of the calibrating swaps.
- INF01_
LADDER - Inflation delta per calibrating swap.
- INFLATION_
VEGA - Inflation vega, one number, per basis point of vol — the rate vega’s scale, and a YoY surface’s normal convention.
- INFLATION_
VEGA_ LADDER - Inflation vega per vol node.
- MARKET_
VEGA - Vega per quoted swaption through a Hull-White fit.
- NPV
- Present value.
- PAR_
CS01_ LADDER - Credit delta per calibrating CDS.
- PAR_
DV01 - Rate delta against the calibrating instruments’ quotes, one number.
- PAR_
LADDER - Rate delta per calibrating instrument — the ladder a desk hedges from.
- RECOVER
Y01 - Recovery delta per entity, per recovery point, the survival curve held.
- RECOVERY_
BUMPED - Recovery sensitivity by central difference, the survival curve held.
- RECOVERY_
QUOTE_ HELD - Recovery sensitivity by central difference, the CDS quotes held.
- REPO01
- Repo-curve delta.
- SPREA
D01 - A bond’s delta to its own spread over its benchmark.
- VEGA
- Rate vega, one number, per basis point of (normal) vol.
- VEGA_
LADDER - Rate vega per vol node.
- VEGA_
PAR - Rate vega against the grid quotes a SABR surface was fitted to, one number.
- VEGA_
PAR_ LADDER - Rate vega per grid quote a SABR surface was fitted to.
Functions§
- catalogue_
records - Presets as records:
name,class,measure,scale,how,requires— the catalogue a caller browses, and whatBook::available_measuresanswers with. - delta 🔒