US Treasury yield curve
curl --request GET \
--url https://api.turos.app/v1/embed/macro/rates/us-curveimport requests
url = "https://api.turos.app/v1/embed/macro/rates/us-curve"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.turos.app/v1/embed/macro/rates/us-curve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Embed
US Treasury yield curve
Anonymous, cacheable US Treasury yield curve built from FRED-derived public-domain observations: latest, month-ago, and year-ago curve snapshots across the 2Y, 5Y, 7Y, 10Y, 20Y, and 30Y tenors; 10Y-2Y and 10Y-3M spread snapshots; and bounded weekly history per series. Returns 404 while this public embed is not enabled.
GET
/
v1
/
embed
/
macro
/
rates
/
us-curve
US Treasury yield curve
curl --request GET \
--url https://api.turos.app/v1/embed/macro/rates/us-curveimport requests
url = "https://api.turos.app/v1/embed/macro/rates/us-curve"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.turos.app/v1/embed/macro/rates/us-curve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Response
Successful response
The response is of type object.