The marginal lending facility rate is the interest rate banks pay when they borrow from the ECB overnight. When they do this, they have to provide collateral, for example securities, to guarantee that the money will be paid back.

In the Finance Toolkit this is get_european_central_bank_rates with rate="lending"; the Main Refinancing Operations (ECB) page has the function’s full description.

Marginal Lending Facility (ECB) in Python

Install the Finance Toolkit with:

pip install financetoolkit -U

Then call get_european_central_bank_rates as shown below.

from financetoolkit import FixedIncome

fixedincome = FixedIncome(start_date='2023-12-01', end_date="2025-12-31")

fixedincome.get_european_central_bank_rates(rate="lending")

Which returns:

  Lending
2025-12-22 0.024
2025-12-23 0.024
2025-12-24 0.024
2025-12-25 0.024
2025-12-26 0.024
2025-12-27 0.024
2025-12-28 0.024
2025-12-29 0.024
2025-12-30 0.024
2025-12-31 0.024

Parameters

get_european_central_bank_rates accepts the following parameters.

ParameterTypeDescriptionExample
ratestrThe rate to return. Defaults to None, which returns all rates. Choose between ‘refinancing’, ‘lending’ or ‘deposit’."deposit"
periodstrWhether to return the daily, weekly, monthly, quarterly or yearly data. Defaults to ‘daily’."weekly"
roundingint | NoneThe number of decimals to round the results to. Defaults to None.2
standardizeboolWhether to standardize (Z-Score) the result. Defaults to False.True
show_columnsstr | list[str] | NoneThe columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column.None, which keeps every column
Share