In the world of finance, accurate and timely data is crucial for making informed decisions. For developers building fintech applications, economists analyzing trends, and quantitative analysts conducting research, access to reliable interest rate data is essential. The US Treasury 10-Year Historical Data API from Interest Rates API provides a comprehensive solution for retrieving historical and current interest rate data, enabling users to perform detailed financial analysis and build robust applications.
Understanding the US Treasury 10-Year Rate
The US Treasury 10-Year Yield, often referred to as the US_TREASURY_10Y, is a critical benchmark in the financial markets. It reflects the return on investment for a US government bond that matures in ten years. This rate is closely watched by investors, economists, and policymakers as it influences borrowing costs, mortgage rates, and overall economic conditions. Understanding how to access and analyze this data can provide significant insights into market trends and economic forecasts.
API Overview
The Interest Rates API offers several endpoints that allow users to retrieve various types of interest rate data, including:
- /api/v1/symbols: Retrieve a catalogue of available rate symbols.
- /api/v1/latest: Get the latest value for specified symbols.
- /api/v1/historical: Fetch the value of a symbol on a specific date.
- /api/v1/timeseries: Retrieve a series of values between two dates.
- /api/v1/fluctuation: Get change statistics over a specified range.
- /api/v1/ohlc: Obtain OHLC candlestick data for visual analysis.
- /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 trends over time. This endpoint allows users to retrieve a series of interest rates for the US Treasury 10-Year bond over a specified date range. This is essential for conducting time series analysis, which can reveal patterns and help in forecasting future rates.
To use the /timeseries endpoint, you need to specify the start and end dates, along with the symbols you wish to retrieve. Here’s how you can make a request:
curl "https://interestratesapi.com/api/v1/timeseries?start=2025-01-01&end=2026-01-01&symbols=US_TREASURY_10Y&api_key=YOUR_KEY"
The expected JSON response will look like this:
{
"success": true,
"base": "USD",
"start_date": "2025-01-01",
"end_date": "2026-01-01",
"rates": {
"US_TREASURY_10Y": {
"2025-01-01": 5.00,
"2025-01-02": 5.05,
"2025-01-03": 5.03
}
},
"frequencies": {
"US_TREASURY_10Y": "daily"
},
"currencies": {
"US_TREASURY_10Y": "USD"
}
}
In this response, the rates object contains the daily interest rates for the US Treasury 10-Year bond. Each date is a key, and the corresponding value is the interest rate for that day. This data can be used to create visualizations or perform statistical analyses.
Point-in-Time Lookups with the /historical Endpoint
For scenarios where you need to retrieve the interest rate for a specific date, the /historical endpoint is invaluable. This endpoint allows users to fetch the value of the US Treasury 10-Year bond on a particular date, which is useful for historical analysis and reporting.
To make a request to the /historical endpoint, you need to specify the date and the symbol:
curl "https://interestratesapi.com/api/v1/historical?date=2025-06-15&symbols=US_TREASURY_10Y&api_key=YOUR_KEY"
The expected JSON response will look like this:
{
"success": true,
"date": "2025-06-15",
"base": "USD",
"rates": {
"US_TREASURY_10Y": 5.33
},
"currencies": {
"US_TREASURY_10Y": "USD"
}
}
This response indicates that on June 15, 2025, the interest rate for the US Treasury 10-Year bond was 5.33%. This data can be critical for financial modeling and historical comparisons.
Visualizing Data with the /ohlc Endpoint
To create candlestick charts for visual analysis, the /ohlc endpoint is essential. This endpoint provides Open, High, Low, and Close (OHLC) data for the specified symbol over a defined period. This is particularly useful for traders and analysts who rely on visual data representation to make decisions.
To request OHLC data, you can use the following cURL command:
curl "https://interestratesapi.com/api/v1/ohlc?symbols=US_TREASURY_10Y&period=monthly&start=2025-01-01&end=2026-01-01&api_key=YOUR_KEY"
The expected JSON response will look like this:
{
"success": true,
"period": "monthly",
"start_date": "2025-01-01",
"end_date": "2026-01-01",
"rates": {
"US_TREASURY_10Y": [
{
"period": "2025-01",
"open": 5.00,
"high": 5.05,
"low": 4.95,
"close": 5.03,
"data_points": 22
},
{
"period": "2025-02",
"open": 5.03,
"high": 5.10,
"low": 5.00,
"close": 5.07,
"data_points": 20
}
]
}
}
This response provides monthly OHLC data, which can be used to create candlestick charts using libraries like Chart.js or Plotly. Here’s a simple example of how you might visualize this data using Chart.js:
const ctx = document.getElementById('myChart').getContext('2d');
const data = {
labels: ['2025-01', '2025-02'],
datasets: [{
label: 'US Treasury 10Y',
data: [
{ x: '2025-01', y: [5.00, 5.05, 4.95, 5.03] },
{ x: '2025-02', y: [5.03, 5.10, 5.00, 5.07] }
],
borderColor: 'rgba(75, 192, 192, 1)',
backgroundColor: 'rgba(75, 192, 192, 0.2)',
}]
};
const myChart = new Chart(ctx, {
type: 'candlestick',
data: data,
options: {}
});
Analyzing Fluctuations with the /fluctuation Endpoint
The /fluctuation endpoint allows users to analyze the change in interest rates over a specified period. This is particularly useful for understanding market volatility and making informed investment decisions.
To use this endpoint, you need to specify the start and end dates along with the symbol:
curl "https://interestratesapi.com/api/v1/fluctuation?start=2025-01-01&end=2026-01-01&symbols=US_TREASURY_10Y&api_key=YOUR_KEY"
The expected JSON response will look like this:
{
"success": true,
"rates": {
"US_TREASURY_10Y": {
"start_date": "2025-01-01",
"end_date": "2026-01-01",
"start_value": 5.00,
"end_value": 5.33,
"change": 0.33,
"change_pct": 6.60,
"high": 5.10,
"low": 4.95
}
}
}
This response provides valuable insights into the fluctuations of the US Treasury 10-Year yield, including the percentage change and the highest and lowest values during the specified period. This data can be crucial for risk assessment and investment strategy development.
Comparing Loan Costs with the /convert Endpoint
The /convert endpoint allows users to compare the total interest cost of loans between two different rates. This is particularly useful for financial analysts and developers building applications that require loan comparisons.
To use this endpoint, you can make the following request:
curl "https://interestratesapi.com/api/v1/convert?from=US_TREASURY_10Y&to=ECB_MRO&amount=100000&term_months=12&api_key=YOUR_KEY"
The expected JSON response will look like this:
{
"success": true,
"amount": 100000,
"term_months": 12,
"from": {
"symbol": "US_TREASURY_10Y",
"rate": 5.33,
"date": "2026-06-25",
"total_interest": 5330.00,
"total_payment": 105330.00
},
"to": {
"symbol": "ECB_MRO",
"rate": 4.50,
"date": "2026-06-25",
"total_interest": 4500.00,
"total_payment": 104500.00
},
"difference": {
"rate_spread": 0.83,
"interest_saved": 830.00
}
}
This response provides a detailed comparison of the total interest costs for loans based on the specified rates, allowing users to make informed decisions about borrowing.
Conclusion
The US Treasury 10-Year Historical Data API from Interest Rates API is a powerful tool for accessing and analyzing interest rate data. With endpoints for retrieving historical data, analyzing fluctuations, visualizing trends, and comparing loan costs, this API provides developers and financial analysts with the resources they need to make informed decisions. By leveraging this API, users can enhance their applications, conduct thorough financial analyses, and stay ahead in the ever-evolving financial landscape.
To get started with the Interest Rates API, explore its features, and integrate it into your applications, visit the official documentation today.




