RBNZ Historical Data API: Timeseries, Charts & Downloads

RBNZ Historical Data API: Timeseries, Charts & Downloads

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 RBNZ (Reserve Bank of New Zealand) Official Cash Rate (RBNZ_OCR) is a key indicator of monetary policy in New Zealand, influencing borrowing costs and economic activity. The Interest Rates API provides a robust solution for retrieving historical data, time series analysis, and real-time interest rate information, enabling users to build sophisticated fintech applications and conduct in-depth financial analysis.

Understanding the RBNZ_OCR

The RBNZ_OCR is the primary tool used by the Reserve Bank of New Zealand to influence interest rates and manage inflation. It serves as a benchmark for various lending rates across the economy. Understanding its historical trends and fluctuations is essential for making informed financial decisions. The Interest Rates API offers several endpoints that allow users to access this data efficiently.

Key API Endpoints for RBNZ_OCR

The Interest Rates API provides multiple endpoints to interact with interest rate data. Below, we will explore the most relevant endpoints for accessing RBNZ_OCR data, including examples and practical use cases.

1. Fetching Available Symbols

The first step in utilizing the API is to retrieve the available symbols, including RBNZ_OCR. This can be done using the following endpoint:

GET /api/v1/symbols

Example cURL request:

curl "https://interestratesapi.com/api/v1/symbols?category=central_bank&base=NZD&api_key=YOUR_KEY"

JSON response example:


{
"success": true,
"count": 1,
"symbols": [
{
"symbol": "RBNZ_OCR",
"name": "RBNZ Official Cash Rate",
"category": "central_bank",
"country_code": "NZ",
"currency_code": "NZD",
"frequency": "monthly",
"description": "The official cash rate set by the Reserve Bank of New Zealand."
}
]
}

2. Retrieving Latest Rates

To get the most recent value of the RBNZ_OCR, you can use the latest endpoint:

GET /api/v1/latest

Example cURL request:

curl "https://interestratesapi.com/api/v1/latest?symbols=RBNZ_OCR&api_key=YOUR_KEY"

JSON response example:


{
"success": true,
"date": "2026-07-17",
"base": "NZD",
"rates": {
"RBNZ_OCR": 5.33
},
"dates": {
"RBNZ_OCR": "2026-07-17"
},
"currencies": {
"RBNZ_OCR": "NZD"
}
}

3. Historical Data Retrieval

For point-in-time lookups, the historical endpoint allows you to retrieve the RBNZ_OCR for a specific date:

GET /api/v1/historical

Example cURL request:

curl "https://interestratesapi.com/api/v1/historical?date=2025-06-15&symbols=RBNZ_OCR&api_key=YOUR_KEY"

JSON response example:


{
"success": true,
"date": "2025-06-15",
"base": "NZD",
"rates": {
"RBNZ_OCR": 5.33
},
"currencies": {
"RBNZ_OCR": "NZD"
}
}

4. Time Series Data

The timeseries endpoint is particularly useful for analyzing trends over a specified date range. This allows developers to fetch multi-year data for the RBNZ_OCR:

GET /api/v1/timeseries

Example cURL request:

curl "https://interestratesapi.com/api/v1/timeseries?start=2025-07-17&end=2026-07-17&symbols=RBNZ_OCR&api_key=YOUR_KEY"

JSON response example:


{
"success": true,
"base": "NZD",
"start_date": "2025-07-17",
"end_date": "2026-07-17",
"rates": {
"RBNZ_OCR": {
"2025-01-02": 5.33,
"2025-01-03": 5.33,
"2025-01-06": 5.33
}
},
"frequencies": {
"RBNZ_OCR": "daily"
},
"currencies": {
"RBNZ_OCR": "NZD"
}
}

5. Fluctuation Analysis

To analyze the change in the RBNZ_OCR over a specified period, the fluctuation endpoint can be utilized:

GET /api/v1/fluctuation

Example cURL request:

curl "https://interestratesapi.com/api/v1/fluctuation?start=2025-07-17&end=2026-07-17&symbols=RBNZ_OCR&api_key=YOUR_KEY"

JSON response example:


{
"success": true,
"rates": {
"RBNZ_OCR": {
"start_date": "2025-07-17",
"end_date": "2026-07-17",
"start_value": 5.50,
"end_value": 5.33,
"change": -0.17,
"change_pct": -3.09,
"high": 5.50,
"low": 5.25
}
}
}

6. OHLC Data for Charting

For visualizing the RBNZ_OCR data, the OHLC (Open, High, Low, Close) endpoint can be used to generate candlestick charts:

GET /api/v1/ohlc

Example cURL request:

curl "https://interestratesapi.com/api/v1/ohlc?symbols=RBNZ_OCR&period=monthly&start=2025-07-17&end=2026-07-17&api_key=YOUR_KEY"

JSON response example:


{
"success": true,
"period": "monthly",
"start_date": "2025-07-17",
"end_date": "2026-07-17",
"rates": {
"RBNZ_OCR": [
{
"period": "2025-01",
"open": 5.50,
"high": 5.50,
"low": 5.33,
"close": 5.33,
"data_points": 23
}
]
}
}

Building a Data Pipeline with Python

To effectively utilize the RBNZ_OCR data, developers can build a data pipeline using Python. Below is a complete example that fetches the latest RBNZ_OCR data, stores it in a pandas DataFrame, and exports it to CSV format:

import requests
import pandas as pd

# Fetch latest RBNZ_OCR data
response = requests.get(
'https://interestratesapi.com/api/v1/latest',
params=dict(symbols='RBNZ_OCR', api_key='YOUR_KEY')
)
data = response.json()

# Create DataFrame
df = pd.DataFrame(data['rates'], index=[data['date']])

# Export to CSV
df.to_csv('RBNZ_OCR_latest.csv', index=True)

Time Series Analysis Considerations

When working with time series data, it is essential to consider the following:

  • Missing Dates: Ensure that your analysis accounts for weekends and holidays when data may not be available.
  • Frequency: Understand the implications of daily versus monthly data. Monthly data may not capture short-term fluctuations.
  • Data Points: The number of data points can affect the reliability of your analysis. Ensure you have sufficient data for meaningful insights.

Conclusion

The Interest Rates API provides a powerful tool for accessing and analyzing the RBNZ_OCR and other interest rate data. By leveraging the various endpoints, developers can build applications that provide valuable insights into financial trends and help users make informed decisions. Whether you are conducting historical analysis, visualizing data, or building a data pipeline, the API offers the flexibility and functionality needed to succeed in the competitive fintech landscape.

For more information and to get started, visit Explore Interest Rates API features and Get started with Interest Rates API.

Ready to get started?

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

Get API Key

Related posts