Module context
Expand description
The resolved pricing view, the priceable trait, and the mode-free vocabulary a product declares its market data in.
Re-exports§
pub use crate::statics::collateral::CollateralSpec;
Structs§
- Crisis
Parameters - A credit entity’s crises: a Poisson rate
κ, an exponential spread jump of meanmadded to the intensity at each, and the probabilitypthat a crisis defaults at once. Market inputs, each its own risk row. - Cross
Currency Dynamics - The correlations a cross-currency simulation reads beyond the intensity’s: of the FX rate with the note currency’s Hull-White factor, with the bond currency’s, and with the issuer’s intensity; of the two Hull-White factors; and of the bond currency’s factor with the intensity. Market inputs from the canonical labels, each its own risk row.
- Gaussian
Intensity - A credit entity’s Gaussian intensity
λ = y + ψ(t),dy = −b·y dt + η dW, correlatedρwith a currency’s Hull-White factor, in the pricing mode.ψis never stated: it is implied by the entity’s survival curve. Market inputs, resolved from the canonical labels, each its own risk row. - Hull
White Parameters - Hull-White model parameters resolved from the market, in the pricing mode.
- Lifted 🔒
- A stored family lifted into mode
Rfor one pricing call — the core the three resolved types share. - Missing
Curve Detail - What a missing-curve refusal knows beside the key: what the market holds, how the curve would be built, and what the valuation needed.
- Pricing
View - The market data one valuation is priced against, resolved once and passed
whole across the
Priceableseam. - Resolved
Credit - The credit data resolved for one pricing call.
- Resolved
Curve - A curve resolved for one pricing call, lifted into mode
R. - Resolved
Inflation - The inflation curve resolved for one pricing call.
- Risk
Factors - What a product declares it is priced against. Identifiers only.
Enums§
- Credit
Dynamics - The credit model a product reads beyond the credit entity’s curve.
- Overlay 🔒
- What resolution composes onto a curve.
- Pricing
Error - A pricing call that cannot be answered.
- Sigma
Term - A Hull-White volatility: one flat value, or a piecewise-constant term.
Traits§
- Priceable
- A product priced through the seam, in one mode.
- Pricing
Risk Factors - What a product declares. Not parameterized by the mode, and never will be — a declaration that changed with the pricing mode would not be a declaration.
Functions§
- credit_
crisis_ default_ label - The canonical exogenous label carrying the probability a credit entity’s
crisis defaults at once:
CR-{credit}-CRISIS-DEFAULT. - credit_
crisis_ jump_ mean_ label - The canonical exogenous label carrying a credit entity’s mean crisis
spread jump:
CR-{credit}-CRISIS-JUMP-MEAN. - credit_
crisis_ rate_ label - The canonical exogenous label carrying a credit entity’s crisis rate:
CR-{credit}-CRISIS-RATE. - credit_
intensity_ mean_ reversion_ label - The canonical exogenous label carrying a credit entity’s Gaussian intensity
mean reversion:
CR-{credit}-INTENSITY-MEAN-REVERSION. - credit_
intensity_ vol_ label - The canonical exogenous label carrying a credit entity’s Gaussian intensity
volatility:
CR-{credit}-INTENSITY-VOL. - credit_
rate_ correlation_ label - The canonical exogenous label carrying the correlation between a
currency’s Hull-White factor and a credit entity’s intensity:
CORR-IR:{CCY}-CR:{credit}. - curve_
role_ 🔒kind - A curve role as the market’s listing spells its kind. The
CurveIddisplay and the listing share every role spelling, so this only lends the role a'staticlifetime; an unknown role lists as a bare curve. - fmt_
missing_ 🔒curve - The missing-curve refusal: what the market holds instead, a recipe for the key, and what the valuation needs.
- fx_
credit_ correlation_ label - The canonical exogenous label carrying the correlation between an FX
pair and a credit entity’s intensity:
CORR-FX:{pair}-CR:{credit}. - fx_
rate_ correlation_ label - The canonical exogenous label carrying the correlation between an FX
pair and a currency’s Hull-White factor:
CORR-FX:{pair}-IR:{CCY}. - hull_
white_ mean_ reversion_ label - The canonical exogenous label carrying a currency’s Hull-White mean
reversion:
HW-{CCY}-MEAN-REVERSION. - hull_
white_ sigma_ label - The canonical exogenous label carrying a currency’s Hull-White volatility:
HW-{CCY}-SIGMA. - hull_
white_ sigma_ piece_ label - The canonical exogenous label carrying one piece of a currency’s Hull-White
volatility term:
HW-{CCY}-SIGMA-{YYYY-MM-DD}, the date the piece’s interval ends on. The last piece extends flat beyond its date. - lift_
storage 🔒 storagelifted into modeR.- missing_
future 🔒 - A listed future’s missing input, named with the verb that pins it.
- parse_
hull_ white_ sigma_ piece_ label - The end date a dated sigma label for
currencynames, orNonewhenlabelis not one — the flat label included. - rate_
rate_ correlation_ label - The canonical exogenous label carrying the correlation between two
currencies’ Hull-White factors, in code order:
CORR-IR:{A}-IR:{B}. - substitute_
storage 🔒 storagelifted overparamsin place of its stored ones — how a risk pass installs registered handles.- swaption_
normal_ vol_ label - The canonical exogenous label carrying an ATM swaption’s normal volatility:
SWAPTION-NVOL-{CCY}-{expiry}x{end}, both ISO dates — the expiry of the option and the end of the underlying swap. Dates rather than year counts because a strip implied by a call schedule lands on arbitrary dates, and a rounded year count would need a rule and could collide. - unresolved_
collateral 🔒 - The collateral key a view that resolved nothing declares.