Get Advanced Copper Index (XCU_ACI) prices through web requests using this API
Introduction
In today's rapidly evolving financial landscape, the demand for real-time data on commodities such as copper is paramount. The Advanced Copper Index (XCU_ACI) serves as a crucial indicator for traders and investors looking to navigate the complexities of the metals market. By leveraging the Metals-API, developers can access comprehensive data on copper prices and other metals, enabling them to build sophisticated applications that respond to market dynamics in real-time.
About Copper (XCU)
Copper, represented by the symbol XCU, is a fundamental metal in various industries, including construction, electronics, and renewable energy. As the world shifts towards digital transformation, the copper market is experiencing significant changes driven by technological innovation and advancements in data analytics. The integration of smart technologies is paving the way for enhanced insights into market trends, allowing stakeholders to make informed decisions based on real-time data.
With the rise of data analytics, the ability to track copper prices and fluctuations has never been more accessible. The Metals-API Documentation provides developers with the tools necessary to harness this data, enabling them to create applications that can analyze historical trends, predict future movements, and optimize trading strategies.
API Description
The Metals-API is a powerful tool that offers developers access to real-time and historical data on various metals, including copper. This API empowers developers to build next-generation applications that can leverage real-time metals data for trading, analysis, and reporting. The API's capabilities extend beyond mere data retrieval; it allows for comprehensive analysis and integration into existing systems.
One of the standout features of the Metals-API is its ability to provide real-time exchange rate data, updated at intervals depending on the user's subscription plan. This ensures that developers can access the most current market information, which is critical for making timely trading decisions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs within the metals market. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for copper and other metals. Depending on your subscription plan, the API can return updates every 60 minutes or even every 10 minutes, ensuring you have the latest information at your fingertips.
- Historical Rates Endpoint: Access historical rates for copper dating back to 2019. This feature allows developers to analyze trends over time by appending a specific date to their queries.
- Bid and Ask Endpoint: This powerful feature retrieves real-time bid and ask prices for copper, enabling traders to make informed decisions based on current market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts between different metals or to/from USD, facilitating seamless trading operations.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, providing insights into price movements over time.
- Fluctuation Endpoint: Track how copper prices fluctuate on a day-to-day basis, helping traders understand market volatility and make strategic decisions.
- Carat Endpoint: Retrieve information about gold rates by carat, which can be useful for those involved in the jewelry market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for copper over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides essential data for traders, including the open, high, low, and close prices for copper, which are crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Each user is assigned a unique API key, which is required to access the API's features securely.
- API Response: The Metals-API delivers exchange rates relative to USD, ensuring consistency in data presentation.
- Available Endpoints: With 14 different API endpoints, developers have a wide range of functionalities at their disposal.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
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's response structure is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1780790902,
"base": "USD",
"date": "2026-06-07",
"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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1780704502,
"base": "USD",
"date": "2026-06-06",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-05-31",
"end_date": "2026-06-07",
"base": "USD",
"rates": {
"2026-05-31": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-07": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1780790902,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-31",
"end_date": "2026-06-07",
"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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1780790902,
"base": "USD",
"date": "2026-06-07",
"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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1780790902,
"base": "USD",
"date": "2026-06-07",
"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"
}
Conclusion
The Advanced Copper Index (XCU_ACI) is an essential tool for traders and investors looking to navigate the complexities of the metals market. By utilizing the Metals-API, developers can access a wealth of real-time and historical data, enabling them to build sophisticated applications that respond to market dynamics. The API's extensive features, including the latest rates, historical data, and fluctuation tracking, provide invaluable insights that can enhance trading strategies and decision-making processes.
As the metals market continues to evolve, the integration of advanced technologies and data analytics will play a crucial role in shaping the future of trading. By leveraging the capabilities of the Metals-API, developers can stay ahead of the curve and create innovative solutions that meet the demands of a rapidly changing landscape. For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available data points.