Get the Treasury yield curve
get_treasury_curveGet the U.S. Treasury yield curve for a single day: the fitted zero-coupon (spot) curve and, on request, the par curve, money-market curve, TIPS real curve, breakeven inflation, the prior trading day for day-over-day moves, and per-CUSIP yields. Omit the date for the most recent published day, which is what you want on a weekend or holiday. Treasury yields are not mortgage rates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Trading day as YYYY-MM-DD. Omit for the most recent published day — most calendar days are not trading days, so omitting is usually right. | |
| include | No | Which curves to return. Defaults to ["zero"]. "real" is the TIPS curve, "breakeven" the inflation implied between them, "prior" the previous trading day for comparison, "queue_yields" per-CUSIP yields and curve residuals. | |
| queue_kind | No | Security kind for "queue_yields". Defaults to Note. |