HQM Corporate Bond Spread
Computes the credit spread of high quality US corporate bonds per maturity: the Treasury’s High Quality Market (HQM) corporate par yield minus the Treasury constant maturity yield, at 2, 5, 10 and 30 years, monthly. Both legs are par yields averaged over the month, so they are directly comparable. The spread is what investors demand for the default and liquidity risk of investment grade companies, and its shape across maturities, usually wider for longer maturities, shows how that compensation grows with time.
Unlike the ICE BofA option-adjusted spreads (see get_ice_bofa_option_adjusted_spread), of which FRED only carries the last three years, this spread covers decades, long enough to calibrate how credit spreads behave through several business cycles.
The formula is as follows:
\[\text{HQM Spread} (\text{maturity}) = \text{HQM Corporate Par Yield} (\text{maturity}) - \text{Treasury Constant Maturity Yield} (\text{maturity}),\;\; \text{both monthly averages},\;\; \text{for 2},\;\; \text{5},\;\; \text{10 and 30 years}\]No API key is needed: without a FRED API key both legs come from the Treasury, the HQM par yields from its HQM files and the Treasury yields as the monthly averages of its daily par yield curve, rounded to two decimals in percent as the Federal Reserve’s H.15 release publishes them. That curve starts in 1990 and has no 30-year yield from February 2002 to February 2006, so the keyless spread starts in 1990 and leaves those 30-year months empty. When a FRED API key is set (see the fred_api_key parameter of the FixedIncome class), the Treasury yields are FRED’s constant maturity series, from 1984. The spreads are returned as decimal fractions (0.0079 for 0.79 percentage points).
Also known as: corporate credit spread curve, credit spread term structure, investment grade spread.
HQM Corporate Bond Spread in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_hqm_corporate_bond_spread as shown below.
from financetoolkit import FixedIncome
fixedincome = FixedIncome(start_date='2026-03-01', end_date='2026-08-31')
fixedincome.get_hqm_corporate_bond_spread()
Or, after setting up the Finance Toolkit MCP, ask:
How did the spread of high quality US corporate bonds over Treasuries at 2, 5, 10 and 30 years move in each month from March to August 2026?
Which returns:
| 2Y | 5Y | 10Y | 30Y | |
|---|---|---|---|---|
| 2026-03 | 0.0048 | 0.006 | 0.0078 | 0.0091 |
| 2026-04 | 0.0042 | 0.0053 | 0.0071 | 0.0084 |
| 2026-05 | 0.0037 | 0.005 | 0.007 | 0.0082 |
| 2026-06 | 0.0035 | 0.0049 | 0.0071 | 0.0083 |
| 2026-07 | 0.0035 | 0.0053 | 0.0075 | 0.0092 |
| 2026-08 | 0.0036 | 0.0056 | 0.0079 | 0.0095 |
Parameters
get_hqm_corporate_bond_spread accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
rounding | int | None | The number of decimals to round the results to. Defaults to None. | 2 |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | The number of periods to lag the growth data by. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |