Riksbank (RIKSBANK_REPO) Rate History

Riksbank (RIKSBANK_REPO) Rate History

You need reliable, machine-readable access to Sweden’s policy rate for pricing loans, building dashboards, and running macro research. By the end of this guide, you will be able to fetch the Riksbank Repo Rate (RIKSBANK_REPO) from the Interest Rates API, interpret its timestamps and units correctly, compute spreads and payments, and productionize requests across the API’s seven endpoints.

Why the Riksbank Repo Rate (RIKSBANK_REPO) matters

RIKSBANK_REPO is Sweden’s central policy rate that anchors funding costs in SEK. It is referenced by banks when setting lending and deposit rates, influences mortgage repricing and corporate discount rates, and serves as a key input to risk models. In the Interest Rates API, this symbol represents the official repo rate as a percentage per annum, published with monthly frequency, and delivered in consistent JSON fields suited for time series analysis and application code.

Illustration: Riksbank (RIKSBANK_REPO) Rate History

All examples in this article use the Interest Rates API at https://interestratesapi.com. Authentication is done via a query parameter api_key, and all endpoints use GET over HTTPS. See the MCP and the site’s homepage at https://interestratesapi.com for more on capabilities.

Data model and operational details

  • Units and interpretation: RIKSBANK_REPO values are percentages per annum (e.g., 1.75 means 1.75% p.a.).
  • Frequency: monthly. For historical queries with a specific date, the result reflects the last day with data for that month if the exact date has no entry.
  • Business days and calendars: central bank rates do not trade intraday. Effective dates typically align to policy announcement calendars and end-of-day timestamps; the API returns daily keys even for monthly rates to ease time series joins with other series.
  • Currencies: RIKSBANK_REPO maps to SEK in the currencies object; the base currency reported in the response denotes the currency context for the rate.
  • Caching: cache immutable historical responses aggressively (e.g., by start/end range). Latest endpoints should be cached with short TTLs around the publication cadence (monthly rhythm plus any ad-hoc updates).
  • Error handling: watch for JSON with success=false and parse the error message. Respect rate limit headers and back off when you receive HTTP 429.

To begin requesting data you need an API key. Register to obtain one, or visit https://interestratesapi.com to learn more.

Endpoint 1: Symbols — discover RIKSBANK_REPO

Use the symbols catalogue to verify the RIKSBANK_REPO identifier and filter by category or currency when needed.

cURL

curl -s "https://interestratesapi.com/api/v1/latest?api_key=YOUR_API_KEY&symbols=RIKSBANK_REPO"

Python (requests)

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/symbols",
params={"category": "central_bank", "base": "SEK", "api_key": "YOUR_API_KEY"}
)
data = resp.json()
print([s["symbol"] for s in data.get("symbols", [])])

JavaScript (fetch)

const res = await fetch(
"https://interestratesapi.com/api/v1/symbols?category=central_bank&base=SEK&api_key=YOUR_API_KEY"
);
const data = await res.json();
console.log(data.symbols?.map(s => s.symbol));

PHP

<?php
$url = "https://interestratesapi.com/api/v1/symbols?category=central_bank&base=SEK&api_key=YOUR_API_KEY";
$resp = file_get_contents($url);
$data = json_decode($resp, true);
$symbols = array_map(fn($s) => $s["symbol"], $data["symbols"] ?? []);
print_r($symbols);
?>

Response shape (example)

{
    "success": true,
    "date": "2026-10-31",
    "base": "SEK",
    "rates": {
        "RIKSBANK_REPO": 1.75
    },
    "dates": {
        "RIKSBANK_REPO": "2026-10-31"
    },
    "currencies": {
        "RIKSBANK_REPO": "SEK"
    },
    "base_filter_note": null
}

Key fields you will use: symbol (use RIKSBANK_REPO for this article), category (central_bank), currency_code (SEK), and frequency (monthly for RIKSBANK_REPO).

Endpoint 2: Latest — current RIKSBANK_REPO reading

Fetch the most recent available repo rate. Note that central bank rates are not intraday; the date typically represents the latest effective date within the month.

cURL (official sample)

Python (requests)

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/latest",
params={"symbols": "RIKSBANK_REPO", "api_key": "YOUR_API_KEY"}
)
latest = resp.json()
print(latest["rates"]["RIKSBANK_REPO"], latest["dates"]["RIKSBANK_REPO"])

JavaScript (fetch)

const response = await fetch(
"https://interestratesapi.com/api/v1/latest?symbols=RIKSBANK_REPO&api_key=YOUR_API_KEY"
);
const latest = await response.json();
console.log(latest.rates.RIKSBANK_REPO, latest.dates.RIKSBANK_REPO);

PHP

<?php
$url = "https://interestratesapi.com/api/v1/latest?symbols=RIKSBANK_REPO&api_key=YOUR_API_KEY";
$resp = file_get_contents($url);
$data = json_decode($resp, true);
echo $data["rates"]["RIKSBANK_REPO"] . " on " . $data["dates"]["RIKSBANK_REPO"] . PHP_EOL;
?>

JSON (official sample)

How to read this: rates.RIKSBANK_REPO is expressed as percent per annum. dates.RIKSBANK_REPO is the effective date for that value. base and currencies confirm SEK context. Cache this result briefly; for stable monthly rates, refresh after policy decisions or at month-end.

Endpoint 3: Historical — RIKSBANK_REPO on a date

Request the repo rate for a given date. For monthly series, if the exact day has no entry, the endpoint returns the last day with data in that month.

cURL

Python (requests)

import requests, datetime as dt

params = {"date": "2025-06-15", "symbols": "RIKSBANK_REPO", "api_key": "YOUR_API_KEY"}
resp = requests.get("https://interestratesapi.com/api/v1/historical", params=params)
hist = resp.json()
value = hist["rates"]["RIKSBANK_REPO"]
print(f"RIKSBANK_REPO on {hist['date']}: {value}% p.a.")

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/historical?date=2025-06-15&symbols=RIKSBANK_REPO&api_key=YOUR_API_KEY";
const res = await fetch(url);
const hist = await res.json();
console.log(`On ${hist.date}, RIKSBANK_REPO: ${hist.rates.RIKSBANK_REPO}% p.a.`);

PHP

<?php
$query = http_build_query([
"date" => "2025-06-15",
"symbols" => "RIKSBANK_REPO",
"api_key" => "YOUR_API_KEY"
]);
$resp = file_get_contents("https://interestratesapi.com/api/v1/historical?$query");
$data = json_decode($resp, true);
echo "On {$data['date']}, RIKSBANK_REPO: {$data['rates']['RIKSBANK_REPO']}% p.a.\n";
?>

JSON (example)

Fields: date echoes your requested date, and rates maps symbols to values. For monthly series, the value corresponds to the month’s applicable rate. Use this for valuation cutoffs, end-of-month snapshots, and backfills.

Endpoint 4: Time series — RIKSBANK_REPO over a range

Pull a continuous period for charting and statistics. For RIKSBANK_REPO, you will typically see the same value repeated on business days within a month, reflecting a constant policy rate during that interval.

cURL

Python (requests)

import requests

params = {
"start": "2025-11-13",
"end": "2026-11-13",
"symbols": "RIKSBANK_REPO",
"api_key": "YOUR_API_KEY"
}
resp = requests.get("https://interestratesapi.com/api/v1/timeseries", params=params)
series = resp.json()
rik = series["rates"]["RIKSBANK_REPO"]
# Example: extract month-end closes by taking the last date per month
from collections import OrderedDict
month_close = OrderedDict()
for d in sorted(rik.keys()):
ym = d[:7]
month_close[ym] = rik[d]
print(list(month_close.items())[:3])

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/timeseries?start=2025-11-13&end=2026-11-13&symbols=RIKSBANK_REPO&api_key=YOUR_API_KEY";
const res = await fetch(url);
const ts = await res.json();
const rik = ts.rates["RIKSBANK_REPO"];
const dates = Object.keys(rik).sort();
console.log("First point:", dates[0], rik[dates[0]]);

PHP

<?php
$params = http_build_query([
"start" => "2025-11-13",
"end" => "2026-11-13",
"symbols" => "RIKSBANK_REPO",
"api_key" => "YOUR_API_KEY"
]);
$resp = file_get_contents("https://interestratesapi.com/api/v1/timeseries?$params");
$data = json_decode($resp, true);
$rik = $data["rates"]["RIKSBANK_REPO"] ?? [];
ksort($rik);
foreach ($rik as $d => $v) { echo "$d $v\n"; break; }
?>

JSON (example)

Fields to note: rates is a map of date to value per symbol; frequencies shows the effective sampling granularity; currencies indicates the currency code. For analytics, you can resample to month-end by taking the last available business day each month.

Endpoint 5: Fluctuation — changes and extremes

Compute changes, percent changes, and high/low for RIKSBANK_REPO over a given period. Useful for alerting, dashboards, and sanity checks.

cURL

Python (requests)

import requests

params = {
"start": "2025-11-13",
"end": "2026-11-13",
"symbols": "RIKSBANK_REPO",
"api_key": "YOUR_API_KEY"
}
fx = requests.get("https://interestratesapi.com/api/v1/fluctuation", params=params).json()
rik = fx["rates"]["RIKSBANK_REPO"]
print(rik["change"], rik["change_pct"], rik["high"], rik["low"])

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/fluctuation?start=2025-11-13&end=2026-11-13&symbols=RIKSBANK_REPO&api_key=YOUR_API_KEY";
const res = await fetch(url);
const fx = await res.json();
const rik = fx.rates["RIKSBANK_REPO"];
console.log(`Δ=${rik.change}, Δ%=${rik.change_pct}, High=${rik.high}, Low=${rik.low}`);

PHP

<?php
$params = http_build_query([
"start" => "2025-11-13",
"end" => "2026-11-13",
"symbols" => "RIKSBANK_REPO",
"api_key" => "YOUR_API_KEY"
]);
$resp = file_get_contents("https://interestratesapi.com/api/v1/fluctuation?$params");
$data = json_decode($resp, true);
$rik = $data["rates"]["RIKSBANK_REPO"] ?? [];
echo "Change: {$rik['change']} ({$rik['change_pct']}%), High: {$rik['high']}, Low: {$rik['low']}\n";
?>

JSON (example)

Interpretation: change is end_value − start_value; change_pct is the percent difference when start_value ≠ 0; high and low are the observed extremes in the specified range. For monitoring, alert when change crosses thresholds or when high/low set new cycle marks.

Endpoint 6: OHLC — month-level candles from daily data

Build monthly (or weekly/quarterly) OHLC bars computed from daily time series. For policy rates, open=first value in the period, close=last value, high/low reflect any intra-period adjustments, and data_points counts the contributing daily entries.

cURL

Python (requests)

import requests

params = {
"symbols": "RIKSBANK_REPO",
"period": "monthly",
"start": "2025-11-13",
"end": "2026-11-13",
"api_key": "YOUR_API_KEY"
}
ohlc = requests.get("https://interestratesapi.com/api/v1/ohlc", params=params).json()
bars = ohlc["rates"]["RIKSBANK_REPO"]
print(bars[0]["period"], bars[0]["open"], bars[0]["close"])

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/ohlc?symbols=RIKSBANK_REPO&period=monthly&start=2025-11-13&end=2026-11-13&api_key=YOUR_API_KEY";
const res = await fetch(url);
const o = await res.json();
const firstBar = o.rates["RIKSBANK_REPO"][0];
console.log(firstBar.period, firstBar.open, firstBar.high, firstBar.low, firstBar.close);

PHP

<?php
$params = http_build_query([
"symbols" => "RIKSBANK_REPO",
"period" => "monthly",
"start" => "2025-11-13",
"end" => "2026-11-13",
"api_key" => "YOUR_API_KEY"
]);
$resp = file_get_contents("https://interestratesapi.com/api/v1/ohlc?$params");
$data = json_decode($resp, true);
$bar = $data["rates"]["RIKSBANK_REPO"][0];
echo "{$bar['period']} O:{$bar['open']} H:{$bar['high']} L:{$bar['low']} C:{$bar['close']}\n";
?>

JSON (example)

Field notes: period uses YYYY-MM; data_points helps validate completeness. The OHLC data is derived on-the-fly from daily points.

Endpoint 7: Convert — compare loan interest cost vs. another policy rate

Convert computes a simple interest cost comparison between two symbols, based on their latest values. This is useful to show what a loan might cost at RIKSBANK_REPO versus another policy benchmark. The example below compares RIKSBANK_REPO to the ECB’s main refinancing rate.

cURL

Python (requests)

import requests

params = {
"from": "RIKSBANK_REPO",
"to": "ECB_MRO",
"amount": 100000,
"term_months": 12,
"api_key": "YOUR_API_KEY"
}
cmp = requests.get("https://interestratesapi.com/api/v1/convert", params=params).json()
print(cmp["from"]["rate"], cmp["to"]["rate"], cmp["difference"]["rate_spread"])

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/convert?from=RIKSBANK_REPO&to=ECB_MRO&amount=100000&term_months=12&api_key=YOUR_API_KEY";
const res = await fetch(url);
const cmp = await res.json();
console.log(`Spread: ${cmp.difference.rate_spread}, interest saved: ${cmp.difference.interest_saved}`);

PHP

<?php
$params = http_build_query([
"from" => "RIKSBANK_REPO",
"to" => "ECB_MRO",
"amount" => 100000,
"term_months" => 12,
"api_key" => "YOUR_API_KEY"
]);
$resp = file_get_contents("https://interestratesapi.com/api/v1/convert?$params");
$data = json_decode($resp, true);
echo "Spread: {$data['difference']['rate_spread']}, saved: {$data['difference']['interest_saved']}\n";
?>

JSON (example)

Fields: rate is the latest percentage for each symbol; total_interest is a simple calculation over term_months; difference.rate_spread and difference.interest_saved quantify the gap. Use this to power quick comparisons in lending apps and treasury dashboards.

How to interpret effective dates and compute with the repo rate

Effective dates: for latest and historical results, use dates.RIKSBANK_REPO (latest) or your requested date (historical) to align the rate to positions, loan repricing dates, and accounting cutoffs. For time series, the keys are ISO dates; month-end resampling can be done by taking the last available date per month.

Spreads: to compute a spread programmatically, subtract two rates expressed in the same unit (percent per annum). For example, spread = RIKSBANK_REPO − STIBOR_3M or versus ECB_MRO for cross-region comparisons. Ensure both rates are on the same effective date to avoid timing mismatches.

Monthly payment estimation: given a nominal annual rate r% and principal P over n months, you can compute:

  • Simple interest over the term: interest_total = P × (r/100) × (n/12).
  • Amortizing loan estimate: monthly_rate = (r/100)/12; payment = P × [monthly_rate × (1 + monthly_rate)^n] / [(1 + monthly_rate)^n − 1].

Use the rate from rates.RIKSBANK_REPO, convert to a decimal, and keep date alignment strict. When using convert for quick comparisons, the API already returns total_interest for a simple loan basis.

Production guidance: business days, caching, and resiliency

  • Publication rhythm: RIKSBANK_REPO is monthly. Avoid polling more than necessary; prefer event-driven refresh aligned with policy meetings and end-of-month.
  • Business days: for time series joins, the API provides daily keys; expect repeated values on consecutive business days when the policy rate is unchanged.
  • Caching: cache historical and OHLC responses with long TTLs. Cache latest with a shorter TTL; record ETag or last-modified if proxied by your platform.
  • Backfills: if a historical date returns a 404 with details on the available range, adjust your start date accordingly.
  • Rate limits: on HTTP 429, read Retry-After and X-RateLimit-* headers and implement exponential backoff.

Reference docs are available in the MCP. To proceed with implementation, Register for an API key.

Use cases with RIKSBANK_REPO in your stack

  • Interest rate dashboards: display latest and month-end values of RIKSBANK_REPO with change and OHLC summaries.
  • Loan and mortgage repricing: recompute pricing grids when RIKSBANK_REPO changes; show customer-facing comparisons using convert.
  • Macro research and risk models: parameterize scenarios by shifting RIKSBANK_REPO and measuring P&L or affordability impacts.
  • Treasury analytics: monitor spreads to STIBOR_3M or EURIBOR_3M to track wholesale funding conditions.

You can get started immediately with the endpoints outlined above. Visit https://interestratesapi.com or jump right to Get started with Interest Rates API.

Error responses and troubleshooting

  • 401 Unauthorized: missing or invalid api_key. Ensure you pass api_key=YOUR_API_KEY in the query string.
  • 403 Forbidden: account not authorized for access.
  • 404 Not Found: no symbols matched or no data in the requested range. Use details (if present) to adjust the date range.
  • 422 Validation: wrong date format (must be Y-m-d) or invalid symbol identifier.
  • 429 Too Many Requests: respect Retry-After and the X-RateLimit-Limit/Remaining/Reset headers.

All endpoints return JSON with success=false and an error message on failure. Handle these cases before parsing numeric fields.

FAQ

Is RIKSBANK_REPO a percentage or a decimal?
It is a percentage per annum. For calculations, divide by 100 to convert to decimals (e.g., 1.75 becomes 0.0175).

How should I align dates when combining RIKSBANK_REPO with market rates?
Use the effective date returned by the API (dates map in latest; date in historical). For time series joins, resample to a common frequency (e.g., month-end) and ensure both series refer to the same cutoffs.

Why do I see repeated values across multiple days in the time series?
Policy rates are typically constant between decisions. The API provides daily keys for easier joins; the value is unchanged on days where the policy rate does not move.

How can I compute a monthly payment from the API’s percentage?
Use the standard amortizing formula: monthly_rate = (r/100)/12; payment = P × [monthly_rate × (1 + monthly_rate)^n] / [(1 + monthly_rate)^n − 1]. For simple comparisons, use the convert endpoint’s totals.

What’s the best way to monitor changes?
Schedule a daily check of latest and supplement with fluctuation over rolling windows (e.g., year-to-date) to capture Δ, Δ%, and highs/lows. Cache results and alert on thresholds relevant to your product.

Ready to put RIKSBANK_REPO into production? Register for an API key and start integrating today. You can also review the MCP for endpoint details, or Register for Interest Rates API and Interest Rates API MCP to explore more capabilities.

Ready to get started?

Get your API key and start validating bank data in minutes.

Get API Key