/v1/market/macro
Latest US macro readings from FRED: effective fed funds rate, 10-year Treasury yield, CPI and M2 year over year, unemployment, jobless claims, broad dollar index. With id: every observation of that series over the last months
Request
https://api.xrpl.to/v1/market/macro| Query parameter | Value | Description |
|---|---|---|
| id | DFF|DGS10|CPIAUCSL|UNRATE|ICSA|DTWEXBGS|M2SL (optional: one series' history instead) | |
| months | int 1-24 (default 12, with id) |
curl 'https://api.xrpl.to/v1/market/macro'
Response
https://api.xrpl.to/v1/market/macro{ "success": true, "series": [ { "id": "DFF", "name": "Effective federal funds rate", "error": "unavailable" }, { "id": "DGS10", "name": "10-year Treasury yield", "error": "unavailable" }, { "id": "CPIAUCSL", "name": "CPI inflation, year over year", "error": "unavailable" }, { "id": "UNRATE", "name": "Unemployment rate", "error": "unavailable" }, { "id": "ICSA", "name": "Initial jobless claims", "error": "unavailable" } ], "source": "FRED, Federal Reserve Bank of St. Louis", "note": "Each value is the latest observation FRED has published, dated by the period it covers." }
Long arrays and strings are shortened in the example; Send request for the full answer.
{ success, series[] { id, name, units, value, date, previous { value, date }, url }, source, note }; with id { success, id, name, units, url, months, from, observations[] { date, value }, source, note }
What it does
Latest US macro readings from FRED: effective fed funds rate, 10-year Treasury yield, CPI and M2 year over year, unemployment, jobless claims, broad dollar index. With id: every observation of that series over the last months