Securely Redirecting...

Connecting to Stripe

5-Year Government Bond Yield (USD)

Reference information for 5-Year Government Bond Yield.

Category: Government Bond Yields

API Endpoint

/api/v1/announcements/usd/gov_bond_5y

Use the production OpenAPI schema for the authoritative REST route metadata.

https://fxmacrodata.com/api/openapi.json

Browse the full endpoint reference

Data Source

Primary Source

FRED (Treasury)

Official Series ID

DGS5

Data Format and Properties

Data Frequency

Daily

Unit of Measure

Percent

JSON Response Structure

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

{
    "currency": "USD",
    "indicator": "gov_bond_5y",
    "has_official_forecast": false,
    "start_date": "2023-01-01",
    "end_date": "2023-12-31",
    "data": [
        {
            "date": "2024-07-01",
            "val": 4.2,
            "announcement_datetime": 1722456000
        }
    ]
}

Request Parameters & Usage

Parameter Required Format Description
start_date NO YYYY-MM-DD Optional lower bound for the requested history.
end_date NO YYYY-MM-DD Optional upper bound. Defaults to the current date.
api_key CONDITIONAL string Required for non-USD and paid access. USD endpoints are available free without an API key.

Example Usage

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

GET https://fxmacrodata.com/api/v1/announcements/usd/gov_bond_5y?start_date=2023-01-01&end_date=2023-12-31&api_key=YOUR_API_KEY