Securely Redirecting...

Connecting to Stripe

7-Year Government Bond Yield (CAD)

Yield on a seven-year sovereign government bond, useful for reading mid-curve rate sentiment.

Category: Government Bond Yields

API Endpoint

/api/cad/gov_bond_7y
Or view detailed, interactive documentation: Open Swagger Docs

Data Source

Primary Source

Bank of Canada

Official Series ID

V122485

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.

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

Request Parameters & Usage

Parameter Required Format Description
start_date YES YYYY-MM-DD The start date for the data retrieval.
end_date NO YYYY-MM-DD The end date for the data retrieval. Defaults to today's 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 7-Year Government Bond Yield data for CAD starting from the beginning of 2023:

GET https://fxmacrodata.com/api/cad/gov_bond_7y?start_date=2023-01-01&end_date=2023-12-31&api_key=YOUR_API_KEY