Asset Swap Spread
Calculates the par and the market value asset swap spreads of US dollar corporate bonds over the swap curve: the spread over the floating rate at which a swap that pays away the bond’s coupons turns the bond into a floating rate asset worth what the investor pays. It measures a bond’s credit and liquidity against swaps rather than against government bonds, as banks that fund at floating rates see it (O’Kane, 2000, “Introduction to Asset Swaps”, Lehman Brothers; Tuckman and Serrat, 2022, Fixed Income Securities, ch. 18).
In a par asset swap the investor pays par for the bond and the swap together, and the swap settles the difference between par and the bond’s price; in a market value asset swap the investor pays the bond’s price and the floating leg runs on that amount.
The formula is as follows:
\[\text{Curve Price} = 100 \cdot \left(\sum\left(\frac{c}{2} \cdot P(t_{i})\right) + P(t_{n})\right),\;\; \text{the dirty price of the bond on the swap curve}\] \[\text{Annuity} = \sum(\delta_{j} \cdot P(s_{j})),\;\; \text{over the floating payment dates } s_{j}\] \[\text{Par Asset Swap Spread} = \frac{\text{Curve Price} - \text{Dirty Price}}{100 \cdot \text{Annuity}}\] \[\text{Market Value Asset Swap Spread} = \frac{\text{Curve Price} - \text{Dirty Price}}{\text{Dirty Price} \cdot \text{Annuity}}\]where P(t) = (1 + r(t))^(-t) is the discount factor of the annually compounded US dollar zero rate r(t) of the curve on the bond’s Price Date, c the coupon rate, \(t_{i}\) the semi-annual coupon dates counted back from maturity in years on the 30/360 Bond Basis (as get_bond_universe prices the bonds), Dirty Price = Price + Accrued Interest per 100 of par, and \(\delta_{j} = 1\) / float_frequency the accrual of the floating periods from the Price Date to maturity (a short first period). The spreads are simple annual rates on the floating leg.
The default curve is EIOPA’s US dollar risk-free rate term structure, which EIOPA derives from US dollar swap rates, of the last month end on or before each bond’s Price Date; the government curve is the Treasury zero-coupon curve of the Price Date instead, which gives the asset swap spread over Treasuries. For a bond and curve of your own, use swap_model.get_asset_swap_spread.
Also known as: ASW, asset swap spread, par-par asset swap, proceeds asset swap, market value asset swap.
Example
Install the Finance Toolkit with pip install financetoolkit -U, then call get_asset_swap_spread:
from financetoolkit import FixedIncome
fixedincome = FixedIncome(end_date='2026-11-20', api_key="FINANCIAL_MODELING_PREP_KEY")
spreads = fixedincome.get_asset_swap_spread(issuer="APPLE INC")
spreads[["Coupon", "Maturity", "Price", "Par Asset Swap Spread", "Market Value Asset Swap Spread"]]
Which returns:
| ISIN | Coupon | Maturity | Price | Par Asset Swap Spread | Market Value Asset Swap Spread |
|---|---|---|---|---|---|
| US037833EC07 | 0.0120 | 2028-02-08 | 96.2046 | 0.0013 | 0.0014 |
| US037833ET32 | 0.0400 | 2028-05-10 | 99.0862 | 0.0029 | 0.0029 |
| US037833EY27 | 0.0400 | 2028-05-12 | 99.0596 | 0.0031 | 0.0031 |
| US037833EH93 | 0.0140 | 2028-08-05 | 94.9769 | 0.0013 | 0.0013 |
| US037833FD70 | 0.0465 | 2028-11-09 | 99.8532 | 0.0033 | 0.0033 |
| US037833EN61 | 0.0325 | 2029-08-08 | 97.0198 | 0.0003 | 0.0003 |
| US037833DP29 | 0.0220 | 2029-09-11 | 93.6717 | 0.0023 | 0.0024 |
| US037833FF29 | 0.0475 | 2029-11-09 | 99.8118 | 0.0041 | 0.0041 |
| US037833EU05 | 0.0415 | 2030-05-10 | 97.6858 | 0.0048 | 0.0049 |
| US037833DU14 | 0.0165 | 2030-05-11 | 89.7200 | 0.0048 | 0.0054 |
| US037833EZ91 | 0.0420 | 2030-05-12 | 98.1151 | 0.0039 | 0.0040 |
| US037833DY36 | 0.0125 | 2030-08-20 | 87.8685 | 0.0041 | 0.0046 |
| US037833ED89 | 0.0165 | 2031-02-08 | 88.0436 | 0.0040 | 0.0045 |
| US037833EJ59 | 0.0170 | 2031-08-05 | 86.9897 | 0.0040 | 0.0046 |
| US037833FG02 | 0.0490 | 2031-11-09 | 100.0310 | 0.0050 | 0.0050 |
| US037833FA32 | 0.0450 | 2032-05-12 | 97.7774 | 0.0056 | 0.0057 |
| US037833EP10 | 0.0335 | 2032-08-08 | 93.0253 | 0.0034 | 0.0037 |
| US037833EV87 | 0.0430 | 2033-05-10 | 96.2564 | 0.0056 | 0.0058 |
| US037833FH84 | 0.0510 | 2033-11-09 | 99.4502 | 0.0077 | 0.0077 |
| US037833FB15 | 0.0475 | 2035-05-12 | 97.6361 | 0.0063 | 0.0065 |
| US037833BW97 | 0.0450 | 2036-02-23 | 96.6602 | 0.0047 | 0.0048 |
| US037833FJ41 | 0.0535 | 2036-11-09 | 99.7027 | 0.0089 | 0.0089 |
| US037833EE62 | 0.0238 | 2041-02-08 | 68.5894 | 0.0079 | 0.0114 |
| US037833AL42 | 0.0385 | 2043-05-04 | 78.8079 | 0.0105 | 0.0132 |
| US037833AT77 | 0.0445 | 2044-05-06 | 84.5512 | 0.0108 | 0.0128 |
| US037833BA77 | 0.0345 | 2045-02-09 | 73.0411 | 0.0098 | 0.0132 |
| US037833BH21 | 0.0438 | 2045-05-13 | 82.4199 | 0.0113 | 0.0137 |
| US037833BX70 | 0.0465 | 2046-02-23 | 86.6273 | 0.0103 | 0.0117 |
| US037833CD08 | 0.0385 | 2046-08-04 | 76.4480 | 0.0100 | 0.0129 |
| US037833CH12 | 0.0425 | 2047-02-09 | 81.0073 | 0.0102 | 0.0125 |
| US037833DD98 | 0.0375 | 2047-09-12 | 73.9067 | 0.0103 | 0.0138 |
| US037833DG20 | 0.0375 | 2047-11-13 | 73.0493 | 0.0109 | 0.0149 |
| US037833DQ02 | 0.0295 | 2049-09-11 | 62.4841 | 0.0095 | 0.0151 |
| US037833DW79 | 0.0265 | 2050-05-11 | 57.5761 | 0.0096 | 0.0166 |
| US037833DZ01 | 0.0240 | 2050-08-20 | 55.2311 | 0.0085 | 0.0153 |
| US037833EF38 | 0.0265 | 2051-02-08 | 58.0474 | 0.0088 | 0.0150 |
| US037833EK23 | 0.0270 | 2051-08-05 | 58.3141 | 0.0088 | 0.0150 |
| US037833EQ92 | 0.0395 | 2052-08-08 | 74.6761 | 0.0099 | 0.0130 |
| US037833EW60 | 0.0485 | 2053-05-10 | 87.1106 | 0.0105 | 0.0120 |
| US037833EA41 | 0.0255 | 2060-08-20 | 50.9292 | 0.0086 | 0.0167 |
| US037833EG11 | 0.0280 | 2061-02-08 | 54.1057 | 0.0091 | 0.0166 |
| US037833EL06 | 0.0285 | 2061-08-05 | 54.6777 | 0.0092 | 0.0165 |
| US037833ER75 | 0.0410 | 2062-08-08 | 72.3591 | 0.0113 | 0.0154 |
43 rows
Parameters
get_asset_swap_spread accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
issuer | list[str] | str | None | Keeps the bonds whose issuer contains this text (case-insensitive), e.g. “APPLE”, or any of several. Defaults to None, every issuer. | None, every issuer |
bonds | list[str] | str | None | Keeps the bonds with these ISINs or CUSIPs, as a list or a comma-separated string. Defaults to None, every bond. | None, every bond |
maturity_start | str | None | Keeps the bonds maturing on or after this date (YYYY-MM-DD). Defaults to None. | None |
maturity_end | str | None | Keeps the bonds maturing on or before this date (YYYY-MM-DD). Defaults to None. | None |
etfs | list[str] | str | None | The bond ETFs to read the bonds from (see get_bond_universe). Defaults to None, LQD, IGSB and USHY. | None, LQD, IGSB and USHY |
curve | str | The swap curve. Options are: “eiopa” (EIOPA’s US dollar risk-free rate term structure), “government” (the Treasury zero-coupon curve). Defaults to “eiopa”. | "eiopa" |
float_frequency | int | The number of floating payments per year of the swap. Defaults to 4 (quarterly). | 4 (quarterly) |
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 Referenced against QuantLib’s AssetSwap.fairSpread