The Easiest Way to Get Unidad de Fomento (CLF) Historical Rates Using API Integration
The Easiest Way to Get Unidad de Fomento (CLF) Historical Rates Using API Integration
In today's fast-paced financial landscape, accessing accurate and timely data is crucial for developers and businesses alike. The Unidad de Fomento (CLF) is a key financial instrument in Chile, and obtaining its historical rates can be a challenge without the right tools. Fortunately, the Metals-API provides a robust solution for retrieving historical rates, including those for CLF, through seamless API integration. This blog post will guide you through the process of accessing CLF historical prices using the Metals-API, detailing the endpoints, parameters, and data formats involved.
Understanding the Metals-API
The Metals-API is a powerful tool designed for developers seeking real-time and historical data on various metals and currencies. It leverages advanced technological innovations to deliver accurate and timely information, enabling developers to build next-generation applications that require reliable financial data. With features such as real-time exchange rates, historical data access, and comprehensive analytics, the Metals-API stands out as a transformative resource in the financial technology space.
About Nickel (NI)
Nickel, represented by the symbol NI, is a critical metal in various industries, particularly in the production of stainless steel and batteries. As the world increasingly embraces digital transformation, the metal markets are evolving rapidly. Technological advancements in data analytics and smart technology integration are reshaping how businesses interact with metal markets. The Metals-API plays a vital role in this transformation by providing developers with the tools needed to harness real-time data for informed decision-making.
API Description
The Metals-API offers a wide range of capabilities that empower developers to access and utilize metals data effectively. With its innovative architecture, the API allows for seamless integration into applications, enabling users to retrieve real-time and historical data effortlessly. The API's capabilities include:
- Real-time exchange rate data updated frequently based on subscription plans.
- Access to historical rates dating back to 2019, allowing for comprehensive analysis.
- Multiple endpoints for various functionalities, including conversion, fluctuation tracking, and more.
For detailed information on how to implement these features, refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API provides several key endpoints that facilitate the retrieval of data. Here are some of the most significant features:
Latest Rates Endpoint
The Latest Rates Endpoint allows users to obtain real-time exchange rate data for various metals, including CLF. Depending on your subscription plan, this endpoint can return data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
{
"success": true,
"timestamp": 1788448047,
"base": "USD",
"date": "2026-09-03",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XNI": 0.142857
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical rates is crucial for analysis and forecasting. The Historical Rates Endpoint allows users to query the Metals-API for historical rates by appending a date in the format YYYY-MM-DD. This endpoint provides valuable insights into price trends over time, making it an indispensable tool for financial analysts.
{
"success": true,
"timestamp": 1788361647,
"base": "USD",
"date": "2026-09-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables users to retrieve real-time bid and ask prices for metals. This information is crucial for traders and investors looking to make informed decisions based on current market conditions.
{
"success": true,
"timestamp": 1788448047,
"base": "USD",
"date": "2026-09-03",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for applications that require currency conversion as part of their functionality.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1788448047,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for analyzing trends and fluctuations over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2026-08-27",
"end_date": "2026-09-03",
"base": "USD",
"rates": {
"2026-08-27": {
"XAU": 0.000485
},
"2026-09-03": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
Using the Fluctuation Endpoint, users can retrieve information about how currencies fluctuate on a day-to-day basis. This feature is essential for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-27",
"end_date": "2026-09-03",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides users with open, high, low, and close prices for a specific time period. This data is crucial for traders who rely on candlestick patterns and other technical analysis tools.
{
"success": true,
"timestamp": 1788448047,
"base": "USD",
"date": "2026-09-03",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for users interested in the London Metal Exchange rates.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint Example
{
"success": true,
"timestamp": 1788448047,
"base": "USD",
"date": "2026-09-03",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815
},
"unit": "per troy ounce"
}
Historical Rates Endpoint Example
{
"success": true,
"timestamp": 1788361647,
"base": "USD",
"date": "2026-09-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
Time-Series Endpoint Example
{
"success": true,
"timeseries": true,
"start_date": "2026-08-27",
"end_date": "2026-09-03",
"base": "USD",
"rates": {
"2026-08-27": {
"XAU": 0.000485
},
"2026-09-03": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
Convert Endpoint Example
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1788448047,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint Example
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-27",
"end_date": "2026-09-03",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
OHLC Price Endpoint Example
{
"success": true,
"timestamp": 1788448047,
"base": "USD",
"date": "2026-09-03",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Conclusion
In conclusion, accessing the Unidad de Fomento (CLF) historical rates through the Metals-API is a straightforward process that can significantly enhance your financial applications. By leveraging the various endpoints provided by the API, developers can obtain real-time and historical data, enabling them to make informed decisions based on accurate information. The Metals-API not only simplifies the process of retrieving financial data but also empowers developers to create innovative applications that can adapt to the ever-changing market landscape.
For further exploration of the API's capabilities, be sure to check out the Metals-API Documentation and the Metals-API Supported Symbols page. With the right tools and knowledge, you can harness the power of real-time metals data to drive your applications forward.