TONAR 3-Month Historical Data API: Timeseries, Charts & Downloads

TONAR 3-Month 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 TONAR 3-Month Historical Data API from interestratesapi.com provides a robust solution for retrieving historical interest rate data, specifically focusing on the Japan 3-Month Uncollateralized Call Rate (TONAR_3M). This API allows users to perform time series analysis, generate charts, and download data, making it an essential tool for fintech applications and financial data engineering.

Understanding the Importance of Interest Rate Data

Interest rates are a fundamental component of the financial ecosystem, influencing everything from loan costs to investment returns. For developers building fintech applications, having access to reliable interest rate data is essential for creating accurate financial models, risk assessments, and investment strategies. The TONAR 3-Month rate, in particular, serves as a key benchmark for interbank lending in Japan, making it vital for anyone involved in financial analysis or economic forecasting.

Without access to comprehensive interest rate data, developers face significant challenges, including:

  • Inability to perform accurate financial modeling and forecasting.
  • Difficulty in comparing different interest rates for loan and investment decisions.
  • Challenges in visualizing trends and fluctuations in interest rates over time.

The TONAR 3-Month Historical Data API addresses these challenges by providing a straightforward interface for retrieving historical and current interest rate data, enabling users to make informed financial decisions.

API Overview

The Interest Rates API offers several endpoints that allow users to access a variety of interest rate data. Below, we will explore the key endpoints relevant to the TONAR_3M rate, including how to retrieve historical data, perform time series analysis, and visualize data through candlestick charts.

Key API Endpoints

1. Retrieving Available Symbols

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

GET /api/v1/symbols

This endpoint provides a catalogue of available rate symbols, allowing users to confirm the correct identifiers for their requests.

Example cURL request:

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

Example JSON response:


{
"success": true,
"count": 1,
"symbols": [
{
"symbol": "TONAR_3M",
"name": "Japan 3-Month Uncollateralized Call Rate",
"category": "interbank",
"country_code": "JP",
"currency_code": "JPY",
"frequency": "monthly",
"description": "The interest rate at which banks lend to each other uncollateralized for a period of three months."
}
]
}

2. Fetching Latest Rates

To obtain the most recent value for the TONAR_3M rate, you can use the following endpoint:

GET /api/v1/latest

This endpoint returns the latest interest rates for specified symbols.

Example cURL request:

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

Example JSON response:


{
"success": true,
"date": "2026-07-19",
"base": "JPY",
"rates": {
"TONAR_3M": 5.33
},
"dates": {
"TONAR_3M": "2026-07-19"
},
"currencies": {
"TONAR_3M": "JPY"
}
}

3. Historical Data Retrieval

For point-in-time lookups, the historical endpoint allows users to retrieve the value of the TONAR_3M rate on a specific date:

GET /api/v1/historical

Example cURL request:

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

Example JSON response:


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

4. Time Series Data

The time series endpoint is particularly useful for analyzing trends over a specified date range. This endpoint allows users to fetch multiple data points for the TONAR_3M rate:

GET /api/v1/timeseries

Example cURL request:

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

Example JSON response:


{
"success": true,
"base": "JPY",
"start_date": "2025-01-01",
"end_date": "2026-01-01",
"rates": {
"TONAR_3M": {
"2025-01-02": 5.33,
"2025-01-03": 5.33,
"2025-01-06": 5.33
}
},
"frequencies": {
"TONAR_3M": "daily"
},
"currencies": {
"TONAR_3M": "JPY"
}
}

5. Fluctuation Analysis

The fluctuation endpoint provides statistics on the changes in the TONAR_3M rate over a specified date range:

GET /api/v1/fluctuation

Example cURL request:

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

Example JSON response:


{
"success": true,
"rates": {
"TONAR_3M": {
"start_date": "2025-01-01",
"end_date": "2026-01-01",
"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 data, the OHLC (Open, High, Low, Close) endpoint allows users to generate candlestick charts:

GET /api/v1/ohlc

Example cURL request:

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

Example JSON response:


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

To visualize this data using Chart.js, you can use the following JavaScript snippet:


const ctx = document.getElementById('myChart').getContext('2d');
const myChart = new Chart(ctx, {
type: 'candlestick',
data: {
datasets: [{
label: 'TONAR 3M',
data: [
{ x: '2025-01-01', o: 5.50, h: 5.50, l: 5.33, c: 5.33 }
]
}]
},
options: {
scales: {
x: {
type: 'time'
}
}
}
});

Building a Data Pipeline with Python

To create a data pipeline that fetches the TONAR_3M data and exports it to a CSV or Parquet file, you can use the following Python code:

import requests
import pandas as pd

# Fetching time series data
response = requests.get(
'https://interestratesapi.com/api/v1/timeseries',
params=dict(start='2025-01-01', end='2026-01-01', symbols='TONAR_3M', api_key='YOUR_KEY')
)

data = response.json()

# Creating a DataFrame
dates = data['rates']['TONAR_3M']
df = pd.DataFrame(list(dates.items()), columns=['Date', 'Rate'])

# Exporting to CSV
df.to_csv('tonar_3m_rates.csv', index=False)

# Exporting to Parquet
df.to_parquet('tonar_3m_rates.parquet', index=False)

Common Pitfalls in Time Series Analysis

When working with time series data, there are several pitfalls to be aware of:

  • Missing Dates: Ensure that your analysis accounts for weekends and holidays when data may not be available.
  • Frequency Considerations: Be mindful of the frequency of the data (daily vs. monthly) and how it impacts your analysis.
  • Data Points Interpretation: Understand how the number of data points can affect the reliability of your analysis.

Conclusion

The TONAR 3-Month Historical Data API from interestratesapi.com is a powerful tool for accessing and analyzing interest rate data. By leveraging its various endpoints, developers can efficiently retrieve historical data, perform time series analysis, and visualize trends through candlestick charts. This API not only streamlines the data retrieval process but also empowers users to make informed financial decisions based on accurate and timely information.

For more information on how to get started, visit Get started with Interest Rates API and explore the full range of features available.

Ready to get started?

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

Get API Key

Related posts