List Treasury par yield curves
curl --request GET \
--url https://api.darvas.app/v1/macro/yield-curve \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/yield-curve"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/macro/yield-curve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"yield_curve": [
{
"date": "2026-11-24",
"1_month": 4.21,
"10_year": 4.91,
"30_year": 5.3
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Yield Curve
US Treasury Yield Curve Historical Rates API
Query daily US Treasury yield curve rates across all 14 official maturities from 1 month to 30 years for 2s10s spreads and fixed-income analysis.
List Treasury par yield curves
curl --request GET \
--url https://api.darvas.app/v1/macro/yield-curve \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/yield-curve"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/macro/yield-curve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"yield_curve": [
{
"date": "2026-11-24",
"1_month": 4.21,
"10_year": 4.91,
"30_year": 5.3
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
One object per business day with a field per tenor, in percent. A tenor that did not exist that day is absent: the 1-month bill starts in 2001, the 20-year bond returns in 1993, the 1.5-month bill starts in 2025.| Coverage | Details |
|---|---|
| Tenors | 1, 1.5, 2, 3, 4 and 6 months; 1, 2, 3, 5, 7, 10, 20 and 30 years |
| History | Since 2 January 1990 |
| Source | US Treasury daily par yield curve rates |
| Checked | Every 10 minutes |
| MCP tool | list_yield_curve on the data API MCP server |
Example
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
base = "https://api.darvas.app/v1/macro"
curve = requests.get(f"{base}/yield-curve", headers=headers, params={"start_date": "2026-01-01"}).json()["yield_curve"]
inverted = [day["date"] for day in curve if day.get("3_month", 0) > day.get("10_year", 0)]
print(len(inverted), "days with the 3-month yield above the 10-year")
Authorizations
apiKeybearerKey
Query Parameters
Response
List Treasury par yield curves: one page.
The answer of GET /macro/yield-curve.