Building a France yield curve requires more than plotting maturity labels: you need observations from comparable dates, consistent units and a way to distinguish missing data from stale data. This guide explains the Bonds API endpoints and how to prepare curve, spread and time-series calculations, while identifying an important limitation in the available sample: it demonstrates a US yield, not a confirmed France response.
What a France yield curve represents
French sovereign bonds are debt securities issued by the French government. Their yields help analysts compare borrowing costs across maturities and assess the interest-rate sensitivity of fixed-income portfolios.
A yield curve plots yields against maturities. An upward-sloping segment has higher yields at longer maturities; an inverted segment has lower yields at longer maturities. The shape can vary across segments, so a single inversion flag does not replace inspection of the individual points.
The Bonds API reference identifies France with the country code FR and describes coverage from short-term bills to long-dated bonds. However, the supplied live sample is for US_10Y, and its accompanying catalog note does not confirm France availability. Verify that France and the maturities you need are available before using the integration in production.
Yields are expressed as percentages, not decimal fractions: a yield of 5.083 means 5.083%. One percentage point equals 100 basis points. To convert a difference between two percentage yields into basis points, subtract the yields and multiply by 100.
Inspect the available latest-yield sample
The following is the supplied live request and response. It is useful for inspecting the sample schema, but it is not a France observation and should not be plotted as a French curve point.
curl -s "https://bonds-api.com/api/v1/latest?countries=US&maturities=10Y&api_key=YOUR_API_KEY"
{
"success": true,
"date": "2026-12-03",
"rates": {
"US_10Y": 5.083
},
"dates": {
"US_10Y": "2026-12-03"
},
"currencies": {
"US_10Y": "USD"
},
"sources": {
"US_10Y": "worldgovbonds"
},
"updated_at": {
"US_10Y": "2026-12-03T00:01:13+00:00"
},
"changes": {
"US_10Y": {
"previous_close": 5.065,
"daily": {
"date": "2026-12-02",
"bps": 1.8,
"pct": 0.36
},
"weekly": {
"date": "2026-11-25",
"bps": 23.3,
"pct": 4.8
},
"monthly": {
"date": "2026-11-03",
"bps": 13.3,
"pct": 2.69
},
"annual": {
"date": "2025-12-03",
"bps": 102.3,
"pct": 25.2
}
}
},
"meta": {
"request_id": "e12876de-8d57-4f96-9b5a-d2528bc445ed",
"timestamp": "2026-12-03T00:07:08+00:00"
}
}
In this response, success indicates whether the request succeeded, and rates maps the sample symbol to its percentage yield. The corresponding dates, currencies, sources and updated_at entries describe that observation. The sample currency is USD; it should not be treated as the currency of a France observation.
The date is a calendar date in YYYY-MM-DD form. The updated_at and meta.timestamp values are timestamps; their +00:00 offsets indicate UTC. The former describes the symbol update, while the latter is response metadata. meta.request_id can help identify the request when investigating a problem.
The changes object includes a previous close and daily, weekly, monthly and annual comparisons. Each comparison has a reference date, a change in basis points under bps, and a percentage change under pct. In the daily example, the move from 5.065% to 5.083% is 1.8 basis points.
Authentication and schema caveat: The sample uses an api_key query parameter, whereas the endpoint reference specifies an X-API-Key header and shows a different latest-response structure. Confirm the supported authentication method and response schema with Bonds API before deployment. Query strings can appear in logs, so avoid exposing a real key in logs or shared command history.
Read the sample with Python
This example calls the same sample URL and reads its symbol, observation date and update timestamp. It demonstrates the sample response only; it does not establish that the same schema is returned for France.
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()
payload = response.json()
if not payload.get("success"):
raise RuntimeError(payload.get("error", "Request failed"))
symbol = "US_10Y"
yield_pct = payload["rates"][symbol]
observation_date = payload["dates"][symbol]
updated_at = payload["updated_at"][symbol]
print(symbol, yield_pct, observation_date, updated_at)
In application code, load credentials from a protected configuration source rather than committing them. Check both the HTTP status and success, and validate the response fields expected by the integration before storing or displaying a value.
Choose the endpoint for the analysis
All endpoints in the reference use GET. The descriptions below use the documented country and maturity parameters, but France availability and the actual response contract should be verified against the service before relying on them.
Latest yields and a curve
/api/v1/latest requires countries, a comma-separated list of country codes. Its optional maturities parameter accepts a comma-separated list such as 2Y,10Y; omitting it requests all available maturities. The reference describes a data object keyed first by country and then by maturity, with yield, date and source for each point.
That reference structure differs from the live sample’s rates and dates maps. Do not combine assumptions from the two schemas in one parser without confirming which contract applies. If multiple France maturities are returned, retain each point’s observation date as well as its yield.
/api/v1/curve requires country and optionally accepts date; without a date, the reference says it uses the latest available day with data. The documented response contains country, date, inverted and a curve mapping maturities to percentage yields. Use the returned date as the curve’s as-of date, and inspect the points rather than assuming the boolean describes every segment in the same way.
Historical observations and time series
/api/v1/historical takes country, maturity and date. Its documented fields identify the country, maturity and date, followed by the percentage yield and its source. This is useful when a portfolio-risk tool needs an observation associated with a particular date.
/api/v1/timeseries takes country, maturity, start and end; the end date must be on or after the start date. The documented series contains entries with a date and yield. An economic research workflow can use those entries to study changes in one part of the curve, while retaining the actual dates returned.
/api/v1/fluctuation requires countries, maturity, start and end. Its documented country-level fields are start_yield, end_yield, change, min and max. The yield values and change are in percentage-yield units; multiply change by 100 when presenting the movement in basis points.
Spreads and intraday snapshots
/api/v1/spread requires country and benchmark, with an optional maturity that defaults to 10Y. Its documented fields include country_yield, benchmark_yield and spread_bps. The spread is the country yield minus the benchmark yield, expressed in basis points; keep the maturity explicit in a dashboard so users know which tenors are being compared.
/api/v1/intraday requires country, maturity and date. The documented response includes snapshots with yield, fetched_at and source, plus a count and meta.timezone. Treat fetched_at as the snapshot timestamp and check the timezone when ordering or displaying observations.
Build and operate a curve integration
Once France availability and the response schema are confirmed, request the available maturities together through /api/v1/latest, or use /api/v1/curve for the full curve described by the reference. Sort maturity labels by tenor rather than alphabetically, and retain the country, maturity, yield and observation date for every point.
Check dates before calculating a slope. A latest-yield response can contain points whose observation dates need separate inspection; combining different dates without labeling them can produce a misleading curve. If a maturity is absent, show it as unavailable rather than substituting zero or silently carrying forward an older yield.
For a curve segment, subtract the shorter-maturity yield from the longer-maturity yield and multiply by 100 to display basis points. A negative result indicates that the selected longer yield is below the selected shorter yield. For portfolio risk and fixed-income analytics, retain the underlying dates and sources alongside the calculated result so users can trace it.
Business days and market holidays matter when requesting historical data. A requested calendar date may have no observation, and a missing day in a series should not automatically be interpreted as a zero yield or a zero change. Decide explicitly whether your application leaves gaps or carries an earlier observation forward, and label any carried-forward value with its original date.
The reference does not specify a guaranteed update schedule. For intraday displays, use the returned timestamps to show freshness; for daily analysis, compare observation dates rather than assuming a new value arrives on every calendar day. Cache responses for your application’s needs, but preserve their as-of dates and refresh timestamps so a cached value is not presented as newly observed.
For operational handling, the documented errors use success=false and an error message. A 401 indicates missing or invalid authentication; 403 indicates an account quota issue; 404 indicates no data for the requested combination; 422 indicates an invalid parameter; 429 indicates a rate limit; and 500 indicates a server error. Surface missing data separately from authentication and service failures, and use controlled retries for transient failures.
The reference does not describe pagination for these endpoints. Design the time-series consumer around the response actually returned, and confirm any pagination or range constraints before requesting large histories.
FAQ
Can I use the supplied live sample as a France yield?
No. It identifies US_10Y and USD. Confirm France coverage and retrieve a France observation before building a France curve.
How do I request several maturities?
The reference documents a comma-separated maturities parameter on /api/v1/latest. It also describes /api/v1/curve for a country’s available curve. Check the returned maturity labels and dates before comparing points.
What happens on a holiday or non-trading day?
A requested date may have no observation. Handle a documented 404 or a gap in a series as missing data, and do not assume the prior observation has been returned unless the response says so.
Which timestamp should a dashboard show?
For the live sample, use the symbol’s updated_at to describe its update time and retain the observation date separately. For documented intraday snapshots, use fetched_at and the reported timezone.
To obtain an API key and verify the current France coverage and authentication contract, Register. For another way to work with Bonds API, see MCP.