m.economy.treasury_yields¶
US Treasury yields at constant maturities from one month to 30 years, one row per day.
Call it from a session m, made with dm.MassiveSession():
m.economy.treasury_yields(*, start=None, end=None, sort=None, order=None, limit=None, filters=None, on_error=None)
- Methods:
fetch(),poll(interval) - Read from: REST
poll()by default:dm.PollMode.REPLACE, which holds only the latest poll's rows, one row perDate
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
start |
The first date. |
end |
The last date. |
sort |
Any of Massive's field names, such as "yield_10_year". Fields: any REST field under Massive fields. |
order |
The direction of sort. |
limit |
The most rows to return, in total. |
filters |
Further endpoint parameters. Keys: none. |
on_error |
What a bad symbol or row does in this call (dm.ErrorPolicy). None, the default, takes each cause from the session's MassiveConfig.on_error. |
Plans¶
How recent the data is on each of Massive's plans, and how far back its history goes, as Massive's pages state them.
| Plan | Treasury Yields (REST) |
|---|---|
| All Stocks plans | Updated daily, All history |
| All Options plans | Updated daily, All history |
| All Indices plans | Updated daily, All history |
| All Currencies plans | Updated daily, All history |
| Stocks Business | Updated daily, All history |
| Options Business | Updated daily, All history |
| Indices Business | Updated daily, All history |
| Currencies Business | Updated daily, All history |
Columns¶
| Column | Type | Description |
|---|---|---|
Date |
String | Calendar date of the yield observation (YYYY-MM-DD). |
Yield10Year |
double | Market Yield on U.S. Treasury Securities at 10-Year Constant Maturity, Quoted on an Investment Basis |
Yield1Month |
double | Market Yield on U.S. Treasury Securities at 1-Month Constant Maturity, Quoted on an Investment Basis |
Yield1Year |
double | Market Yield on U.S. Treasury Securities at 1-Year Constant Maturity, Quoted on an Investment Basis |
Yield20Year |
double | Market Yield on U.S. Treasury Securities at 20-Year Constant Maturity, Quoted on an Investment Basis |
Yield2Year |
double | Market Yield on U.S. Treasury Securities at 2-Year Constant Maturity, Quoted on an Investment Basis |
Yield30Year |
double | Market Yield on U.S. Treasury Securities at 30-Year Constant Maturity, Quoted on an Investment Basis |
Yield3Month |
double | Market Yield on U.S. Treasury Securities at 3-Month Constant Maturity, Quoted on an Investment Basis |
Yield3Year |
double | Market Yield on U.S. Treasury Securities at 3-Year Constant Maturity, Quoted on an Investment Basis |
Yield5Year |
double | Market Yield on U.S. Treasury Securities at 5-Year Constant Maturity, Quoted on an Investment Basis |
Yield6Month |
double | Market Yield on U.S. Treasury Securities at 6-Month Constant Maturity, Quoted on an Investment Basis |
Yield7Year |
double | Market Yield on U.S. Treasury Securities at 7-Year Constant Maturity, Quoted on an Investment Basis |
TimestampInsert |
Instant | When the library received the row, by the local clock. Rows that arrive together share it. It isn't Massive's time, and later rows can carry earlier times. In a poll() table, it's the time of the poll the row's values came from. |
Massive fields
The Massive field behind each column, by source. An empty cell means the source doesn't carry the column, or the library computes it.
| Column | REST field |
|---|---|
Date |
date |
Yield10Year |
yield_10_year |
Yield1Month |
yield_1_month |
Yield1Year |
yield_1_year |
Yield20Year |
yield_20_year |
Yield2Year |
yield_2_year |
Yield30Year |
yield_30_year |
Yield3Month |
yield_3_month |
Yield3Year |
yield_3_year |
Yield5Year |
yield_5_year |
Yield6Month |
yield_6_month |
Yield7Year |
yield_7_year |
TimestampInsert |
Massive's documentation¶
The plan tables and most column descriptions are Massive's, from its documentation as fetched on 2026-12-01, with a few corrected where Massive's are wrong. The library writes its own descriptions of the columns it names or computes, such as Symbol and TimestampInsert.