ECB Marginal Lending Facility (ECB_MLF) Rate History

ECB Marginal Lending Facility (ECB_MLF) Rate History

You need programmatic access to the ECB Marginal Lending Facility rate (symbol: ECB_MLF) with clean JSON for dashboards, pricing engines, and risk models. By the end of this guide you will query the ECB_MLF’s latest value, pull its history, compute changes and OHLC aggregations, and compare loan interest costs—using simple GET requests and an api_key parameter from interestratesapi.com.

What the ECB_MLF is and why it matters

ECB_MLF is the European Central Bank’s Marginal Lending Facility rate, the rate at which euro area credit institutions can obtain overnight liquidity from the Eurosystem against eligible collateral. It is a key policy rate that forms the upper bound of the ECB’s interest rate corridor. Changes to ECB_MLF inform bank funding costs, influence EUR short-term rates, and cascade into lending margins and treasury benchmarks used across fintech applications.

Illustration: ECB Marginal Lending Facility (ECB_MLF) Rate History

In the Interest Rates API, ECB_MLF is:

  • Category: central_bank
  • Currency: EUR
  • Frequency: daily
  • Value units: percentage per annum (e.g., 2.90 means 2.90% p.a.)

The ECB announces decisions on business days; between decisions the daily series remains constant, including weekends and holidays. You should treat dates as ISO 8601 (Y-m-d). For effective dating, use the dates map (when provided) to align values with your accrual logic or valuation date.

All examples below use only GET requests against https://interestratesapi.com/api/v1/ with authentication via the api_key query parameter. Explore more on interestratesapi.com and read the MCP for integration details.

How ECB_MLF values are expressed, dates, and practicalities

The API expresses ECB_MLF as a numeric percentage rate per annum. The series is daily, but values typically change only on policy dates. When you request the latest endpoint, you’ll also receive a date indicating the effective date of the returned rate. When timeseries are requested, each date key corresponds to a business date with a value; weekends typically repeat the prior business day or may be omitted, so rely on your application’s business-day logic.

Server-side data is updated as soon as the benchmark is published. To reduce latency and quota usage, add a small TTL cache in your application (for example, cache the latest ECB_MLF for an hour or until the next expected publication window). Rate-limit headers help you tune retry and backoff behavior.

Endpoint 1 — Discover symbols (GET /api/v1/symbols)

Use this endpoint to discover available rate symbols and metadata. You can filter by currency, category, or provider. While we focus on ECB_MLF (EUR, central_bank), the example below shows the official response shape with a USD central bank symbol.

cURL

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

Python (requests)

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/symbols",
params=dict(category="central_bank", base="EUR", api_key="YOUR_KEY")
)
data = resp.json()
# Find ECB_MLF
ecb_mlf = next((s for s in data.get("symbols", []) if s.get("symbol") == "ECB_MLF"), None)
print(ecb_mlf)

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/symbols?category=central_bank&base=EUR&api_key=YOUR_KEY";
const res = await fetch(url);
const data = await res.json();
const ecbMlf = (data.symbols || []).find(s => s.symbol === "ECB_MLF");
console.log(ecbMlf);

PHP

<?php
$url = "https://interestratesapi.com/api/v1/symbols?category=central_bank&base=EUR&api_key=YOUR_KEY";
$json = file_get_contents($url);
$data = json_decode($json, true);
$ecbMlf = null;
if (isset($data["symbols"])) {
foreach ($data["symbols"] as $s) {
if ($s["symbol"] === "ECB_MLF") { $ecbMlf = $s; break; }
}
}
print_r($ecbMlf);
?>

JSON response (official example)

{
    "success": true,
    "date": "2026-11-08",
    "base": "EUR",
    "rates": {
        "ECB_MLF": 2.9
    },
    "dates": {
        "ECB_MLF": "2026-11-08"
    },
    "currencies": {
        "ECB_MLF": "EUR"
    },
    "base_filter_note": null
}

Key fields you’ll also use for ECB_MLF include symbol, currency_code (EUR), and frequency (daily). Use these to validate you’re mapping the right series into your codebase.

Endpoint 2 — Latest ECB_MLF value (GET /api/v1/latest)

This endpoint returns the latest value for ECB_MLF with the effective date and currency info. The official example below is specific to ECB_MLF and must be copied verbatim when demonstrating the response shape.

cURL (official sample)

JSON (official sample)

How to read this:

  • rates map: a per-symbol numeric value expressed as percent per annum.
  • date: response-level date; dates map: per-symbol effective date.
  • currencies map: per-symbol currency code, here EUR for ECB_MLF.

Python (requests)

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/latest",
params=dict(symbols="ECB_MLF", api_key="YOUR_KEY")
)
data = resp.json()
ecb_mlf_rate = data["rates"]["ECB_MLF"]
ecb_mlf_date = data.get("dates", {}).get("ECB_MLF", data.get("date"))
ecb_mlf_ccy = data.get("currencies", {}).get("ECB_MLF", "EUR")
print(ecb_mlf_rate, ecb_mlf_date, ecb_mlf_ccy)

JavaScript (fetch)

const res = await fetch(
"https://interestratesapi.com/api/v1/latest?symbols=ECB_MLF&api_key=YOUR_KEY"
);
const data = await res.json();
const rate = data.rates["ECB_MLF"];
const effDate = (data.dates || {})["ECB_MLF"] || data.date;
const ccy = (data.currencies || {})["ECB_MLF"] || "EUR";
console.log({ rate, effDate, ccy });

PHP

<?php
$url = "https://interestratesapi.com/api/v1/latest?symbols=ECB_MLF&api_key=YOUR_KEY";
$json = file_get_contents($url);
$data = json_decode($json, true);
$rate = $data["rates"]["ECB_MLF"];
$date = $data["dates"]["ECB_MLF"] ?? $data["date"];
$ccy = $data["currencies"]["ECB_MLF"] ?? "EUR";
echo "ECB_MLF: $rate% on $date ($ccy)\n";
?>

Endpoint 3 — Historical ECB_MLF on a given date (GET /api/v1/historical)

Pull the rate as of a specific date to power backtesting, accrual pivots, or point-in-time repricing. For monthly symbols the API uses the last day with data in that month; ECB_MLF is daily, so specify the exact date.

cURL

Python (requests)

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/historical",
params=dict(date="2025-06-15", symbols="ECB_MLF", api_key="YOUR_KEY")
)
data = resp.json()
print(data)

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/historical?date=2025-06-15&symbols=ECB_MLF&api_key=YOUR_KEY";
const res = await fetch(url);
const data = await res.json();
console.log(data.rates["ECB_MLF"]);

PHP

<?php
$params = http_build_query([
"date" => "2025-06-15",
"symbols" => "ECB_MLF",
"api_key" => "YOUR_KEY"
]);
$json = file_get_contents("https://interestratesapi.com/api/v1/historical?$params");
$data = json_decode($json, true);
echo $data["rates"]["ECB_MLF"];
?>

JSON response (official example)

Fields mirror the latest endpoint but tied to a specific date. Use the currencies map to confirm the currency of each symbol.

Endpoint 4 — Time series for ECB_MLF (GET /api/v1/timeseries)

Request a continuous series between two dates to compute rolling metrics, feed charts, or reprice portfolios over time.

cURL

Python (requests)

import requests
import pandas as pd

resp = requests.get(
"https://interestratesapi.com/api/v1/timeseries",
params=dict(start="2025-11-09", end="2026-11-09", symbols="ECB_MLF", api_key="YOUR_KEY")
)
data = resp.json()
series = data["rates"]["ECB_MLF"]
df = pd.Series(series, name="ECB_MLF").astype(float).sort_index()
print(df.head())

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/timeseries?start=2025-11-09&end=2026-11-09&symbols=ECB_MLF&api_key=YOUR_KEY";
const res = await fetch(url);
const data = await res.json();
const points = Object.entries(data.rates["ECB_MLF"])
.map(([date, value]) => ({ date, value }));
console.log(points.slice(0, 3));

PHP

<?php
$params = http_build_query([
"start" => "2025-11-09",
"end" => "2026-11-09",
"symbols" => "ECB_MLF",
"api_key" => "YOUR_KEY"
]);
$json = file_get_contents("https://interestratesapi.com/api/v1/timeseries?$params");
$data = json_decode($json, true);
print_r($data["rates"]["ECB_MLF"]);
?>

JSON response (official example)

The rates map contains a nested map of date to value for each requested symbol. frequencies and currencies provide per-symbol metadata.

Endpoint 5 — Fluctuation stats for ECB_MLF (GET /api/v1/fluctuation)

Compute changes, highs and lows across a window—useful for alerts, risk dashboards, and narratives around policy cycles.

cURL

Python (requests)

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/fluctuation",
params=dict(start="2025-11-09", end="2026-11-09", symbols="ECB_MLF", api_key="YOUR_KEY")
)
data = resp.json()
stats = data["rates"]["ECB_MLF"]
print(stats["change"], stats["change_pct"], stats["high"], stats["low"])

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/fluctuation?start=2025-11-09&end=2026-11-09&symbols=ECB_MLF&api_key=YOUR_KEY";
const res = await fetch(url);
const data = await res.json();
const s = data.rates["ECB_MLF"];
console.log({ change: s.change, change_pct: s.change_pct, high: s.high, low: s.low });

PHP

<?php
$params = http_build_query([
"start" => "2025-11-09",
"end" => "2026-11-09",
"symbols" => "ECB_MLF",
"api_key" => "YOUR_KEY"
]);
$json = file_get_contents("https://interestratesapi.com/api/v1/fluctuation?$params");
$data = json_decode($json, true);
$s = $data["rates"]["ECB_MLF"];
echo "Δ=" . $s["change"] . " (" . $s["change_pct"] . "%), high=" . $s["high"] . ", low=" . $s["low"] . "\n";
?>

JSON response (official example)

Key fields: start_value, end_value, change (absolute), change_pct (percentage), and the observed high/low. If start_value is zero, change_pct is null.

Endpoint 6 — OHLC for ECB_MLF (GET /api/v1/ohlc)

Request candlestick-style aggregates over weekly, monthly, or quarterly periods. These are computed on the fly from daily data—useful for charts or summarizing policy cycles.

cURL

Python (requests)

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/ohlc",
params=dict(symbols="ECB_MLF", period="monthly", start="2025-11-09", end="2026-11-09", api_key="YOUR_KEY")
)
data = resp.json()
rows = data["rates"]["ECB_MLF"]
print(rows[0]["period"], rows[0]["open"], rows[0]["close"])

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/ohlc?symbols=ECB_MLF&period=monthly&start=2025-11-09&end=2026-11-09&api_key=YOUR_KEY";
const res = await fetch(url);
const data = await res.json();
for (const row of data.rates["ECB_MLF"]) {
console.log(row.period, row.open, row.high, row.low, row.close, row.data_points);
}

PHP

<?php
$params = http_build_query([
"symbols" => "ECB_MLF",
"period" => "monthly",
"start" => "2025-11-09",
"end" => "2026-11-09",
"api_key" => "YOUR_KEY"
]);
$json = file_get_contents("https://interestratesapi.com/api/v1/ohlc?$params");
$data = json_decode($json, true);
foreach ($data["rates"]["ECB_MLF"] as $row) {
echo $row["period"] . " O:" . $row["open"] . " H:" . $row["high"] . " L:" . $row["low"] . " C:" . $row["close"] . " n=" . $row["data_points"] . "\n";
}
?>

JSON response (official example)

Each object contains open, high, low, close and data_points for the interval. period is formatted as YYYY-MM for monthly, YYYY-Wxx for weekly, or YYYY-Qx for quarterly (when applicable).

Endpoint 7 — Convert: Compare loan interest costs (GET /api/v1/convert)

Use this endpoint to compare simple loan interest costs between two benchmarks at their latest rates. It returns rate_spread and the difference in total interest for an amount and term.

cURL

Python (requests)

import requests

resp = requests.get(
"https://interestratesapi.com/api/v1/convert",
params=dict(from="ECB_MLF", to="ECB_MRO", amount=100000, term_months=12, api_key="YOUR_KEY")
)
data = resp.json()
print(data["difference"]["rate_spread"], data["difference"]["interest_saved"])

JavaScript (fetch)

const url = "https://interestratesapi.com/api/v1/convert?from=ECB_MLF&to=ECB_MRO&amount=100000&term_months=12&api_key=YOUR_KEY";
const res = await fetch(url);
const data = await res.json();
console.log(data.from.symbol, data.from.rate, data.to.symbol, data.to.rate, data.difference.rate_spread);

PHP

<?php
$params = http_build_query([
"from" => "ECB_MLF",
"to" => "ECB_MRO",
"amount" => 100000,
"term_months" => 12,
"api_key" => "YOUR_KEY"
]);
$json = file_get_contents("https://interestratesapi.com/api/v1/convert?$params");
$data = json_decode($json, true);
echo "Spread: " . $data["difference"]["rate_spread"] . "\n";
?>

JSON response (official example)

rate_spread is the simple difference between the two latest rates (from minus to). total_interest and total_payment reflect a simple interest assumption over term_months.

How to compute spreads and monthly payments from ECB_MLF

If you compute a spread between ECB_MLF and another benchmark from the API:

  • Fetch latest for both symbols (or use the convert endpoint).
  • Spread = ECB_MLF_latest - OtherRate_latest (both expressed in percentage points).

To estimate a simple monthly interest payment with ECB_MLF for principal P and monthly billing:

  • Monthly rate fraction r_m = (ECB_MLF / 100) / 12.
  • Simple month interest I_month = P × r_m.

For level-payment amortizing loans, use the standard annuity formula with the monthly rate fraction from ECB_MLF:

  • Payment = P × r_m × (1 + r_m)^N / ((1 + r_m)^N − 1), where N = number of months.

The API returns rates as percentages per annum, so always divide by 100 before converting to period rates. Align your accrual conventions with your product requirements (e.g., ACT/365 vs. simple monthly); the API provides the rate level, and your model applies compounding rules.

Business days, caching, and reading effective dates

ECB policy changes occur on business days. The ECB_MLF series in the API is daily; values on weekends and holidays typically repeat the prior effective business-day rate. Use dates maps for exact effective dates rather than assuming the response-level date applies to each symbol.

Caching suggestions:

  • Cache latest ECB_MLF for at least tens of minutes to reduce request volume.
  • Invalidate on your schedule around central bank announcement times.
  • Use ETag-equivalent logic at your app layer (hash of last JSON) to avoid unnecessary refreshes.

Inspect rate limits to adapt retries:

  • X-RateLimit-Limit: total quota per window
  • X-RateLimit-Remaining: remaining requests
  • X-RateLimit-Reset: UNIX timestamp when the window resets

If you hit 429, honor the Retry-After header before reattempting.

Error handling and validation

Common error patterns are standardized to simplify client logic.

  • 401: Missing/invalid api_key
  • 403: Account without active plan
  • 404: No symbols matched or no data for requested date/range (may include details on available ranges)
  • 422: Validation issues (date format, invalid symbol)
  • 429: Request quota exhausted (includes Retry-After and X-RateLimit-* headers)

Error payloads share a shape: success=false and error as a message string, with optional details. Always branch on success before reading fields like rates or currencies.

End-to-end ECB_MLF integration patterns

Use cases across fintech and treasury teams often combine multiple endpoints:

  • Interest rate dashboards: Use latest for real-time tiles, timeseries for charts, fluctuation for summary stats, and OHLC for condensed views.
  • Loan margining and pricing: Pull latest ECB_MLF, compute spread to internal transfer rates, and estimate simple monthly interest for quotes.
  • Macro research notebooks: Combine historical and timeseries endpoints with ECB_MLF for policy analysis; stitch in OHLC for publication-ready visuals.
  • Risk monitoring: Drive alerts off fluctuation high/low and change_pct; log effective dates from dates to track regime shifts.

All of this is available over simple GET requests with an api_key parameter. You can start prototyping in minutes—see interestratesapi.com for more resources.

Putting it together: Minimal ECB_MLF client

The following pseudo-workflow shows how to wire a small service that powers a chart and a quote widget using the same API key.

  1. On startup: call /symbols with category=central_bank and base=EUR to verify ECB_MLF availability.
  2. On request: call /latest?symbols=ECB_MLF for headline tiles with date and currency; cache response for an hour.
  3. For chart rendering: call /timeseries for the selected window; precompute rolling averages client-side.
  4. For summaries: call /fluctuation for the window to display change and change_pct.
  5. For candlesticks: call /ohlc with period=monthly for compact visuals.
  6. For pricing comparisons: call /convert from ECB_MLF to ECB_MRO to quantify interest saved at alternative benchmarks.

Full reference snippets (ECB_MLF only)

Below are concise snippets you can drop into your app for ECB_MLF. They follow the same GET pattern and api_key parameter across endpoints.

Latest + Spread computation (Python)

import requests

def get_latest(symbol):
r = requests.get("https://interestratesapi.com/api/v1/latest",
params=dict(symbols=symbol, api_key="YOUR_KEY"))
j = r.json()
return j["rates"][symbol], j.get("dates", {}).get(symbol, j.get("date"))

mlf, mlf_date = get_latest("ECB_MLF")
mro, mro_date = get_latest("ECB_MRO")
spread = mlf - mro
print(f"ECB_MLF {mlf}% ({mlf_date}); Spread to ECB_MRO: {spread}pp")

Monthly payment helper (JavaScript)

function annuityPayment(principal, annualPct, months) {
const r = (annualPct / 100) / 12;
if (r === 0) return principal / months;
return principal * r * Math.pow(1 + r, months) / (Math.pow(1 + r, months) - 1);
}
// Example: feed ECB_MLF when you fetch latest
// const pay = annuityPayment(250000, ecbMlfRate, 240);

FAQ

What time zone applies to the dates?
Dates are ISO (Y-m-d). Treat them as local effective dates for the benchmark; align to your platform’s business-day calendar when computing accruals or plotting.

Are rates percentages or decimals?
Rates are percentages per annum (e.g., 2.9 means 2.9% p.a.). Convert to fractions (divide by 100) before computing monthly or daily rates.

How often does ECB_MLF update?
ECB_MLF is a daily series. Values update when policy decisions take effect, with the same value repeated between decisions.

How do I handle missing days?
Use the timeseries map’s explicit dates. Weekends/holidays may not have unique entries; interpolate by carrying forward the prior business-day rate if your logic requires daily continuity.

What should I do on 429 responses?
Honor the Retry-After header and consult X-RateLimit-Remaining and X-RateLimit-Reset to schedule retries and avoid bursts.

Build your ECB_MLF integrations now: use the Register link to obtain an API key and start shipping. Consult the MCP for endpoint definitions, then head to interestratesapi.com to explore additional benchmarks you can pair with ECB_MLF.

Ready to get started?

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

Get API Key