Get Westmetall Lower Copper (XCU_WM_L) Historical Prices using this API
Get Westmetall Lower Copper (XCU_WM_L) Historical Prices using this API
Copper, represented by the symbol XCU, is one of the most widely used metals in various industries, including construction, electronics, and manufacturing. With the rise of digital transformation in metal markets, accessing historical prices for copper has become essential for developers and businesses alike. In this blog post, we will explore how to retrieve historical prices for Copper (XCU) using the Metals-API, a powerful tool that provides real-time and historical data for various metals.
About Copper (XCU)
Copper is a versatile metal known for its excellent electrical conductivity, malleability, and resistance to corrosion. As industries evolve, the demand for copper continues to grow, driven by technological innovations and advancements in smart technology integration. The digital transformation in metal markets has led to the development of sophisticated data analytics tools that provide insights into price trends, market fluctuations, and future possibilities.
With the increasing complexity of the global market, having access to accurate and timely data is crucial. The Metals-API offers a comprehensive solution for developers looking to integrate copper pricing data into their applications. By leveraging this API, developers can build next-generation applications that utilize real-time data analytics to make informed decisions.
API Description
The Metals-API is designed to empower developers by providing a robust platform for accessing metals data. It offers a variety of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data. The API's capabilities are transformative, allowing users to harness the power of real-time metals data for various applications, including financial analysis, market research, and investment strategies.
For detailed information on how to use the API, refer to the Metals-API Documentation. This resource provides comprehensive guidance on the available endpoints, authentication requirements, and response structures.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability for developers:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for copper and other metals. Depending on your subscription plan, the API updates this data 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 copper dating back to 2019. By appending a specific date to the API request, developers can retrieve past pricing data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for copper. Understanding the bid-ask spread is crucial for traders and investors looking to make informed decisions in the market.
- Convert Endpoint: The Metals-API includes a currency conversion feature that enables users to convert amounts between different metals or to/from USD. This is particularly useful for applications that require multi-metal pricing capabilities.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two chosen dates. This feature is ideal for analyzing price movements over specific periods, helping users identify trends and patterns.
- Fluctuation Endpoint: Users can track how copper prices fluctuate on a day-to-day basis. This endpoint provides insights into market volatility, which is essential for risk management and investment strategies.
- Carat Endpoint: Although primarily focused on gold, this endpoint allows users to retrieve gold rates by carat, providing additional context for precious metal pricing.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of copper over a specified period, offering insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed pricing data, including the opening, highest, lowest, and closing prices for copper. This information is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: For users interested in LME symbols, this endpoint provides historical rates dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate access. This ensures secure and controlled access to the API's features.
- API Response: The Metals-API delivers exchange rates relative to USD by default. All data is returned in a structured JSON format, making it easy for developers to integrate into their applications.
- Available Endpoints: The API offers a total of 14 endpoints, each providing different functionalities tailored to meet the diverse needs of users.
- 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 trends and developments.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including copper (XCU), gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
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
{
"success": true,
"timestamp": 1764907309,
"base": "USD",
"date": "2025-12-05",
"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 the current exchange rates for various metals, including copper (XCU), which is priced at 0.294118 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1764820909,
"base": "USD",
"date": "2025-12-04",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical exchange rates for a specific date, allowing users to analyze past pricing trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-11-28",
"end_date": "2025-12-05",
"base": "USD",
"rates": {
"2025-11-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-05": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides daily historical rates for a specified time period, enabling users to track price movements over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1764907309,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates how to convert an amount from USD to gold (XAU), providing the conversion rate and the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-28",
"end_date": "2025-12-05",
"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 response provides insights into how copper prices fluctuate over a specified period, which is essential for understanding market dynamics.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1764907309,
"base": "USD",
"date": "2025-12-05",
"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"
}
This endpoint provides detailed pricing data, which is crucial for traders looking to analyze market trends and make informed decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1764907309,
"base": "USD",
"date": "2025-12-05",
"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 copper, which is essential for traders and investors looking to execute trades effectively.
Conclusion
Accessing historical prices for Copper (XCU) using the Metals-API is a straightforward process that opens up a world of possibilities for developers and businesses. With its extensive range of endpoints and capabilities, the Metals-API empowers users to build applications that leverage real-time and historical metals data for informed decision-making.
By understanding the various features of the Metals-API, including the latest rates, historical rates, bid/ask prices, and fluctuation tracking, developers can create innovative solutions that meet the needs of the modern market. For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
In a rapidly changing market, having access to accurate and timely data is crucial. The Metals-API not only provides this data but also equips developers with the tools needed to analyze and interpret it effectively. As we look to the future, the integration of smart technology and data analytics will continue to shape the landscape of metal markets, making APIs like Metals-API indispensable for those looking to stay ahead.