Obtain Wieland Copper (XCU_WI) Historical Prices via this API
Introduction
In the ever-evolving landscape of financial markets, obtaining accurate and timely historical prices for metals like Gold (XAU) is crucial for traders, analysts, and developers alike. The Metals-API offers a robust solution for accessing historical price data, enabling users to make informed decisions based on comprehensive market insights. This blog post will delve into the capabilities of the Metals-API, focusing on how to obtain historical prices for Gold and other metals, while exploring the transformative potential of real-time metals data.
Understanding Copper (XCU) and Its Market Dynamics
Copper, represented by the symbol XCU, is a fundamental metal in various industries, from construction to electronics. The digital transformation in metal markets has led to significant advancements in how data is collected, analyzed, and utilized. With the integration of smart technologies and data analytics, stakeholders can gain deeper insights into market trends and price fluctuations.
Technological innovations have revolutionized the way traders and developers interact with market data. The Metals-API stands at the forefront of this transformation, providing a seamless interface for accessing real-time and historical data. By leveraging this API, developers can build next-generation applications that harness the power of data analytics to drive decision-making processes.
API Description
The Metals-API is a powerful tool that empowers developers to access a wealth of information about metal prices, including real-time rates, historical data, and conversion capabilities. This API is designed to facilitate the integration of metals data into various applications, enabling users to create sophisticated financial tools and analytics platforms.
With the Metals-API, developers can access a variety of endpoints that cater to different needs. For instance, the Latest Rates Endpoint provides real-time exchange rate data, while the Historical Rates Endpoint allows users to query historical prices dating back to 2019. This flexibility makes the Metals-API an invaluable resource for anyone looking to analyze market trends or build applications that require up-to-date metals data.
Key Features of the Metals-API
The Metals-API boasts a range of features that enhance its usability and functionality. Here are some of the key endpoints and their applications:
- 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 is essential for traders who need the most current pricing information.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, developers can retrieve historical price data for analysis.
- Bid and Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders dealing with 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 currencies 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 is essential for jewelers and traders in the luxury market.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date range, which is critical for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, allowing traders to analyze price movements effectively.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, which is vital for users interested in long-term trends.
- API Key: Users must pass their unique API key into the API base URL's access_key parameter to authenticate requests.
- API Response: Exchange rates delivered by the Metals-API are relative to USD by default, and all data is returned in a structured JSON format.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring users have access to the most up-to-date information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints, showcasing their responses and how to interpret the data.
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rates for all available metals. Here’s an example response:
{
"success": true,
"timestamp": 1775175361,
"base": "USD",
"date": "2026-04-03",
"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"
}
In this response, the success field indicates whether the request was successful. The timestamp provides the time of the data retrieval, while the base indicates the currency against which the rates are quoted. The rates object contains the exchange rates for various metals, with each metal symbol as a key and its corresponding rate as the value.
Historical Rates Endpoint
Accessing historical exchange rates is essential for trend analysis. Here’s an example response from the Historical Rates Endpoint:
{
"success": true,
"timestamp": 1775088961,
"base": "USD",
"date": "2026-04-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates for a specific date. The structure is similar to the Latest Rates Endpoint, with the date field indicating the specific day for which the rates are provided.
Time-Series Endpoint
The Time-Series Endpoint allows users to retrieve exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-03-27",
"end_date": "2026-04-03",
"base": "USD",
"rates": {
"2026-03-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-29": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates between the specified start and end dates. Each date serves as a key in the rates object, with the corresponding rates for that date as the value.
Convert Endpoint
The 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": 1775175361,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates a successful conversion from USD to Gold (XAU). The query object shows the original amount and the conversion parameters, while the result field provides the converted amount in troy ounces.
Fluctuation Endpoint
The Fluctuation Endpoint tracks rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-27",
"end_date": "2026-04-03",
"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 detailed information about the fluctuations in rates for the specified metals over the defined period. The change and change_pct fields indicate the absolute and percentage changes in rates, respectively.
OHLC (Open/High/Low/Close) Price Endpoint
The OHLC Price Endpoint provides open, high, low, and close prices for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1775175361,
"base": "USD",
"date": "2026-04-03",
"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 response provides a comprehensive overview of the price movements for the specified date, allowing traders to analyze market behavior effectively.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here’s an example response:
{
"success": true,
"timestamp": 1775175361,
"base": "USD",
"date": "2026-04-03",
"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, along with the spread for each metal. Understanding the bid-ask spread is crucial for traders as it indicates market liquidity.
Conclusion
The Metals-API is a powerful resource for developers seeking to access historical prices and real-time data for metals like Gold (XAU) and Copper (XCU). By leveraging the various endpoints available, users can gain valuable insights into market trends, price fluctuations, and conversion capabilities. The integration of this API into applications can significantly enhance decision-making processes and provide a competitive edge in the financial markets.
For more detailed information on how to implement the Metals-API in your projects, refer to the Metals-API Documentation. Additionally, exploring the Metals-API Supported Symbols page will help you understand the full range of available data. By harnessing the capabilities of the Metals-API, developers can create innovative applications that drive the future of metal trading and analysis.