Italy Yield Curve

Italy Yield Curve

Building an Italy yield curve requires more than plotting the latest numbers: your application must align maturities, check observation dates, and handle gaps around market holidays. This guide explains how to structure the data, calculate spreads, and integrate the documented Bonds API endpoints, while identifying an important conflict between the Italy reference and the published live sample.

What an Italy yield curve represents

An Italian sovereign bond is debt issued by the Italian government. Its yield summarizes the return implied by its price and cash flows; yield data is useful for monitoring borrowing conditions, valuing fixed-income positions, and comparing risk across maturities.

Illustration: Italy Yield Curve

A yield curve places yields against their maturities. A financial dashboard might show the latest available curve, a portfolio risk tool might track changes at selected tenors, and an economic research workflow might compare curves across observation dates. These uses all depend on knowing which data points belong to the same date and what each maturity represents.

The reference describes coverage from short-dated instruments such as 1M through long-dated bonds such as 50Y, with actual availability varying by country and date. Its Italy examples use IT and include maturities such as 2Y and 10Y. Do not assume that every maturity in the overall coverage range is available for every Italian observation date.

Yields in the reference examples are percentages. A difference of one percentage point is 100 basis points. For example, the reference’s illustrative Italian yields of 4.25% at 2Y and 4.52% at 10Y imply a 27-basis-point long-minus-short spread; those example values should not be treated as current market data.

Start with the published latest-yield sample

The published live sample below requests the US 10Y yield, not an Italy yield. It is useful for testing the documented sample response shape, but it cannot establish that an Italy curve is available. The Italy reference separately documents requests using IT; confirm Italy coverage and the response format before relying on either in production.

There is also an authentication discrepancy: the live sample places api_key in the request URL, whereas the endpoint reference specifies the X-API-Key header. The sample is reproduced as published. Check the current integration documentation before deploying, and take care not to expose a key through URL logs or browser history.

curl -s "https://bonds-api.com/api/v1/latest?countries=US&maturities=10Y&api_key=YOUR_API_KEY"
{
    "success": true,
    "date": "2026-12-04",
    "rates": {
        "US_10Y": 5.091
    },
    "dates": {
        "US_10Y": "2026-12-04"
    },
    "currencies": {
        "US_10Y": "USD"
    },
    "sources": {
        "US_10Y": "worldgovbonds"
    },
    "updated_at": {
        "US_10Y": "2026-12-04T00:01:23+00:00"
    },
    "changes": {
        "US_10Y": {
            "previous_close": 5.091,
            "daily": {
                "date": "2026-12-03",
                "bps": 0,
                "pct": 0
            },
            "weekly": {
                "date": "2026-11-27",
                "bps": 15.1,
                "pct": 3.06
            },
            "monthly": {
                "date": "2026-11-04",
                "bps": 19.1,
                "pct": 3.9
            },
            "annual": {
                "date": "2025-12-04",
                "bps": 98.1,
                "pct": 23.87
            }
        }
    },
    "meta": {
        "request_id": "97fe3205-18db-40f7-b816-dddf4f62f622",
        "timestamp": "2026-12-04T00:04:07+00:00"
    }
}

Here, success indicates the reported result, and rates maps the sample symbol to its yield in percent. dates gives the observation date for that symbol, while currencies identifies the sample instrument’s currency as USD; the yield itself is a percentage, not an amount in that currency. The source label is supplied in sources.

updated_at is a timestamp for the symbol, while meta.timestamp is a separate response timestamp. Their +00:00 offsets indicate UTC. By contrast, a YYYY-MM-DD observation date has no time or timezone; preserve it as a date rather than assuming it represents midnight in a market timezone.

The changes object contains previous_close and daily, weekly, monthly, and annual comparisons. Each comparison includes a reference date, a change in basis points under bps, and a percentage change under pct. The response’s request_id is useful when investigating a specific request.

Read the sample in Python

This example calls the same published URL and reads its fields. Replace YOUR_API_KEY locally; do not commit the resulting URL or key to a repository.

import requests

url = (
"https://bonds-api.com/api/v1/latest"
"?countries=US&maturities=10Y&api_key=YOUR_API_KEY"
)

response = requests.get(url, timeout=30)
response.raise_for_status()
data = response.json()

if not data.get("success"):
raise ValueError(data.get("error", "API request failed"))

symbol = "US_10Y"
print("Yield percent:", data["rates"][symbol])
print("Observation date:", data["dates"][symbol])
print("Currency:", data["currencies"][symbol])
print("Updated at:", data["updated_at"][symbol])
print("Daily change in basis points:", data["changes"][symbol]["daily"]["bps"])

This parser is deliberately tied to the published sample. The Italy endpoint reference shows a different latest response structure: data contains a country key, maturity keys, and individual yield, date, and source fields. Validate the response you actually receive before using either structure in an Italy application.

Use the Italy endpoint reference

The following workflows describe the Italy-focused reference, which specifies GET requests under https://bonds-api.com/api/v1/ and authentication through the X-API-Key header. They are endpoint contracts to verify against the current service, not claims that the US live sample contains Italian data.

Latest observations and curve construction

GET /api/v1/latest requires countries, a comma-separated list of ISO2 country codes. Its optional maturities parameter accepts comma-separated tenors; omitting it requests all available maturities. For Italy, the reference uses IT, with 2Y,10Y as an example selection.

To construct a curve from the reference’s latest response, iterate through the maturity entries under data for IT. Read each entry’s yield, date, and source, then order the tenors by their actual maturity rather than sorting their labels alphabetically. Retain the date with every point: a latest response can be unsuitable for a single-date curve if the observations are not aligned.

GET /api/v1/curve is the reference’s dedicated full-curve endpoint. It requires country and accepts an optional date; without a date, the reference says it defaults to the latest available day with data. Its response includes success, country, date, inverted, and a curve mapping maturities to percentage yields.

Use inverted as the endpoint’s reported flag, not as a substitute for inspecting the curve. The reference does not define the exact tenors or rule used for inversion detection. If a risk report requires a specific definition, calculate and label that measure separately from the selected maturity pair.

Historical observations and time series

GET /api/v1/historical requires country, maturity, and date in YYYY-MM-DD format. The documented response provides success, country, maturity, date, yield, and source. This is useful when a portfolio valuation needs an observed Italian yield for a specified maturity and date.

GET /api/v1/timeseries requires country, maturity, start, and end; the end date must be on or after the start date. Its documented series consists of entries with date and yield. Use it to examine an Italian tenor through time, rather than assuming a current yield describes a historical position.

Store observation dates alongside values and sort the returned observations before analysis. When joining several maturity series into historical curves, join on the dates actually returned. Do not silently fill a missing tenor with a different day’s yield; if your application carries a value forward, label the original observation date and the policy used.

Benchmark spreads and period changes

GET /api/v1/spread requires country and benchmark, both ISO2 codes; maturity is optional and defaults to 10Y. The reference permits an Italy comparison using IT with a benchmark such as DE or US. A benchmark comparison remains an analysis of Italy’s yield relative to the selected reference, not an Italy curve by itself.

The documented response identifies country, benchmark, and maturity, and returns country_yield, benchmark_yield, and spread_bps. The yields are percentages and the spread is in basis points. Record the selected benchmark and maturity with the result so that a dashboard does not present unlike comparisons as the same measure.

GET /api/v1/fluctuation requires comma-separated countries, a maturity, and start and end dates. Its documented response includes the requested maturity and period, plus country entries under data containing start_yield, end_yield, change, min, and max. The reference example expresses change in percentage points; multiply by 100 to display the equivalent basis-point move.

Intraday snapshots

GET /api/v1/intraday requires country, maturity, and date. The reference response supplies snapshots, each with a percentage yield, fetched_at timestamp, and source. It also provides count and meta.timezone.

The example uses UTC and timestamps ending in Z, which also denotes UTC. Preserve the timestamp and source when displaying a snapshot, and distinguish it from a date-only historical observation. Snapshot times describe the available observations; they do not, by themselves, establish a guaranteed update interval.

Make the integration reliable

Handle business days explicitly. Weekends, market holidays, and data availability can leave a requested Italy date without an observation. The reference lists a 404 for a country, maturity, and date combination with no data; show that state rather than presenting a guessed yield as an observation.

Decide whether your use case requires the exact requested date or permits the most recent available observation. For research and valuation, record both the requested date and the date actually used. A chart can display gaps, while a valuation process may need a documented fallback policy approved by its users.

Cache with freshness visible. Current and intraday data can change, but the reference does not specify a universal update frequency. Choose a refresh interval appropriate to the application, retain the returned observation date or timestamp, and display it with the yield. A cached result should never be labeled as newly observed merely because your application served it recently.

Cache historical and curve requests with their complete parameter selections, including the country, maturity, and date or period where applicable. For a latest curve, check each returned date before combining points. When building a dashboard, make stale or missing maturities visible instead of silently drawing a complete-looking line.

Handle failures separately from empty data. The reference describes error responses with success=false and an error message. It lists 401 for missing or invalid authentication, 403 for an exceeded account quota, 422 for invalid parameters, 429 for rate limiting, and 500 for a server error. Surface actionable errors and use controlled retries for transient failures rather than repeatedly retrying invalid requests.

For an integration that also uses the MCP interface, apply the same discipline to maturity, date, units, and source attribution. The reference does not specify pagination for these responses, so confirm current behavior before designing a collector that depends on it.

FAQ

Can I use the published live sample as an Italy yield?

No. Its symbol and currency identify a US observation. The Italy reference documents IT, but the published sample does not demonstrate a live Italy response; verify coverage and response fields before deploying an Italy workflow.

How do I calculate the slope of the Italy curve?

Select two available maturities observed on the same date, subtract the shorter yield from the longer yield, and multiply the percentage-point difference by 100 to obtain basis points. Label the maturity pair and observation date with the result.

What happens when I request a market holiday?

An exact country, maturity, and date combination can return no data. Do not assume an automatic prior-business-day substitution; decide whether to show a gap or use a separately identified earlier observation.

How often should I refresh Italy yields?

The reference does not establish a fixed update schedule. Select a refresh policy for your application, respect error responses, and show the returned observation date or timestamp so users can judge freshness.

To begin testing the documented workflows and get an API key, Register, then verify Italy availability, authentication, and response shape before connecting the data to a production curve.

Start building with bond data today

Get your API key and access sovereign bond yields across 60+ countries. 7-day free trial, no credit card required.