Introduction
In the fast-paced world of finance, access to accurate and timely interest rate data is crucial for developers, economists, and financial analysts. The BKBM 3-Month Historical Data API from Interest Rates API provides a comprehensive solution for retrieving historical interest rate data, specifically focusing on the New Zealand Bank Bill Market Rate (BKBM_3M). This API allows users to perform time series analysis, generate charts, and download data, making it an invaluable tool for fintech applications and financial data engineering.
Understanding the BKBM 3-Month Rate
The BKBM 3-Month rate is an interbank interest rate that reflects the cost of borrowing funds for a three-month period in New Zealand. This rate is essential for various financial applications, including loan pricing, risk management, and economic forecasting. By leveraging the BKBM 3-Month Historical Data API, users can access historical data, analyze trends, and make informed decisions based on the latest market conditions.
API Overview
The BKBM 3-Month Historical Data API provides several endpoints that allow users to retrieve different types of data related to the BKBM_3M rate. Below is a detailed overview of the available endpoints:
- GET /api/v1/symbols: Retrieve a catalogue of available rate symbols.
- GET /api/v1/latest: Get the latest value for specified symbols.
- GET /api/v1/historical: Fetch the value of a symbol on a specific date.
- GET /api/v1/timeseries: Retrieve a series of values between two dates.
- GET /api/v1/fluctuation: Get change statistics over a specified range.
- GET /api/v1/ohlc: Obtain OHLC candlestick data for charting.
- GET /api/v1/convert: Compare loan interest costs between two rates.
Fetching Historical Data with the /timeseries Endpoint
The /timeseries endpoint is particularly useful for developers looking to analyze multi-year data for the BKBM_3M rate. This endpoint allows users to specify a date range and retrieve daily values, which can be instrumental in identifying trends and making forecasts.
Endpoint Details
To use the /timeseries endpoint, you need to provide the following parameters:
- start: The start date in YYYY-MM-DD format.
- end: The end date in YYYY-MM-DD format (must be greater than or equal to the start date).
- symbols: A comma-separated list of symbols (e.g., BKBM_3M).
- base: (Optional) A currency filter.
Example Request
curl "https://interestratesapi.com/api/v1/timeseries?start=2025-06-12&end=2026-06-12&symbols=BKBM_3M&api_key=YOUR_KEY"
Example Response
{
"success": true,
"base": "USD",
"start_date": "2025-06-12",
"end_date": "2026-06-12",
"rates": {
"BKBM_3M": {
"2025-01-02": 5.33,
"2025-01-03": 5.33,
"2025-01-06": 5.33
}
},
"frequencies": {
"BKBM_3M": "daily"
},
"currencies": {
"BKBM_3M": "USD"
}
}
This response provides a structured view of the BKBM_3M rates over the specified date range, allowing developers to visualize trends and perform further analysis.
Point-in-Time Lookups with the /historical Endpoint
The /historical endpoint is designed for users who need to retrieve the value of the BKBM_3M rate on a specific date. This is particularly useful for financial analysts who require historical data for reporting or compliance purposes.
Endpoint Details
To use the /historical endpoint, you need to provide the following parameters:
- date: The specific date in YYYY-MM-DD format.
- symbols: (Optional) A comma-separated list of symbols.
- base: (Optional) A currency filter.
Example Request
curl "https://interestratesapi.com/api/v1/historical?date=2025-06-15&symbols=BKBM_3M&api_key=YOUR_KEY"
Example Response
{
"success": true,
"date": "2025-06-15",
"base": "USD",
"rates": {
"BKBM_3M": 5.33
},
"currencies": {
"BKBM_3M": "USD"
}
}
This response provides the BKBM_3M rate for the specified date, enabling users to conduct historical analyses or audits.
Visualizing Data with the /ohlc Endpoint
For developers looking to create visual representations of the BKBM_3M rate, the /ohlc endpoint provides OHLC (Open, High, Low, Close) candlestick data. This data is essential for building financial charts and visualizations.
Endpoint Details
To use the /ohlc endpoint, you need to provide the following parameters:
- symbols: A comma-separated list of symbols.
- period: (Optional) The period for the data (weekly, monthly, quarterly; defaults to monthly).
- start: (Optional) The start date in YYYY-MM-DD format.
- end: (Optional) The end date in YYYY-MM-DD format.
Example Request
curl "https://interestratesapi.com/api/v1/ohlc?symbols=BKBM_3M&period=monthly&start=2025-06-12&end=2026-06-12&api_key=YOUR_KEY"
Example Response
{
"success": true,
"period": "monthly",
"start_date": "2025-06-12",
"end_date": "2026-06-12",
"rates": {
"BKBM_3M": [
{
"period": "2025-01",
"open": 5.50,
"high": 5.50,
"low": 5.33,
"close": 5.33,
"data_points": 23
}
]
}
}
This response provides the necessary data to create candlestick charts, which can be integrated into applications using libraries like Chart.js or Plotly.
Building a Data Pipeline with Python
For developers looking to automate the retrieval and processing of BKBM_3M data, a Python data pipeline can be an effective solution. Below is an example of how to fetch data using the requests library, convert it into a pandas DataFrame, and export it to CSV or Parquet format.
Example Python Code
import requests
import pandas as pd
# Fetching timeseries data
response = requests.get(
'https://interestratesapi.com/api/v1/timeseries',
params=dict(start='2025-06-12', end='2026-06-12', symbols='BKBM_3M', api_key='YOUR_KEY')
)
data = response.json()
# Converting to DataFrame
df = pd.DataFrame(data['rates']['BKBM_3M']).T
df.index = pd.to_datetime(df.index)
# Exporting to CSV
df.to_csv('BKBM_3M_data.csv')
# Exporting to Parquet
df.to_parquet('BKBM_3M_data.parquet')
This code snippet demonstrates how to automate data retrieval and storage, making it easier for developers to manage and analyze interest rate data.
Common Pitfalls in Time Series Analysis
When working with time series data, developers should be aware of several common pitfalls:
- Missing Dates: Ensure that the data covers all required dates, especially when analyzing trends over time.
- Frequency Considerations: Understand the difference between daily and monthly data, as this can impact analysis results.
- Data Points Interpretation: Be cautious when interpreting data points, especially for monthly symbols where the last day with data is used.
Conclusion
The BKBM 3-Month Historical Data API from Interest Rates API is a powerful tool for accessing and analyzing interest rate data. With endpoints designed for historical lookups, time series analysis, and data visualization, this API provides developers and financial analysts with the resources they need to make informed decisions. By leveraging this API, users can streamline their data retrieval processes, enhance their financial applications, and gain valuable insights into market trends.
To get started with the BKBM 3-Month Historical Data API, visit Explore Interest Rates API features and discover how you can integrate this powerful tool into your applications.




