Securely Redirecting...

Connecting to Stripe

5-Year Government Bond Yield (USD)

The yield on 5-year government bonds. This yield incorporates both short-term policy and early signs of structural growth trends. It is a key part of the yield curve, and its changes are used by traders to forecast potential shifts in economic fundamentals and policy paths, impacting Forex outlooks.

Category: Government Bond Yields

API Endpoint

/api/usd/gov_bond_5y
Or view detailed, interactive documentation: Open Swagger Docs

Data Source

Primary Source

FRED (Federal Reserve)

Official Series ID

DGS5

Data Format and Properties

Data Frequency

Daily

Unit of Measure

Percent, Daily Treasury Yield Curve Rate

JSON Response Structure

The endpoint returns a chronological list of observations in JSON format.

[
  {
    "date": "YYYY-MM-DD", 
    "val": 0.00
  },
  {
    "date": "2024-07-01", 
    "val": 4.2 
  },
  // ... history 
]

Request Parameters & Usage

Parameter Required Format Description
start YES YYYY-MM-DD The start date for the data retrieval.
end NO YYYY-MM-DD The end date for the data retrieval. Defaults to today's date.
key YES string Your unique API key for authentication.

Example Usage

To retrieve the 5-Year Government Bond Yield data for USD starting from the beginning of 2023:

GET https://fxmacrodata.com/api/usd/gov_bond_5y?start=2023-01-01&key=YOUR_API_KEY