Get Unidad de Fomento (CLF) Historical Prices using this API
Get Unidad de Fomento (CLF) Historical Prices using this API
In today's rapidly evolving financial landscape, the ability to access real-time and historical data is crucial for developers and businesses alike. One such valuable resource is the Metals-API, which provides comprehensive data on various metals, including the Unidad de Fomento (CLF). This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for CLF and other metals, while also exploring the broader implications of digital transformation in metal markets.
About Nickel (NI)
Nickel, represented by the symbol NI, is a key metal in various industries, particularly in the production of stainless steel and batteries. As the world shifts towards more sustainable technologies, the demand for nickel is expected to rise significantly. This demand is driven by the increasing use of nickel in electric vehicle batteries and renewable energy technologies. The digital transformation in metal markets has opened new avenues for data analytics and insights, enabling businesses to make informed decisions based on real-time data.
Technological innovation and advancement have played a pivotal role in the evolution of the metals market. With the integration of smart technology, stakeholders can now leverage data analytics to forecast trends and optimize their operations. The Metals-API exemplifies this transformation, providing developers with the tools needed to build next-generation applications that can analyze and utilize metal price data effectively.
API Description
The Metals-API is a powerful tool that offers real-time and historical data for various metals, including gold, silver, platinum, and nickel. This API empowers developers to create applications that can access and analyze metal prices, facilitating better decision-making processes in trading and investment. With its user-friendly interface and comprehensive documentation, the Metals-API stands out as a leading solution for accessing metal market data.
For developers looking to integrate this API into their applications, the Metals-API Documentation provides detailed guidance on how to utilize its features effectively. The API supports a wide range of functionalities, including retrieving the latest rates, historical prices, and even fluctuations over time.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Each endpoint is designed to provide specific functionalities that can be leveraged in various applications. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for traders who need up-to-the-minute information to make informed decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a date to the API request, developers can retrieve historical price data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market conditions and helping traders make strategic decisions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one metal to another or to/from USD. This functionality is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and helping traders manage risk.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API to get the lowest and highest prices for a specified date range, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can obtain open, high, low, and close prices for a specific date, which is crucial for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 14 endpoints, each offering different functionalities to meet diverse user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market trends and developments.
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 understand the available data points and how to utilize them effectively in their applications.
API Endpoint Examples and Responses
Understanding how to interpret API responses is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1770250459,
"base": "USD",
"date": "2026-02-05",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744,
"XCU": 0.294118,
"XAL": 0.434783,
"XNI": 0.142857,
"XZN": 0.344828
},
"unit": "per troy ounce"
}
The above response indicates that the API successfully retrieved the latest rates for various metals, with the base currency being USD. Each rate is expressed in terms of troy ounces, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1770164059,
"base": "USD",
"date": "2026-02-04",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for a specific date, allowing users to analyze past market conditions. Each rate is again provided in troy ounces, maintaining consistency across the API.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-01-29",
"end_date": "2026-02-05",
"base": "USD",
"rates": {
"2026-01-29": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-31": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-05": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates for a specified period, enabling users to track price movements and identify trends over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1770250459,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates the conversion of an amount from USD to gold (XAU), providing the user with the equivalent value in troy ounces. This feature is particularly useful for businesses that deal with multiple currencies and need to perform conversions regularly.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-29",
"end_date": "2026-02-05",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
},
"XAG": {
"start_rate": 0.03825,
"end_rate": 0.03815,
"change": -0.0001,
"change_pct": -0.26
},
"XPT": {
"start_rate": 0.000915,
"end_rate": 0.000912,
"change": -3.0e-6,
"change_pct": -0.33
}
},
"unit": "per troy ounce"
}
The fluctuation response provides insights into how metal prices have changed over a specified period, highlighting both the absolute change and the percentage change. This information is crucial for traders looking to gauge market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1770250459,
"base": "USD",
"date": "2026-02-05",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
},
"XAG": {
"open": 0.03825,
"high": 0.0383,
"low": 0.0381,
"close": 0.03815
},
"XPT": {
"open": 0.000915,
"high": 0.000918,
"low": 0.00091,
"close": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint provides open, high, low, and close prices for a specific date, which is essential for technical analysis and trading strategies.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1770250459,
"base": "USD",
"date": "2026-02-05",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
},
"XPT": {
"bid": 0.000911,
"ask": 0.000913,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
The bid/ask response provides current bid and ask prices for metals, along with the spread, which is crucial for traders looking to execute orders at the best possible prices.
Conclusion
The Metals-API is an invaluable resource for developers and businesses looking to access real-time and historical data on metals, including the Unidad de Fomento (CLF). By leveraging the various endpoints offered by the API, users can gain insights into market trends, perform conversions, and analyze price fluctuations effectively. The integration of smart technology and data analytics in the metals market is transforming how stakeholders interact with metal prices, paving the way for more informed decision-making.
For those interested in exploring the capabilities of the Metals-API further, I encourage you to visit the Metals-API Documentation for detailed guidance on implementation. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, ensuring you have all the information needed to utilize this powerful API effectively.
As the demand for metals continues to rise, particularly in the context of sustainable technologies, the importance of having access to accurate and timely data cannot be overstated. The Metals-API stands at the forefront of this transformation, empowering developers to build innovative applications that harness the power of real-time metals data.