Economics
Yield Curve
The US Treasury yield curve on one day compared with the curve 1 week, 1, 3 or 6 months, or 1, 2 or 5 years earlier, with the 10-year minus 2-year and 10-year minus 3-month spreads.
All parameters are optional. The answer is {as_of, curves: [{label, date, points, spread_10y_2y, spread_10y_3m, inverted_10y_2y}], about}.
get/treasury-yields/curve
Request
- Base URL: https://api.dataporium.io
- URL: https://api.dataporium.io/treasury-yields/curve
- Auth: API key in query parameter apikey
Query parameters
datestring
Day of the curve (YYYY-MM-DD); default the newest
comparestring
Earlier curves, comma-separated: 1w, 1m, 3m, 6m, 1y, 2y, 5y (default 1m,1y)
Response
Successful response (JSON).
object required
Changes
No recorded changes to this operation across all 1 revision of this API.