Macro and positioning

Yield curves and macro series

Economic series observations, scheduled releases and government yield curves by date

4 endpoints1 to 2 credits per request

Try it

curl https://api.gloom.sh/v1/yield-curves \
  -H "Authorization: Bearer $GLOOM_DATASETS_KEY"
Response
{
  "data": [
    {
      "curve": {
        "id": "us",
        "label": "US Treasury",
        "country": "US",
        "basis": "par",
        "couponsPerYear": 2
      },
      "unit": "percent",
      "asOf": "2026-12-03",
      "points": [
        {
          "tenor": "1M",
          "years": 0.0833333333333,
          "yield": 4.29
        },
        {
          "tenor": "6W",
          "years": 0.125,
          "yield": 4.3
        },
        // … 12 more items
      ],
      "previous": {
        "asOf": "2026-12-02",
        "points": [
          {
            "tenor": "1M",
            "years": 0.0833333333333,
            "yield": 4.29
          },
          {
            "tenor": "6W",
            "years": 0.125,
            "yield": 4.31
          },
          // … 3 more items
        ]
      },
      "checkedAt": "2026-12-05T11:59:53.097Z"
    },
    {
      "curve": {
        "id": "de",
        "label": "German Bund",
        "country": "DE",
        "basis": "par",
        "couponsPerYear": 1
      },
      "unit": "percent",
      "asOf": "2026-12-04",
      "points": [
        {
          "tenor": "1Y",
          "years": 1,
          "yield": 3.01
        },
        {
          "tenor": "2Y",
          "years": 2,
          "yield": 3.06
        },
        // … 12 more items
      ],
      "previous": {
        "asOf": "2026-12-03",
        "points": [
          {
            "tenor": "1Y",
            "years": 1,
            "yield": 3.03
          },
          {
            "tenor": "2Y",
            "years": 2,
            "yield": 3.1
          },
          // … 3 more items
        ]
      },
      "checkedAt": "2026-12-05T12:04:26.363Z"
    },
    // … 3 more items
  ],
  "meta": {
    "dataset": "macro",
    "requestId": "sample-request",
    "asOf": null,
    "dataThrough": "2026-12-04",
    "historyStart": null,
    "updatedAt": "2026-12-05T12:04:26.363Z",
    "page": null,
    "next": null,
    "coverage": {
      "curves": 8
    },
    "symbols": null,
    "sampledAt": "2026-12-05T12:06:08.975Z",
    "source": [
      {
        "attribution": "Government and central bank publications"
      },
      {
        "attribution": "Government and economic data providers"
      },
      // … 1 more items
    ]
  }
}

Trimmed · 2026-12-04

Run it without a key: GET /v1/datasets/macro/sample

Endpoints

Scheduled prices are for one page. See how to quote a request with GET /v1/datasets/cost.

GET/v1/yield-curves1 credit per requestGovernment yield curves by country

Parameters

fieldslist
Comma list of the fields to keep in each row; the rest are left out. A company route's rows keep symbol. Default: every field.curveunitasOfpointspreviouscheckedAt
GET/v1/yield-curves/{curve}2 credits per requestYield curve with dated lookbacks, spreads and ranked moves

Parameters

curvestringrequired
usus-realus-breakeveneu-aaadegbjpcamxbr
datestring
Calendar date: YYYY-MM-DD. On Free: within the last 30 days.
asOfstring
What Gloom knew at this moment: YYYY-MM-DD, through the end of that UTC day, or an RFC 3339 time such as 2026-10-01T14:30:00Z. asOf gives the session on or before the last day over by then, and the sessions before it, as their publisher prints them now. On Free: within the last 30 days.
fieldslist
Comma list of the fields to keep in each row; the rest are left out. A company route's rows keep symbol. Default: every field.curveunitrequestedDateasOfpointslookbacksspreadsmovescheckedAtpublishedAtobservedAt
GET/v1/macro/series/{seriesId}2 credits per requestEconomic series observations and metadata

U.S. labor indicators include CCSA (weekly U.S. continuing jobless claims) and SAHMREALTIME (monthly U.S. real-time Sahm Rule recession indicator).

Other monthly U.S. series: CES0500000003 (average hourly earnings, all private-sector employees); AWHMAN (average weekly manufacturing hours, production and nonsupervisory employees); PPIFES (final-demand PPI excluding foods and energy); WPSFD49116 (also excludes trade services); NEWORDER and ANXAVS (nondefense capital goods excluding aircraft, new orders and shipments respectively).

Quarterly U.S. bank lending survey pairs (net share tightening standards / net share reporting stronger demand): C&I, large and middle-market firms (DRTSCILM / DRSDCILM); C&I, small firms (DRTSCIS / DRSDCIS); CRE, construction and land development (SUBLPDRCSC / SUBLPDRCDC); CRE, nonfarm nonresidential (SUBLPDRCSN / SUBLPDRCDN); CRE, multifamily (SUBLPDRCSM / SUBLPDRCDM); credit cards (DRTSCLCC / DEMCC); other consumer loans, excluding cards and auto (STDSOTHCONS / DEMOTHCONS); GSE-eligible mortgages (SUBLPDHMSENQ / SUBLPDHMDENQ).

Parameters

seriesIdstringrequired
Series identifier, e.g. CCSA. An id not served is a free 400 that lists every id served, by group.
fromstring
Calendar date: YYYY-MM-DD. On Free: no earlier than 30 days back, and 30 days back when left out.
tostring
Calendar date: YYYY-MM-DD. On Free: within the last 30 days.
limitinteger
Observations a page: 120 by default and 1,000 at most, in sortOrder. meta.page.hasMore says whether more follow, and meta.next reads them. On Free: at most 25, and 25 when left out or more.
sortOrderstring
desc (the default): newest first. asc: oldest first. Every page follows it.ascdesc
cursorstring
Opaque: meta.page.nextCursor of the previous page. Bound to this route and query. Not on Free: it reads the first page.
asOfstring
What Gloom knew at this moment: YYYY-MM-DD, through the end of that UTC day, or an RFC 3339 time such as 2026-10-01T14:30:00Z. A series is read as it stood on the last day over by then, each value with the day it was released: revisions made later are not in it. In a series revised most days, a value current since about 2,000 days or more before then has no release day, and availableOn null. A day before the series' first version is a free 400 that names that version's day. A series that keeps no versions says so, and is cut at that day with its values now. On Free: within the last 30 days.
fieldslist
Comma list of the fields to keep in each row; the rest are left out. A company route's rows keep symbol. Default: every field.datevalueavailableOnpublishedAtobservedAt
includelist
Comma list of blocks to add, returned under included: info (the series: title, unit, frequency and seasonal adjustment). Default: none.

from must be on or before to.

GET/v1/macro/calendar1 credit per requestEconomic releases, forecasts and reported actuals

Parameters

fromstring
Calendar date: YYYY-MM-DD. First retained release day to read, inclusive (UTC). Send with to, or omit both. Without from and to, it lists this week's releases, from the start of the week the calendar lists (Sunday), and the releases due in the 15 days from today: today and the 14 days after it, UTC. On Free: no earlier than 30 days back.
tostring
Calendar date: YYYY-MM-DD. Last retained release day to read, inclusive (UTC), today at the latest. Send with from, or omit both. On Free: within the last 30 days.
fieldslist
Comma list of the fields to keep in each row; the rest are left out. A company route's rows keep symbol. Default: every field.iddatetimelocalTimetimeZonetimeNotecountryeventreferencePeriodactualactualReceivedAtforecastpriorpriorReferencePeriodimpactindicatorIdcurrency

from must be on or before to.

Good to know

On /v1/macro/calendar, omit both dates for the usual calendar, including upcoming releases. Without from and to, it lists this week's releases, from the start of the week the calendar lists (Sunday), and the releases due in the 15 days from today: today and the 14 days after it, UTC. Send both from and to (inclusive UTC dates, YYYY-MM-DD) to read only retained releases. Each window covers at most 14 calendar days, ending no later than today and starting no more than 400 days back (30 on Free). meta.historyStart is the oldest retained UTC day, not the first day in your window, or null if nothing is retained. If more than 1,000 rows match, the API returns a 400: request a narrower window.

/yield-curves/{curve} moves: each tenor's 1D and 1W change in percentage points, ranked by size against every move of that horizon since since (midrank percentile, 0 to 100; null under 250 moves).

Sources

Government and central bank publications, Government and economic data providers, Public economic release calendars

Use subject to Gloom Datasets terms.

Errors 304 · 400 · 401 · 402 · 403 · 404 · 405 · 429 · 503