Retrieve Copper - LME 3-month (XCU3M) Historical Prices with this API

Retrieve Copper - LME 3-month (XCU3M) Historical Prices with this API
In today's fast-paced digital landscape, the demand for real-time data is more critical than ever, especially in the metal markets. The ability to retrieve historical prices for metals like Copper (XCU) can empower developers and businesses to make informed decisions based on accurate and timely information. This blog post will explore how to access historical prices for Copper using the Metals-API, a powerful tool that offers a comprehensive suite of features for managing metal price 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 a conductor of electricity, Copper plays a vital role in the digital transformation of metal markets. The integration of smart technology and data analytics has revolutionized how businesses interact with metal prices, enabling them to leverage insights for strategic planning and operational efficiency.
Technological advancements have paved the way for innovative applications in the metal sector. With the rise of data analytics, companies can now analyze historical price trends, forecast future movements, and optimize their supply chain strategies. The Metals-API provides developers with the tools necessary to harness this data, allowing for the creation of next-generation applications that can respond to market changes in real-time.
Metals-API Information
The Metals-API is designed to provide developers with easy access to real-time and historical metal prices. This API is not just a data source; it represents a transformative potential for businesses looking to integrate metal price data into their applications. By utilizing the Metals-API, developers can build applications that offer insights into market trends, price fluctuations, and historical data analysis.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. 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 applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019. By appending a specific date to the API request, developers can retrieve historical data for Copper and other metals, enabling comprehensive analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time Bid and Ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, which can convert any amount from one metal to another or to/from USD. This feature 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, making it easier to analyze trends over specific periods.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and helping businesses make informed decisions.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides users with the open, high, low, and close prices for a specific time period, essential for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint allows users to access historical rates for LME symbols, dating back to 2008, which is crucial for businesses that rely on LME pricing.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency and ease of use across different applications.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, allowing developers to stay informed about the latest offerings.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them updated on market developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Here are some examples of API responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1747292485,
"base": "USD",
"date": "2025-05-15",
"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"
}
This response indicates that the latest price for Copper (XCU) is 0.294118 per troy ounce, providing developers with immediate access to current market data.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1747206085,
"base": "USD",
"date": "2025-05-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates for a specific date. Developers can use this data to analyze price movements and trends over time.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-08",
"end_date": "2025-05-15",
"base": "USD",
"rates": {
"2025-05-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates for Copper over a specified period, allowing for detailed trend analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1747292485,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how to convert an amount from USD to Copper, providing developers with the necessary tools for currency conversion within their applications.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-08",
"end_date": "2025-05-15",
"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"
}
This endpoint allows users to track fluctuations in metal prices, providing insights into market volatility and helping businesses make informed decisions.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1747292485,
"base": "USD",
"date": "2025-05-15",
"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"
}
The OHLC endpoint provides critical data for traders and analysts, allowing them to assess market performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1747292485,
"base": "USD",
"date": "2025-05-15",
"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"
}
This response provides the current bid and ask prices for metals, essential for traders looking to execute transactions at optimal prices.
Conclusion
In conclusion, the Metals-API offers a robust solution for developers seeking to access historical prices for Copper and other metals. With its comprehensive suite of features, including real-time rates, historical data, and advanced analytical tools, the Metals-API empowers businesses to make data-driven decisions in an increasingly competitive market. By leveraging the capabilities of this API, developers can build innovative applications that harness the power of real-time metals data.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metal symbols. The Metals-API Website is your gateway to unlocking the potential of metal price data in your applications.