Introduction
The financial landscape is constantly evolving, and understanding interest rates is crucial for developers, economists, and financial analysts. The Swiss National Bank (SNB) Policy Rate is a key indicator of monetary policy in Switzerland, influencing various financial markets. This blog post will delve into the SNB Policy Rate, its historical data, trends, and how developers can leverage the Interest Rates API to access this vital information. We will explore the API's endpoints, provide code examples, and discuss practical use cases for fintech applications.
Understanding the SNB Policy Rate
The SNB Policy Rate is the interest rate set by the Swiss National Bank, which serves as the central bank of Switzerland. This rate is pivotal for controlling inflation and stabilizing the Swiss economy. Changes in the SNB Policy Rate can have significant implications for various financial instruments, including loans, mortgages, and investment products. For developers building fintech applications, having access to accurate and timely data on the SNB Policy Rate is essential for creating effective financial tools.
Accessing Interest Rate Data with the Interest Rates API
The Interest Rates API provides a comprehensive suite of endpoints to access interest rate data, including the SNB Policy Rate. Below, we will explore each endpoint, its purpose, and how to use it effectively.
1. Endpoint: Get Available Symbols
This endpoint allows users to retrieve a catalogue of available rate symbols, including the SNB Policy Rate.
cURL Example:
curl "https://interestratesapi.com/api/v1/symbols?category=central_bank&base=CHF&api_key=YOUR_KEY"
JSON Response Example:
{
"success": true,
"count": 1,
"symbols": [
{
"symbol": "SNB_POLICY_RATE",
"name": "Swiss National Bank Policy Rate",
"category": "central_bank",
"country_code": "CH",
"currency_code": "CHF",
"frequency": "monthly",
"description": "The interest rate set by the Swiss National Bank."
}
]
}
This response provides essential information about the SNB Policy Rate, including its symbol, name, and description. Developers can use this data to display available interest rates in their applications.
2. Endpoint: Get Latest Rates
This endpoint retrieves the latest value for specified symbols, including the SNB Policy Rate.
cURL Example:
curl "https://interestratesapi.com/api/v1/latest?symbols=SNB_POLICY_RATE&api_key=YOUR_KEY"
JSON Response Example:
{
"success": true,
"date": "2026-05-11",
"base": "CHF",
"rates": {
"SNB_POLICY_RATE": 5.33
},
"dates": {
"SNB_POLICY_RATE": "2026-05-11"
},
"currencies": {
"SNB_POLICY_RATE": "CHF"
}
}
The response includes the latest SNB Policy Rate, the date of the rate, and the currency. This data is crucial for applications that require real-time interest rate information.
3. Endpoint: Get Historical Rates
This endpoint allows users to retrieve the value of the SNB Policy Rate on a specific date.
cURL Example:
curl "https://interestratesapi.com/api/v1/historical?date=2025-06-15&symbols=SNB_POLICY_RATE&api_key=YOUR_KEY"
JSON Response Example:
{
"success": true,
"date": "2025-06-15",
"base": "CHF",
"rates": {
"SNB_POLICY_RATE": 5.33
},
"currencies": {
"SNB_POLICY_RATE": "CHF"
}
}
This endpoint is particularly useful for financial analysts conducting historical analysis or trend forecasting based on past interest rates.
4. Endpoint: Get Time Series Data
This endpoint provides a series of interest rates between two specified dates.
cURL Example:
curl "https://interestratesapi.com/api/v1/timeseries?start=2025-05-11&end=2026-05-11&symbols=SNB_POLICY_RATE&api_key=YOUR_KEY"
JSON Response Example:
{
"success": true,
"base": "CHF",
"start_date": "2025-05-11",
"end_date": "2026-05-11",
"rates": {
"SNB_POLICY_RATE": {
"2025-01-02": 5.33,
"2025-01-03": 5.33,
"2025-01-06": 5.33
}
},
"frequencies": {
"SNB_POLICY_RATE": "daily"
},
"currencies": {
"SNB_POLICY_RATE": "CHF"
}
}
This data can be used to create visualizations or dashboards that track the performance of the SNB Policy Rate over time, aiding in macroeconomic research.
5. Endpoint: Get Fluctuation Data
This endpoint provides change statistics over a specified date range.
cURL Example:
curl "https://interestratesapi.com/api/v1/fluctuation?start=2025-05-11&end=2026-05-11&symbols=SNB_POLICY_RATE&api_key=YOUR_KEY"
JSON Response Example:
{
"success": true,
"rates": {
"SNB_POLICY_RATE": {
"start_date": "2025-05-11",
"end_date": "2026-05-11",
"start_value": 5.50,
"end_value": 5.33,
"change": -0.17,
"change_pct": -3.09,
"high": 5.50,
"low": 5.25
}
}
}
This endpoint is valuable for risk models and financial applications that need to assess the volatility of interest rates over time.
6. Endpoint: Get OHLC Data
This endpoint provides Open, High, Low, Close (OHLC) candlestick data for the SNB Policy Rate.
cURL Example:
curl "https://interestratesapi.com/api/v1/ohlc?symbols=SNB_POLICY_RATE&period=monthly&start=2025-05-11&end=2026-05-11&api_key=YOUR_KEY"
JSON Response Example:
{
"success": true,
"period": "monthly",
"start_date": "2025-05-11",
"end_date": "2026-05-11",
"rates": {
"SNB_POLICY_RATE": [
{
"period": "2025-01",
"open": 5.50,
"high": 5.50,
"low": 5.33,
"close": 5.33,
"data_points": 23
}
]
}
}
OHLC data is essential for traders and analysts who require detailed insights into price movements and trends.
7. Endpoint: Convert Loan Interest Costs
This endpoint allows users to compare the total interest cost of a loan between two rates.
cURL Example:
curl "https://interestratesapi.com/api/v1/convert?from=SNB_POLICY_RATE&to=ECB_MRO&amount=100000&term_months=12&api_key=YOUR_KEY"
JSON Response Example:
{
"success": true,
"amount": 100000,
"term_months": 12,
"from": {
"symbol": "SNB_POLICY_RATE",
"rate": 5.33,
"date": "2026-05-11",
"total_interest": 5330.00,
"total_payment": 105330.00
},
"to": {
"symbol": "ECB_MRO",
"rate": 4.50,
"date": "2026-05-11",
"total_interest": 4500.00,
"total_payment": 104500.00
},
"difference": {
"rate_spread": 0.83,
"interest_saved": 830.00
}
}
This endpoint is particularly useful for financial advisors and consumers looking to compare loan options and make informed decisions.
Key Response Fields Explained
Understanding the response fields from the Interest Rates API is crucial for developers. Here are some key fields:
- rates: This map contains the latest interest rates for the requested symbols.
- dates: This map provides the date for each rate, allowing users to track changes over time.
- currencies: This map indicates the currency associated with each rate, ensuring clarity in financial applications.
- change_pct: This field indicates the percentage change in the interest rate, which is vital for assessing market trends.
- data_points: This field shows the number of data points used to calculate the OHLC values, providing insight into the reliability of the data.
Real-World Use Cases
The Interest Rates API can be utilized in various real-world scenarios:
- Interest Rate Dashboards: Developers can create dashboards that display real-time interest rates, helping users make informed financial decisions.
- Loan Comparison Tools: By leveraging the conversion endpoint, fintech applications can compare loan options based on different interest rates, providing users with valuable insights.
- Macro Research: Economists can use historical data to analyze trends and make predictions about future economic conditions.
- Risk Models: Financial analysts can assess the volatility of interest rates and incorporate this data into their risk management strategies.
- Fintech Applications: Startups can build innovative financial products that rely on accurate interest rate data, enhancing user experience and engagement.
Conclusion
The SNB Policy Rate is a critical component of the Swiss financial landscape, and accessing accurate data is essential for developers and analysts alike. The Interest Rates API provides a robust solution for retrieving interest rate data, enabling the creation of powerful financial applications. By understanding the various endpoints and their practical applications, developers can leverage this API to enhance their fintech solutions and provide valuable insights to their users.
To get started with the Interest Rates API, explore its features and capabilities, and unlock the potential of interest rate data in your applications.




