Securely Redirecting...

Connecting to Stripe

2-Year Government Bond Yield (USD)

The yield on 2-year government bonds. This is highly sensitive to Central Bank policy expectations over the near term (2 years). A rising 2-year yield signals markets expect the Central Bank to hike rates, which is typically bullish for the currency. It is often used to trade interest rate differentials between two economies.

Category: Government Bond Yields

API Endpoint

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

Data Source

Primary Source

FRED (Federal Reserve)

Official Series ID

DGS2

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 2-Year Government Bond Yield data for USD starting from the beginning of 2023:

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