Bucketed Delta
Calculates the bucketed delta of individual bonds on the Treasury curve: the change in each bond’s present value, per 100 of par, when one maturity of the curve rises by a basis point, for every maturity the Treasury quotes.
Where get_key_rate_duration shocks a zero-coupon rate with a tent around it, these deltas move the rates traders hedge with.
For the par-rate delta one par yield of the Treasury par curve rises by a basis point and the zero-coupon curve is bootstrapped again, so the deltas are the sensitivities to the notes and bonds of each maturity: a par bond maturing at a quoted maturity has a delta to that maturity only. They follow from the chain rule through the par-to-zero Jacobian of the bootstrap (see curve_risk_model.get_par_rate_delta):
For the forward-rate delta the continuously compounded instantaneous forward rate between two neighbouring quoted maturities rises by a basis point, which moves every discount factor beyond it as well (see curve_risk_model.get_forward_rate_delta):
Where CF(t) are the bond’s coupons (100 * Coupon / 2) and principal on its actual coupon dates, Zero Rate(t) is the Treasury zero-coupon curve of the price date (annually compounded, bootstrapped from the par yields with the zero rate of every coupon date, see get_zero_coupon_curve, and interpolated linearly), and Overlap(t, i) is the part of the bucket of maturity i (from the previous quoted maturity to i, the first from today and the last without an end) before t. The par yields are bond-equivalent yields, compounded twice a year beyond a year. The bump of the differences is 1 basis point by default; the deltas are always per +1 basis point, in dollars per 100 of par, negative for a long position. Summed over the maturities they give the change for a parallel shift of the par curve (par) or of the continuously compounded zero rates (forward). The bonds are discounted on the Treasury curve without a spread and selected as in collect_bond_statistics; TIPS have no delta on the nominal curve. For cash flows or a curve of your own, use curve_risk_model.
Also known as: bucketed PV01, par-rate risk, forward-rate risk, DV01 ladder, partial DV01.
Example
Install the Finance Toolkit with pip install financetoolkit -U, then call get_bucketed_delta:
from financetoolkit import FixedIncome
fixedincome = FixedIncome()
deltas = fixedincome.get_bucketed_delta(date="2026-11-05")
deltas[["Maturity", "2Y", "3Y", "5Y", "7Y", "10Y", "20Y", "30Y"]]
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How sensitive were the benchmark 2- to 30-year US Treasuries to a basis point shift of each point on the par curve, from 2 to 30 years, on 5 November 2026?
Which returns:
| Item | Maturity | 2Y | 3Y | 5Y | 7Y | 10Y | 20Y | 30Y |
|---|---|---|---|---|---|---|---|---|
| 91282CRU7 | 2028-10-31 | -0.0186 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
| 91282CLR0 | 2029-10-31 | -0.0003 | -0.0272 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
| 91282CRT0 | 2031-10-31 | 0.0000 | -0.0004 | -0.0440 | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
| 91282CRV5 | 2033-10-31 | 0.0000 | -0.0001 | -0.0005 | -0.0589 | 0.0000 | 0.0000 | 0.0000 |
| 91282CRF0 | 2036-08-15 | 0.0000 | 0.0001 | 0.0001 | -0.0054 | -0.0718 | 0.0000 | 0.0000 |
| 912810RU4 | 2046-11-15 | 0.0002 | 0.0005 | 0.0010 | 0.0019 | 0.0097 | -0.1131 | -0.0003 |
| 912810UW6 | 2056-08-15 | 0.0000 | 0.0000 | 0.0000 | 0.0001 | 0.0003 | -0.0024 | -0.1471 |
7 rows
Parameters
get_bucketed_delta accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
method | Literal["par", "forward"] | The delta. Options are: “par” (the par-rate delta), “forward” (the forward-rate delta). Defaults to “par”. | "par" |
bump | float | The move of a rate up and down in the differences (decimal). Defaults to 0.0001. | 0.0001 |
bonds | list[str] | str | None | CUSIPs or ISINs, see collect_bond_statistics. Defaults to None. | None |
issuer | list[str] | str | None | Part of an issuer’s name, such as “Apple”. Defaults to None. | None |
etfs | list[str] | str | None | The bond ETFs to select bonds from, see get_bond_universe. Defaults to None. | None |
maturity_start | str | None | The earliest maturity (YYYY-MM-DD). Defaults to None. | None |
maturity_end | str | None | The latest maturity (YYYY-MM-DD). Defaults to None. | None |
date | str | None | The day of the Treasury prices (YYYY-MM-DD). Defaults to None, the latest day with prices. | "2025-03-31" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the class. | 2 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Library Shares similar logic as rateslib’s Solver.delta (par)
- Library Shares similar logic as FinancePy’s par_rate_risk_report (par)
- Library Shares similar logic as FinancePy’s forward_rate_risk_report (forward)