Collect LME Copper (LME-XCU) Historical Prices using this API

Introduction
XCU. With the rise of digital transformation, technological innovation, and data analytics, the demand for real-time and historical data has never been higher. This blog post will delve into how to collect LME Copper (LME-XCU) historical prices using the Metals-API, a powerful tool that empowers developers to build next-generation applications with real-time metals data.
Metals-API Information
About Copper (XCU)
Technological Innovation and Advancement
Data Analytics and Insights
Time-Series Endpoint enables users to query daily historical rates between two dates, facilitating in-depth analysis and reporting.
Smart Technology Integration
Latest Rates Endpoint provides real-time exchange rate data updated every few minutes, ensuring that users have access to the most current information available.
Future Trends and Possibilities
API Description
Key Features and Endpoints
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data for Copper and other metals, updated every 60 minutes or 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 Copper dating back to 2008. By appending a specific date to the API call, developers can retrieve historical pricing data, enabling them to analyze trends and make informed decisions.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for Copper, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a dedicated endpoint for currency conversion, allowing users to convert amounts from one metal to another or to/from USD. This feature is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: This endpoint enables users to query daily historical rates between two specified dates, facilitating comprehensive analysis of price movements over time.
- Fluctuation Endpoint: Users can track rate fluctuations between two dates, gaining insights into market volatility and price trends.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed OHLC data for Copper, allowing users to analyze price movements within a specific time period.
- Historical LME Endpoint: Access historical rates for LME symbols, including Copper, dating back to 2008. This endpoint is crucial for users looking to analyze long-term trends in the LME market.
- API Key: Each user is assigned a unique API key, which must be included in API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API offers a comprehensive list of endpoints, each designed to provide specific functionalities related to metals pricing and conversion.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available metal symbols, 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 developments.
API Endpoint Examples and Responses
Latest Rates Endpoint
Latest Rates Endpoint provides real-time exchange rates for all available metals, including Copper. Here’s an example response:
{
"success": true,
"timestamp": 1755061237,
"base": "USD",
"date": "2025-08-13",
"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"
}
rates object contains the current price of Copper (XCU) along with other metals, expressed in troy ounces.
Historical Rates Endpoint
Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. Here’s an example response:
{
"success": true,
"timestamp": 1754974837,
"base": "USD",
"date": "2025-08-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
Time-Series Endpoint enables users to retrieve exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-08-06",
"end_date": "2025-08-13",
"base": "USD",
"rates": {
"2025-08-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-08-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-08-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1755061237,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Fluctuation Endpoint allows users to track rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-06",
"end_date": "2025-08-13",
"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) Price Endpoint
Open/High/Low/Close (OHLC) Price Endpoint provides detailed OHLC data for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1755061237,
"base": "USD",
"date": "2025-08-13",
"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
Bid/Ask Endpoint provides current bid and ask prices for metals. Here’s an example response:
{
"success": true,
"timestamp": 1755061237,
"base": "USD",
"date": "2025-08-13",
"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
Metals-API Documentation provides comprehensive guidance on utilizing the API's features, including real-time rates, historical data, and conversion capabilities. By leveraging the power of data analytics and smart technology integration, users can gain valuable insights into market trends and make informed decisions.
Metals-API Supported Symbols page. Embrace the future of metal trading with the Metals-API and unlock the potential of historical price analysis.