Retrieve Wieland Copper (XCU_WI) Historical Prices using this API
Retrieve Wieland Copper (XCU_WI) Historical Prices using this API
In the ever-evolving landscape of metal markets, the demand for accurate and timely data has never been more critical. For developers and businesses looking to harness the power of real-time metals data, the Metals-API offers a robust solution. This blog post will explore how to retrieve historical prices for Wieland Copper (XCU_WI) using the Metals-API, focusing on the API's capabilities, innovative features, and practical applications.
About Copper (XCU)
Copper, represented by the symbol XCU, is a fundamental metal in various industries, from construction to electronics. Its properties make it an essential component in electrical wiring, plumbing, and even renewable energy technologies. As the world moves towards digital transformation, the metal markets are also undergoing significant changes. The integration of smart technologies and data analytics is reshaping how businesses operate, making real-time data access vital for informed decision-making.
Technological advancements have enabled the development of sophisticated tools that provide insights into market trends, price fluctuations, and historical data. The Metals-API stands at the forefront of this transformation, offering developers the ability to access a wealth of information about copper and other metals.
Metals-API Information
The Metals-API is a powerful JSON API that provides real-time and historical data on metal prices, including copper. It empowers developers to build next-generation applications that can analyze market trends, perform currency conversions, and retrieve historical prices with ease. The API is designed to be user-friendly, with comprehensive documentation available at the Metals-API Documentation.
With the Metals-API, developers can access various endpoints that cater to different needs. Whether you require the latest rates, historical data, or even bid and ask prices, the API has you covered. The ability to retrieve historical prices dating back to 2019 allows for extensive analysis and forecasting, making it an invaluable tool for traders and analysts alike.
Key Features and Endpoints
The Metals-API offers a range of features that enhance its usability and functionality. Here are some of the key endpoints and their applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. For example, a request to this endpoint might return the current price of copper in USD, allowing developers to integrate live pricing into their applications.
- Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019. By appending a specific date to the endpoint, developers can retrieve the price of copper on that date, enabling them to analyze trends over time. This feature is particularly useful for market analysts looking to understand price movements and historical performance.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals. Understanding the bid-ask spread is crucial for traders, as it provides insights into market liquidity and pricing efficiency.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that allows users to convert amounts from one metal to another or to/from USD. This feature is essential for businesses operating in multiple currencies, as it simplifies financial calculations.
- Time-Series Endpoint: This endpoint enables users to query the API for daily historical rates between two specified dates. This functionality is invaluable for conducting in-depth analyses and generating reports on price trends.
- Fluctuation Endpoint: Users can track how metal prices fluctuate between two dates. This endpoint provides insights into price volatility, helping traders make informed decisions based on historical performance.
- Carat Endpoint: For those interested in gold rates, the carat endpoint allows users to retrieve information about gold prices based on carat weight. This feature is particularly useful for jewelers and gold traders.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API for the lowest and highest prices of metals over a specified period. Understanding price extremes can help traders identify potential entry and exit points.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve open, high, low, and close prices for a specific time period. This data is crucial for technical analysis and charting.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008. It is particularly useful for users interested in London Metal Exchange pricing.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API. This ensures secure and controlled access to the data.
- 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 parse and utilize the information.
- Available Endpoints: The API features 14 endpoints, each providing different functionalities. This variety allows developers to tailor their applications to meet specific needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available metals and their symbols. Developers can refer to this list to ensure they are using the correct symbols in their requests.
- News Endpoint: The Metals-API also provides a news endpoint that retrieves the latest articles related to various metals. Staying informed about market news is crucial for making timely trading decisions.
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 metal data 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, including their expected responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1765757028,
"base": "USD",
"date": "2025-12-15",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1765670628,
"base": "USD",
"date": "2025-12-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2025-12-08",
"end_date": "2025-12-15",
"base": "USD",
"rates": {
"2025-12-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
Convert any amount from one metal to another or to/from USD.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1765757028,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-08",
"end_date": "2025-12-15",
"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
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1765757028,
"base": "USD",
"date": "2025-12-15",
"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
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1765757028,
"base": "USD",
"date": "2025-12-15",
"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
The Metals-API is a transformative tool for developers looking to access real-time and historical data on metals like copper. With its extensive range of endpoints and features, it empowers users to build applications that can analyze market trends, perform currency conversions, and retrieve historical prices effortlessly. By leveraging the capabilities of the Metals-API, businesses can stay ahead in the competitive metal markets, making informed decisions based on accurate data.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the comprehensive Metals-API Documentation. To view the list of supported symbols, check out the Metals-API Supported Symbols page. Embrace the future of metal trading with the power of real-time data at your fingertips.