Skip to main content
Get US Treasury yield curve spreads and Sahm Rule indicator

Overview

This endpoint computes US Treasury yield curve spreads from the daily par yield curve: 2s10s, 3m10y, 2s5s, 5s30s and the 10-year yield less the Fed funds target midpoint, with the curve’s regime and how long each spread has been inverted. sahm_rule gives the real-time Sahm Rule recession indicator from the monthly unemployment rate. The history arrays cover days of spreads and months of the Sahm Rule.

Example

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Query Parameters

days
integer<int32>
default:90

Trailing trading days of yield curve spreads history (1 to 1260; default 90).

Required range: 1 <= x <= 1260
months
integer<int32>
default:24

Trailing months of Sahm Rule history (1 to 240; default 24).

Required range: 1 <= x <= 240
start_date
string<date>

Optional inclusive lower date bound (YYYY-MM-DD) for history arrays.

Maximum string length: 10
end_date
string<date>

Optional inclusive upper date bound (YYYY-MM-DD) for history arrays.

Maximum string length: 10
include_history
enum<string>
default:true

Whether to include spreads_history and sahm_history arrays (default true).

Available options:
true,
false

Response

Get US Treasury yield curve spreads and Sahm Rule indicator: one page.

The answer of GET /macro/spreads.

computed_at
string<date-time>
required

UTC computation timestamp.

Example:

"2026-11-30T00:00:00.000Z"

spreads_history
object[]
required

Daily Treasury spreads history.

Maximum array length: 1260
sahm_history
object[]
required

Monthly Sahm Rule history.

Maximum array length: 240
spreads_count
integer<int32>
required

Number of daily spreads rows returned.

Required range: 0 <= x <= 1260
Example:

90

sahm_count
integer<int32>
required

Number of monthly Sahm Rule rows returned.

Required range: 0 <= x <= 240
Example:

24

as_of
string<date> | null

Latest curve or labor observation date.

Example:

"2026-11-27"

yield_curve_spreads
object | null

Latest US Treasury curve spread snapshot with regime and 1w/1m changes.

Example:
sahm_rule
object | null

Monthly Sahm Rule recession indicator derived from BLS U-3 unemployment.

Example:
methodology
string

Spread and Sahm Rule calculation methodology.

Maximum string length: 1500
Pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
Example:

"Spreads are computed in basis points from US Treasury daily par yields."

sources
object[]

Stored public macro dataset sources.

Maximum array length: 10