Rates by maturity
Fetch 10-year par yields for a date range:1M, 2M, 3M, 4M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y.
Full yield curve
Fetch all maturities for a single date:The 10Y-2Y spread
The spread endpoint calculates the difference between two maturities:Response
spread_bps is in basis points. Positive = normal curve, negative = inverted. The 10Y-2Y spread inverted before every U.S. recession since 1970.
You can compare any two maturities — long=30Y&short=5Y, long=10Y&short=3M, etc.
TIPS real yields
Passcurve_type=TIPS for inflation-adjusted yields: