I-Spread

Calculates the I-spread (interpolated spread) of US dollar corporate bonds: the yield to maturity over the par swap rate of the bond’s maturity. The I-spread compares a bond with the swap curve the way the G-spread compares it with Treasuries (Tuckman and Serrat, 2022, Fixed Income Securities, ch. 18); the difference between the two is the swap spread at the bond’s maturity.

The formula is as follows:

\[\text{I-Spread} = \text{Yield to Maturity} - \text{Swap Rate}(T)\]

where the Yield to Maturity is that of get_bond_universe (a nominal annual rate compounded twice a year) and Swap Rate(T) the par swap rate of get_swap_rate for the bond’s years to maturity T on the 30/360 Bond Basis, with semi-annual fixed payments so that both rates are compounded alike (a short first period when T is not a whole number of half years). The swap rate is priced on the annually compounded US dollar zero curve of the bond’s Price Date.

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, which makes the I-spread a spread over the Treasury par curve, close to the G-Spread. For a bond and curve of your own, use swap_model.get_i_spread.

Also known as: interpolated spread, I-spread, spread over swaps, swap spread of a bond.

Example

Install the Finance Toolkit with pip install financetoolkit -U, then call get_i_spread:

from financetoolkit import FixedIncome

fixedincome = FixedIncome(end_date='2026-11-20', api_key="FINANCIAL_MODELING_PREP_KEY")

spreads = fixedincome.get_i_spread(issuer="APPLE INC")

spreads[["Coupon", "Maturity", "Yield to Maturity", "Swap Rate", "I-Spread", "G-Spread"]]

Which returns:

Parameters

get_i_spread accepts the following parameters.

ParameterTypeDescriptionExample
issuerlist[str] | str | NoneKeeps the bonds whose issuer contains this text (case-insensitive), e.g. “APPLE”, or any of several. Defaults to None, every issuer.None, every issuer
bondslist[str] | str | NoneKeeps the bonds with these ISINs or CUSIPs, as a list or a comma-separated string. Defaults to None, every bond.None, every bond
maturity_startstr | NoneKeeps the bonds maturing on or after this date (YYYY-MM-DD). Defaults to None.None
maturity_endstr | NoneKeeps the bonds maturing on or before this date (YYYY-MM-DD). Defaults to None.None
etfslist[str] | str | NoneThe bond ETFs to read the bonds from (see get_bond_universe). Defaults to None, LQD, IGSB and USHY.None, LQD, IGSB and USHY
curvestrThe swap curve. Options are: “eiopa” (EIOPA’s US dollar risk-free rate term structure), “government” (the Treasury zero-coupon curve). Defaults to “eiopa”."eiopa"
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the class.2
show_columnsstr | list[str] | NoneThe 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
Share