Field reference / macro rates
macro_yield_curve_10y_minus_2y_pct
10-year minus 2-year Treasury par yield, in percentage points (0.55 = the 10-year yields 0.55 points more; negative = inverted), on the newest date both are published by the row's cutoff (weekly rows: the week's last session's) (U.S. Treasury daily par yield curve, never revised). Null when the 10-year is more than 10 days old or the 2-year has no value that date.
| Level | Market-wide, one value per date |
| Type | number |
| Can be null | Yes |
| Category | macro rates |
| Returned by | /v1/market, /v1/search |
Getting it
Its latest value:
curl -G "https://api.tickerdb.com/v1/market" \
--data-urlencode 'fields=macro_yield_curve_10y_minus_2y_pct' \
-H "Authorization: Bearer YOUR_API_KEY"
Its value on a date:
curl -G "https://api.tickerdb.com/v1/market" \
--data-urlencode 'date=2020-03-23' \
--data-urlencode 'fields=macro_yield_curve_10y_minus_2y_pct' \
-H "Authorization: Bearer YOUR_API_KEY"
Related fields
Every field, with its type and values, is also in /v1/schema/fields.