Enum RiskAxis
#[non_exhaustive]pub enum RiskAxis {
Show 15 variants
Rate,
Credit,
Fx,
Inflation,
SecuritySpread,
Repo,
FxVol,
RateVol,
Correlation,
Recovery,
CreditVol,
InflationVol,
FuturePrice,
Equity,
EquityVol,
}Expand description
The class of market input a measure reads.
An axis is a filter, not a label: a measure declaring one sums only the
entries belonging to it. axis_of is the single classifier, and it has no
catch-all arm — adding a key without deciding its axis does not compile.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Rate
Discount and projection pillars, including meeting and turn knots.
Credit
Survival-curve parameters — the CS01 axis.
Fx
FX spot, quoted or implied — the FX-delta axis.
Inflation
Inflation-curve parameters.
SecuritySpread
Per-security spread curves — a bond’s spread axis, distinct from the benchmark curve it is quoted over.
Repo
Repo/financing curves. Distinct from RiskAxis::Rate: a repo pillar is
a financing spread, not a discount rate.
FxVol
FX vol-surface nodes — the FX vega axis.
RateVol
Rate vol-surface nodes — the swaption and bond-option vega axis.
Correlation
Base-correlation points — a tranche’s correlation axis, bucketed by detachment.
Recovery
Market recoveries, one per entity, with the survival curve held.
CreditVol
Credit vol-surface nodes — the CDS option vega axis.
InflationVol
Inflation vol-surface nodes — the year-on-year optionlet vega axis.
FuturePrice
Quoted listed-futures prices — the futures-delta axis of an option on
a future. Distinct from RiskAxis::Rate: a price point is not a
pillar.
Equity
Quoted equity spots — the equity-delta axis.
EquityVol
Equity vol-surface nodes — the equity option vega axis.
Implementations§
§impl RiskAxis
impl RiskAxis
pub fn asset_class(self) -> AssetClass
pub fn asset_class(self) -> AssetClass
The desk this axis’s risk is run on.
Exhaustive, like axis_of: a new axis does not compile until someone
decides whose it is. A bond’s security spread is Credit — it is the
spread over the benchmark, not the benchmark.
pub fn quantity_kind(self) -> QuantityKind
pub fn quantity_kind(self) -> QuantityKind
The kind of quantity this axis’s quote is — what a caller’s default scale is chosen per.
Keyed by the quote rather than by the desk, so a caller who wants every vol in basis points says so once, whether the vol is a rate’s or an FX pair’s.