Building a historical Poland yield series means handling maturity selection, non-trading days, missing observations and changes in units—not just downloading numbers. This guide shows how to work with the seven documented Bonds-API endpoints, interpret yields and spreads, and build a curve while keeping example data separate from verified market observations.
Poland yield data and availability
A sovereign bond is debt issued by a government. Its yield summarizes the return implied by its price and cash flows; changes in yields matter to bond valuations, portfolio risk and economic research. A yield curve compares yields across maturities, while a spread compares two yields on a consistent basis.
The API reference identifies Poland with the country code PL and supplies Poland examples. However, the supplied live sample states that Poland is not in the published catalog. Treat the Poland requests and responses below as reference examples, not evidence of live availability, and confirm coverage before building a production integration.
Maturities such as 1M, 2Y and 10Y describe the term of a yield observation; they are not individual bond identifiers. Coverage can vary by country and date. The API describes coverage from one-month bills through 50-year bonds, but that does not establish availability for every Poland maturity.
Yields are expressed as percentages: a yield of 4.52 means 4.52%, not 0.0452%. One percentage point equals 100 basis points, so a move from 4.25% to 4.52% is 27 basis points. Keep both the unit and maturity with every stored observation.
Start with the published live sample
The following official live sample is for the US 10-year yield, not Poland. It is useful for seeing the published live response shape, but it cannot establish a Poland yield or Poland coverage.
curl -s "https://bonds-api.com/api/v1/latest?countries=US&maturities=10Y&api_key=YOUR_API_KEY"
{
"success": true,
"date": "2026-11-25",
"rates": {
"US_10Y": 4.85
},
"dates": {
"US_10Y": "2026-11-25"
},
"currencies": {
"US_10Y": "USD"
},
"sources": {
"US_10Y": "us_treasury"
},
"updated_at": {
"US_10Y": "2026-11-25T21:30:04+00:00"
},
"changes": {
"US_10Y": {
"previous_close": 4.91,
"daily": {
"date": "2026-11-24",
"bps": -6,
"pct": -1.22
},
"weekly": {
"date": "2026-11-18",
"bps": -22,
"pct": -4.34
},
"monthly": {
"date": "2026-10-23",
"bps": -15,
"pct": -3
},
"annual": {
"date": "2025-11-25",
"bps": 85,
"pct": 21.25
}
}
},
"meta": {
"request_id": "cd44b162-0e36-4f3b-9968-eec17eb7bf67",
"timestamp": "2026-11-26T00:04:05+00:00"
}
}
Here, rates gives the yield in percent, while dates identifies its observation date. currencies and sources give the example’s currency and source; neither should be assumed for Poland. updated_at is a timestamp with a UTC offset, while meta.timestamp is a separate response timestamp. The changes entries provide comparison dates, basis-point changes and relative percentage changes.
There is an authentication discrepancy: this live sample puts api_key in the URL, while the endpoint reference specifies the X-API-Key header only. Confirm the supported authentication format before deploying, and avoid exposing a key in logs or shared URLs. The Poland reference requests below follow the header-based format.
This Python example reads the live sample’s yield and observation date. Install the requests library, set BONDS_API_KEY in the environment and avoid printing the request URL.
import os
import requests
url = (
"https://bonds-api.com/api/v1/latest"
"?countries=US&maturities=10Y&api_key=YOUR_API_KEY"
)
url = url.replace("YOUR_API_KEY", os.environ["BONDS_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", "API request failed"))
symbol = "US_10Y"
print("Yield (%):", payload["rates"][symbol])
print("Observation date:", payload["dates"][symbol])
print("Updated at:", payload["updated_at"][symbol])
Retrieve historical Poland observations
For research, keep the country, maturity and observation date alongside each yield. A historical date is a calendar date in Y-m-d format, not a timestamp or a promise that trading occurred that day.
A single date: historical
The historical endpoint requires country, maturity and date. This reference request asks for the Poland 10-year observation on the specified date:
The reference response identifies the requested country, maturity and date, with yield in percent and source describing the observation’s source. The example date falls on a Sunday; do not infer that a real observation is available for it. A missing country, maturity or date combination can return a 404.
A date range: timeseries
Use timeseries for one country and one maturity over a range. Both start and end are required, and the end date must not precede the start date.
Each series item contains a calendar date and a percentage yield. The supplied response dates do not fall within the supplied request range, so these blocks should be treated as separate illustrations rather than a matching request and response. In an integration, validate returned dates against the requested range before using the series.
Expect gaps around weekends and market holidays, and allow for other missing observations. The reference does not specify whether missing dates are filled or how a non-trading-day request is resolved. Choose and document your own alignment or carry-forward policy rather than silently treating a missing value as zero.
Period change and range: fluctuation
The fluctuation endpoint accepts comma-separated countries, one maturity, and a start and end date. It can support a dashboard’s period summary without calculating every statistic in the display layer.
start_yield, end_yield, min and max are percentage yields. In this example, change is 0.31 percentage points, equivalent to 31 basis points. Check how missing boundary dates are handled before interpreting a period summary as a return or risk measure.
Build curves and compare spreads
Latest yields across maturities
The latest endpoint requires comma-separated countries and optionally accepts comma-separated maturities. Omitting maturities requests all available maturities. This reference example selects two Poland tenors:
The reference response nests observations under country and maturity. Read each yield, date and source rather than assuming that every maturity has the same observation date. Note that this illustrative response shape differs from the published live sample’s rates and dates maps; verify the live contract before writing a parser for Poland.
To build a curve from several maturity symbols, order the available tenors by term and plot each yield against its maturity. Check observation dates before joining points: a curve assembled from different dates may reflect stale data rather than the market’s shape on one day. Do not interpolate missing tenors unless your application explicitly defines that methodology.
A country curve
The curve endpoint requires country and accepts an optional date. Without a date, the reference says it defaults to the latest available day with data.
curve maps maturities to percentage yields, and date identifies the curve’s day. inverted is the endpoint’s inversion indicator, but the reference does not define its detection rule. Individual curve segments can slope differently, so retain the underlying points when analyzing the shape rather than relying on the flag alone.
Spread versus a benchmark
The spread endpoint requires a country and benchmark; maturity is optional and defaults to 10Y. This example compares Poland with the US at the same maturity.
country_yield and benchmark_yield are percentages; spread_bps is in basis points. The example subtracts 2.37% from 4.52%, giving 2.15 percentage points, or 215 basis points. For portfolio risk or economic research, record the benchmark, maturity and observation timing, and consider currency and market differences before interpreting the spread.
Use intraday snapshots and handle updates
The intraday endpoint requires country, maturity and date. It returns snapshots for that date rather than a single daily observation.
Each snapshot has a percentage yield, a source and a fetched_at timestamp. The trailing Z means UTC, consistent with meta.timezone; count reports the number of snapshots. A fetch timestamp is not necessarily the time of an underlying market trade.
The reference does not specify a guaranteed update frequency. For dashboards, show the observation date and any available update timestamp, and distinguish a latest available value from a live tick. Cache by endpoint and request parameters, use shorter freshness windows for intraday displays than for historical research, and retain the original dates and sources when serving cached data.
No pagination parameters are specified in the reference. Do not assume that a long series can be paged or that one response contains every expected business day; validate the returned range and handle gaps explicitly. For a separate integration interface, the documented MCP link is available.
Errors and integration checks
Check both the HTTP status and the response’s success field. The documented error shape contains success: false and an error message. Avoid recording API keys in diagnostic output.
- 401: The API key is missing or invalid. Check the authentication contract and secret configuration.
- 403: The account quota is exceeded. Stop repeated requests and investigate account access.
- 404: There is no data for the requested country, maturity and date combination. Treat this as missing data, not a zero yield.
- 422: A parameter is invalid, such as a date format or country code. Correct the request before retrying.
- 429 or 500: A rate limit or server error occurred. Retry cautiously with backoff rather than immediately repeating requests.
For fixed-income analytics, separate ingestion from calculation. Store the raw observation, its date, maturity and source; calculate changes, spreads and curve measures in a layer whose assumptions can be reviewed. This makes it easier to distinguish a market move from a missing or stale input.
FAQ
Can I request historical Poland yields today?
The reference provides Poland examples, but the published live-sample note says Poland is not in the catalog. Confirm current coverage and the response contract before depending on those examples.
How do I request a Poland yield curve?
Use curve with country=PL and, optionally, a date. Alternatively, request several maturities through latest and verify the date of each returned point.
What happens on a weekend or market holiday?
The reference does not define a fill rule. Handle a missing result explicitly and document whether your analysis excludes it or uses a separately defined carry-forward policy.
Are yield changes in percent or basis points?
Yields are percentage values. Convert a percentage-point difference to basis points by multiplying by 100; fields explicitly named spread_bps or bps are already in basis points.
To evaluate the API for your application, Register for an API key, then verify Poland coverage and the authentication format before integrating the reference requests.