Moody’s Corporate Bond Yields
Retrieves Moody’s seasoned corporate bond yields for Aaa (the highest rating) and Baa (the lowest investment grade rating) US corporate bonds: what the safest and the riskiest investment grade companies pay to borrow, the longest running corporate bond yield benchmark there is, daily from 1986 and monthly from 1919.
The spreads over the 10-year Treasury yield can be returned instead, together with the Baa minus Aaa spread, the classic measure of default risk in the academic literature (e.g. Fama and French, 1989), which widens sharply in recessions. Monthly spreads start in 1953, when the monthly 10-year Treasury yield does.
Monthly values are the averages over the month, as Moody’s publishes them; weekly values are the yields on the last day of each week (weeks end on Friday).
The formula of the spreads is as follows:
\[\text{Aaa} = \text{Aaa Yield} - \text{10-Year} \;\text{Treasury Yield},\;\; \text{and Baa likewise}\] \[\text{Baa} - \text{Aaa} = \text{Baa Yield} - \text{Aaa Yield}\]Monthly spreads subtract the monthly average 10-year Treasury constant maturity yield; daily spreads are the ones FRED publishes against the daily 10-year yield.
The data comes from FRED, so a free FRED API key is required. The yields and spreads are returned as decimal fractions (0.0675 for 6.75%).
Also known as: Moody’s Aaa, Moody’s Baa, corporate bond yields by rating, default spread, credit spread.
Example · 2026
Install the Finance Toolkit with pip install financetoolkit -U, then call get_moodys_corporate_bond_yields:
from financetoolkit import FixedIncome
fixedincome = FixedIncome(start_date='2026-03-01', end_date='2026-08-31')
fixedincome.get_moodys_corporate_bond_yields(period='monthly', spread=True)
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How did the spreads of Moody's Aaa and Baa US corporate bonds over the 10-year Treasury move from March to August 2026?
Which returns:
| Item | Aaa | Baa | Baa - Aaa |
|---|---|---|---|
| 2026-03 | 0.0123 | 0.0179 | 0.0056 |
| 2026-04 | 0.0110 | 0.0171 | 0.0061 |
| 2026-05 | 0.0108 | 0.0162 | 0.0054 |
| 2026-06 | 0.0105 | 0.0153 | 0.0048 |
| 2026-07 | 0.0116 | 0.0159 | 0.0043 |
| 2026-08 | 0.0120 | 0.0164 | 0.0044 |
6 rows
Parameters
get_moodys_corporate_bond_yields accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The frequency of the data. Options are: “daily” (daily), “weekly” (the last day of every week), “monthly” (monthly averages), “quarterly” and “yearly” (the averages of the monthly averages of the complete quarters and years). Defaults to “daily”. | "weekly" |
spread | bool | Whether to return the spreads over the 10-year Treasury yield instead of the yields. Defaults to False. | True |
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 |
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 |