Access Copper China Spot (XCU-CH) Historical Prices using this API
Access Copper China Spot (XCU-CH) Historical Prices using this API
In the rapidly evolving landscape of metal markets, the ability to access real-time and historical data is paramount for developers and analysts alike. The Metals-API provides a robust solution for accessing Copper (XCU) historical prices, enabling users to harness the power of data analytics and insights. This blog post will delve into the capabilities of the Metals-API, focusing on how to effectively retrieve historical prices for Copper and explore the broader implications of digital transformation in the metal markets.
About Copper (XCU)
Copper, represented by the symbol XCU, is a crucial metal in various industries, including construction, electronics, and renewable energy. As the world shifts towards more sustainable practices, the demand for copper is expected to rise, driven by its essential role in electric vehicles and renewable energy technologies. The integration of smart technology and data analytics in the metal markets is transforming how stakeholders interact with pricing data, making it easier to make informed decisions.
Technological advancements have paved the way for innovative applications in the metal industry. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to create next-generation applications that leverage real-time metals data. By utilizing the Metals-API, developers can access a wealth of information, including historical prices, fluctuations, and conversion rates, all of which are essential for market analysis and forecasting.
API Description
The Metals-API is a powerful tool that provides access to real-time and historical metal prices, including Copper (XCU). With its user-friendly interface and comprehensive documentation, developers can easily integrate this API into their applications. The API empowers users to build sophisticated tools for tracking market trends, analyzing price movements, and making data-driven decisions.
For more information, visit the Metals-API Website or explore the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for Copper and other metals, updated every 60 minutes or more frequently depending on your subscription plan.
- 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.
- Bid And Ask Endpoint: This feature allows users to obtain real-time bid and ask prices for Copper, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion feature, enabling users to convert amounts between different metals or to/from USD, facilitating easier financial calculations.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze price trends over time.
- Fluctuation Endpoint: Users can track how Copper prices fluctuate over a specified period, providing insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: This feature provides detailed pricing information, including the opening, highest, lowest, and closing prices for Copper over a specified period.
- Historical LME Endpoint: Access historical rates for LME symbols, including Copper, dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is provided with a unique API key, which is essential for authenticating requests and accessing the API's features.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency and ease of use for developers.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, including Copper, 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.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of various endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1783988107,
"base": "USD",
"date": "2026-07-14",
"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": 1783901707,
"base": "USD",
"date": "2026-07-13",
"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 Copper and other metals for a specific date, allowing for detailed analysis of price movements over time.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-07-07",
"end_date": "2026-07-14",
"base": "USD",
"rates": {
"2026-07-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-14": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint response provides daily rates for Copper over a specified period, enabling developers to visualize trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1783988107,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how to convert a specified amount from one metal to another, showcasing the API's versatility in handling different currencies.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-07",
"end_date": "2026-07-14",
"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"
}
The fluctuation endpoint provides insights into how prices change over time, which is critical for traders and analysts looking to understand market dynamics.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1783988107,
"base": "USD",
"date": "2026-07-14",
"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 a comprehensive view of price movements for Copper, including the opening, highest, lowest, and closing prices, which are essential for technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1783988107,
"base": "USD",
"date": "2026-07-14",
"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, essential for traders looking to execute buy and sell orders 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 analysts. By leveraging the various endpoints offered by the API, users can gain valuable insights into market trends, price fluctuations, and conversion rates. The integration of smart technology and data analytics in the metal markets is transforming how stakeholders interact with pricing data, making it easier to make informed decisions.
For developers looking to implement the Metals-API, the comprehensive documentation and support resources available on the Metals-API Documentation page provide all the necessary information to get started. Additionally, the Metals-API Supported Symbols page offers a complete list of available metal symbols, ensuring users have access to the latest information.
As the demand for Copper continues to rise, the ability to access accurate and timely data will be crucial for making informed decisions in the metal markets. Embrace the power of the Metals-API and unlock the potential of real-time metals data for your applications.