← Back to Financial Datasets
GET/macro/yield-curve
Treasury Yields (Historical)
The daily US Treasury par yield curve since 1990, one object per business day with one key per tenor (1-month to 30-year), newest first. Values are par yields in percent.
Financial Datasets·$0.025 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "financial-datasets",
path: "/macro/yield-curve"
});
console.log(output);Query parameters
start_date
string
The first date to return, inclusive, in YYYY-MM-DD format. Defaults to one year before end_date.
end_date
string
The last date to return, inclusive, in YYYY-MM-DD format. Defaults to today.
cursor
string
Opaque pagination cursor from a previous response next_page_url.