Read the newest Treasury par yield curves
curl --request GET \
--url https://api.darvas.app/v1/macro/yield-curve/snapshot \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/yield-curve/snapshot"
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/snapshot', 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
Latest US Treasury Yield Curve Snapshot API
Fetch the latest US Treasury constant-maturity yields across all 14 tenors from 1 month to 30 years in a single structured snapshot response.
Read the newest Treasury par yield curves
curl --request GET \
--url https://api.darvas.app/v1/macro/yield-curve/snapshot \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/yield-curve/snapshot"
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/snapshot', 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
The newest curve as one object with a field per tenor.| Coverage | Details |
|---|---|
| Tenors | All 14 official US Treasury constant-maturity tenors from 1_month to 30_year, in percent |
| Freshness | Checked every 10 minutes; returns the most recent US Treasury business day |
| History | Daily curve history since 1990 lives at Treasury Yield Curve |
| MCP tool | get_yield_curve_snapshot on the data API MCP server |
Example
curl "https://api.darvas.app/v1/macro/yield-curve/snapshot" -H "X-API-KEY: $DARVAS_API_KEY"
Authorizations
apiKeybearerKey
Response
Read the newest Treasury par yield curves: one page.