Access LME Copper (LME-XCU) Historical Price Data using this API

Access LME Copper (LME-XCU) Historical Price Data using this API
In today's fast-paced digital landscape, the demand for real-time data and analytics is transforming the metal markets, particularly for commodities like copper. The LME Copper (LME-XCU) is a critical metal in various industries, and accessing its historical price data is essential for developers and analysts alike. This blog post will explore how to obtain historical prices using the Metals-API, a powerful tool that provides comprehensive data on metal prices, including copper.
About Copper (XCU)
Copper, represented by the symbol XCU, is one of the most widely used metals in the world. Its applications range from electrical wiring to plumbing and construction. As industries evolve, the digital transformation in metal markets is becoming increasingly evident. Technological innovations are reshaping how data is collected, analyzed, and utilized, allowing for smarter decision-making processes.
Data analytics and insights play a crucial role in understanding market trends and price fluctuations. With the integration of smart technology, stakeholders can leverage real-time data to optimize their operations and strategies. The future of copper trading is poised for significant advancements, driven by the need for transparency, efficiency, and accuracy in pricing.
Metals-API Information
The Metals-API is a robust platform that provides developers with access to real-time and historical metal prices, including copper. This API empowers users to build next-generation applications that require precise and timely data. By utilizing the Metals-API, developers can create innovative solutions that cater to various industries, from finance to manufacturing.
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's latest endpoint can return data updated every 60 minutes, every 10 minutes, or even more frequently. This capability ensures that users have access to the most current market information, which is vital for making informed decisions.
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: This endpoint provides real-time exchange rates for all available metals, including copper. The data is updated regularly based on your subscription plan.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical price data for copper and other metals.
- Bid And Ask Endpoint: This 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, enabling users to convert amounts from one metal to another or to/from USD.
- 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 time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This endpoint retrieves information about gold rates by carat, which can be useful for jewelers and investors.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specific date, helping them understand market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: This feature allows users to access historical rates for LME symbols, dating back to 2008, providing a long-term view of price trends.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The API offers a comprehensive list of endpoints, each providing different functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals, ensuring users can easily find the symbols they need.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint.
- News Endpoint: This feature allows users to access the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of how to use various endpoints effectively:
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following request:
{
"success": true,
"timestamp": 1750737700,
"base": "USD",
"date": "2025-06-24",
"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
To access historical exchange rates for any date since 1999, you can use the following request:
{
"success": true,
"timestamp": 1750651300,
"base": "USD",
"date": "2025-06-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
To get exchange rates for a specific time period, you can use the following request:
{
"success": true,
"timeseries": true,
"start_date": "2025-06-17",
"end_date": "2025-06-24",
"base": "USD",
"rates": {
"2025-06-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
To convert any amount from one metal to another or to/from USD, you can use the following request:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1750737700,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
To track rate fluctuations between two dates, you can use the following request:
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-17",
"end_date": "2025-06-24",
"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
To get OHLC data for a specific time period, you can use the following request:
{
"success": true,
"timestamp": 1750737700,
"base": "USD",
"date": "2025-06-24",
"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
To get current bid and ask prices for metals, you can use the following request:
{
"success": true,
"timestamp": 1750737700,
"base": "USD",
"date": "2025-06-24",
"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
Accessing historical price data for LME Copper (LME-XCU) through the Metals-API is a powerful way for developers to harness the potential of real-time metals data. With a variety of endpoints available, including the latest rates, historical rates, and fluctuation tracking, developers can create applications that provide valuable insights into market trends and price dynamics.
As the metal markets continue to evolve, the integration of smart technology and data analytics will play a pivotal role in shaping the future of trading and investment strategies. By leveraging the capabilities of the Metals-API, developers can build innovative solutions that meet the demands of a rapidly changing landscape.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals and their specifications. Embrace the future of metal trading with the power of real-time data at your fingertips.