Retrieves macroeconomic datasets. dataset='yield_curve' returns the daily US Treasury par yield curve: one object per business day with the keys date, 1_month, 1_5_month, 2_month, 3_month, 4_month, 6_month, 1_year, 2_year, 3_year, 5_year, 7_year, 10_year, 20_year, 30_year, values in percent. A tenor is null when it was not published that day (for example the 30-year from 2002 to 2006); null is not zero. Omit both dates to get the latest curve as a single object. Give start_date and/or end_date to get history as an array, newest first (default window: the trailing year). dataset='interest_rates' returns central bank policy rates as a daily series: omit both dates for every bank's newest published rate as an array (one row per bank with the date it is in effect), or give dates plus a bank code (e.g. bank='FED') for that bank's history, one row per calendar day, newest first, 10 rows per page with next_page_url (default window the trailing five years). Each row has bank, name, date, and rate (percent; for the Federal Reserve the midpoint of the target range). The source publishes the daily series weekly, so the newest day is two to nine days behind. dataset='inflation' returns US CPI and the PCE price index: omit both dates for the latest month of all fourteen series (CPI comes out mid-month, PCE about two weeks later, so the two families can show different months), or give dates plus series (e.g. series='cpi_all_sa' or series='pce_core_sa') for that series' history. Each row has date (the reference month, first day), value (index level: 1982-84=100 for CPI, 2017=100 for PCE), change_1m_pct and change_12m_pct (percent, 1 decimal; null when the comparison month was not published, e.g. October 2025 for CPI). The headline inflation rate is change_12m_pct of cpi_all_nsa; the Fed's preferred measure is change_12m_pct of pce_core_sa. dataset='labor' returns the US labor market, i.e. the jobs report (nonfarm payrolls, unemployment rate, participation, hourly earnings), JOLTS job openings, hires, and quits, and weekly jobless claims: omit both dates for the latest print of all 24 series (monthly series on their latest month, weekly jobless claims on their latest week), or give dates plus series (e.g. series='payrolls_sa') for that series' history. Each row has date (the reference period: the first day of the month for monthly series, the week-ending Saturday for weekly), value (in the series' units: thousands of persons, percent, dollars per hour, persons), change_prior and change_year (value minus the prior period and minus the period one year back, same units), and change_year_pct (percent, 1 decimal; null for rates such as unemployment_rate_sa, whose change is in points; null when the comparison period was not published). dataset='gpu_prices' returns the daily GPU rental price index, the market price of an hour of H100, H200, B200, or B300 compute in US dollars per GPU hour: omit both dates for today's price of all four models (refreshed hourly), or give dates plus series (e.g. series='h100') for that model's daily history (from August 2026; default window the trailing 90 days). Each row has date (UTC day), value (USD per GPU hour), stability_band (the spread across providers, same units), change_1d (dollars), change_1d_pct, change_7d_pct, change_30d_pct (percent, 2 decimals; null when the comparison day has no value), and as_of (when today's value was last refreshed). The response carries an attribution for the source (the Computable GPU Index); keep it when showing the data. Useful for the 10-year yield, the 2s10s spread, policy rates, discount rates, real returns, payrolls, the unemployment rate, wage growth, weekly jobless claims, and the cost of AI compute.
Parameters
Which macro dataset to return. 'yield_curve': the daily US Treasury par yield curve, one object per business day with one key per tenor. 'interest_rates': the daily policy rate of 10 central banks, one row per calendar day. 'inflation': monthly US inflation, fourteen series: twelve CPI plus the headline and core PCE price index. 'labor': the US labor market (the jobs report: nonfarm payrolls, unemployment rate, participation, hourly earnings; JOLTS job openings, hires, quits; weekly jobless claims), 24 monthly and weekly series. 'gdp': US growth and income (real GDP growth, real and nominal GDP, the four contributions to growth, income-side growth, corporate profits, personal income, the saving rate, real consumer spending), twelve quarterly and monthly series. 'gpu_prices': the daily GPU rental price index (H100, H200, B200, B300) in USD per GPU hour, four series, refreshed hourly. One of: `yield_curve`, `interest_rates`, `inflation`, `labor`, `gdp`, `gpu_prices`.
Central bank code, e.g. 'FED', 'ECB', 'BOE', 'BOJ'. Required for interest_rates history (with dates); not used by other datasets or by the latest-values call.
Last date in YYYY-MM-DD format (inclusive, default: today).
Series id. For dataset='inflation': cpi_all_sa (headline CPI), cpi_core_sa (core CPI), cpi_food_sa, cpi_energy_sa, cpi_shelter_sa, cpi_services_less_energy_sa, each also as _nsa (not seasonally adjusted); pce_all_sa (headline PCE price index) and pce_core_sa (core PCE, the Fed's preferred inflation measure), seasonally adjusted only. For dataset='labor', monthly: payrolls_sa, unemployment_rate_sa, unemployment_rate_u6_sa, participation_rate_sa, hourly_earnings_sa, job_openings_sa, hires_sa, quits_sa, each also as _nsa; weekly: initial_claims_sa, initial_claims_nsa, initial_claims_4_week_sa, continued_claims_sa, continued_claims_nsa, continued_claims_4_week_sa, insured_unemployment_rate_sa, insured_unemployment_rate_nsa. For dataset='gdp', quarterly: real_gdp_growth, real_gdp, nominal_gdp, consumer_spending_contribution, investment_contribution, net_exports_contribution, government_contribution, real_gdi_growth, corporate_profits; monthly: personal_income, saving_rate, real_consumer_spending; all seasonally adjusted. For dataset='gpu_prices': h100, h200, b200, b300. Required for inflation, labor, gdp, and gpu_prices history (with dates); optional filter for the latest values; not used by other datasets.
First date in YYYY-MM-DD format (inclusive). Give a start_date or end_date to get history; omit both dates to get the latest values.