Conventions¶
This page defines the shared public conventions used across fuggers-py.
Bond prices¶
Bond
clean_priceanddirty_pricestay in percent-of-par where the API already uses percent-of-par.Coupon-per-price helpers that take bond prices assume the same per-100-face convention.
Unsuffixed yields, rates, and spreads¶
Shared/public unsuffixed yields, rates, and spreads use raw decimal units.
Example:
0.05means 5%,0.0025means 25 bp.Shared calc outputs follow the same rule for fields such as
yield_to_maturity,current_yield,z_spread,g_spread,i_spread,discount_margin, andasset_swap_spread.
Display helpers¶
Use
_pcthelpers for quoted percentage display values.Use
_bpshelpers for basis-point display values.YAS is display-oriented, so YAS keeps quoted percentages and basis points in its output fields.
DV01, PV01, and BPV¶
dv01is the canonical first-order risk name across the library.pv01remains a backward-compatible alias todv01.bpvremains a backward-compatible alias in the rates namespace.Sign convention is signed and uniform: the value is positive when PV rises as rates or yields fall by 1 bp.
Methodology note¶
Bond
dv01may be computed from a bond-yield or YTM-based bump path, depending on the bond analytics being used.Rates
dv01is typically computed from a parallel curve bump.The naming and sign convention stay aligned even when the underlying bump methodology differs.