Get a Treasury index
get_treasury_indexGet Safe Rate's Treasury total-return indices — by maturity bucket, plus bills, TIPS, floating-rate and aggregate. Call with no code to list every index with its current level and discover the codes. These are TOTAL RETURN levels, not yields: a rising level usually means yields fell. Constructed by Safe Rate, not an official Treasury statistic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | With no code, returns every index's level as at this date instead of the latest. | |
| code | No | Index code, e.g. "broad", "1020", "TIPS". Omit to list every index with its latest level. | |
| since | No | Start date for "daily_history". | |
| include | No | Extras. "fund_comparison" sets each index beside comparable public bond funds and applies to the no-code listing. | |
| constituents_on | No | Rebalance date for constituents. Defaults to the most recent — constituents exist on rebalance dates only, not daily. |