How to Get Advanced Copper Index (XCU_ACI) Historical Prices via this API
How to Get Advanced Copper Index (XCU_ACI) Historical Prices via this API
In the ever-evolving landscape of the metals market, the demand for accurate and timely data has never been greater. The Advanced Copper Index (XCU_ACI) is a crucial metric for traders, analysts, and developers looking to gain insights into copper pricing trends. In this blog post, we will explore how to obtain historical prices for XCU_ACI using the Metals-API. We will delve into the features of the API, its capabilities, and how it can empower developers to create innovative applications that leverage real-time metals data.
About Copper (XCU)
Copper, represented by the symbol XCU, is one of the most widely used metals in various industries, including construction, electronics, and renewable energy. As the world transitions towards digital transformation, the copper market is experiencing significant changes driven by technological innovation and advancements. The integration of smart technologies and data analytics is reshaping how traders and investors approach copper trading.
With the rise of data-driven decision-making, the ability to access historical prices and trends is paramount. The Metals-API provides a robust solution for accessing historical copper prices, enabling users to analyze market trends, forecast future movements, and make informed trading decisions.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data for various metals, including copper. This API empowers developers to build next-generation applications that can analyze and visualize metals data effectively. With its user-friendly interface and comprehensive documentation, the Metals-API simplifies the process of integrating metals data into applications.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API can return the latest rates updated every 60 minutes, every 10 minutes, or even more frequently. This flexibility allows developers to tailor their applications to meet specific needs.
Moreover, the Metals-API offers a wide range of endpoints that cater to various use cases. For instance, the Historical Rates Endpoint allows users to access historical exchange rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, users can retrieve historical data for copper prices, enabling them to conduct thorough analyses.
Key Features and Endpoints
The Metals-API boasts an array of endpoints, each designed to provide unique functionalities. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for all available metals, including copper. Users can access the latest rates based on their subscription plan, ensuring they have the most up-to-date information.
- Historical Rates Endpoint: Users can query the Metals-API for historical rates by appending a date to the endpoint. This feature is invaluable for traders looking to analyze past performance and trends.
- Bid And Ask Endpoint: This endpoint provides real-time bid and ask prices for metals, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that enables users to convert amounts from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: This feature allows users to query the API for daily historical rates between two dates of their choice, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: Users can track how copper prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed information about the open, high, low, and close prices for copper over a specified period, essential for technical analysis.
- Historical LME Endpoint: This endpoint grants access to historical rates for LME symbols dating back to 2008, offering a comprehensive view of copper price trends.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, let's explore some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1774657191,
"base": "USD",
"date": "2026-03-28",
"rates": {
"XCU": 0.294118
},
"unit": "per troy ounce"
}
This response indicates that the latest price for copper (XCU) is 0.294118 USD per troy ounce, providing immediate insight into current market conditions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1774570791,
"base": "USD",
"date": "2026-03-27",
"rates": {
"XCU": 0.292000
},
"unit": "per troy ounce"
}
In this example, the historical rate for copper on March 27, 2026, was 0.292000 USD per troy ounce, allowing users to analyze price movements over time.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-21",
"end_date": "2026-03-28",
"base": "USD",
"rates": {
"2026-03-21": {
"XCU": 0.290000
},
"2026-03-28": {
"XCU": 0.294118
}
},
"unit": "per troy ounce"
}
This time-series response shows the price of copper over a week, highlighting the upward trend from 0.290000 to 0.294118 USD per troy ounce.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XCU",
"amount": 1000
},
"info": {
"timestamp": 1774657191,
"rate": 0.294118
},
"result": 3.404,
"unit": "troy ounces"
}
This conversion example shows that 1000 USD is equivalent to approximately 3.404 troy ounces of copper at the current rate.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-21",
"end_date": "2026-03-28",
"base": "USD",
"rates": {
"XCU": {
"start_rate": 0.290000,
"end_rate": 0.294118,
"change": 0.004118,
"change_pct": 1.42
}
},
"unit": "per troy ounce"
}
This fluctuation response indicates that the price of copper increased by 0.004118 USD, or 1.42%, over the specified period, providing valuable insights into market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1774657191,
"base": "USD",
"date": "2026-03-28",
"rates": {
"XCU": {
"open": 0.290000,
"high": 0.295000,
"low": 0.289000,
"close": 0.294118
}
},
"unit": "per troy ounce"
}
This OHLC response provides a comprehensive view of copper's price movements throughout the day, essential for traders conducting technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1774657191,
"base": "USD",
"date": "2026-03-28",
"rates": {
"XCU": {
"bid": 0.293000,
"ask": 0.295000,
"spread": 0.002000
}
},
"unit": "per troy ounce"
}
This bid/ask response shows the current bid price for copper at 0.293000 USD and the ask price at 0.295000 USD, providing traders with critical information for executing trades.
Conclusion
In conclusion, the Metals-API offers a comprehensive solution for accessing historical prices and real-time data for copper (XCU) and other metals. By leveraging the various endpoints, developers can create powerful applications that analyze market trends, forecast future movements, and make informed trading decisions. The ability to access detailed historical data, real-time rates, and fluctuations empowers users to stay ahead in the dynamic metals market.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the Metals-API Supported Symbols to discover the full range of available metals. With the right tools and data, you can navigate the complexities of the metals market with confidence.