Get Copper (XCU) Historical Prices using this API

Get Copper (XCU) Historical Prices using this API
Metals-API. This API provides real-time and historical data, empowering developers to create innovative applications that can analyze market trends and make informed decisions.
Metals-API Information
About Copper (XCU)
API Description
Metals-API is designed to provide developers with the tools they need to build next-generation applications. By offering real-time and historical data on various metals, including Copper (XCU), the API empowers users to create solutions that can analyze market trends, track price fluctuations, and convert currencies. The API's capabilities extend beyond simple data retrieval; it allows for deep integration into applications that require precise and timely information.
Key Features and Endpoints
- 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 or every 10 minutes, ensuring you have the most current information at your fingertips.
- Historical Rates Endpoint: Access historical rates for Copper dating back to 2019. By appending a specific date to your request, you can retrieve the price of Copper on that date, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for Copper. Understanding these prices is crucial for traders and investors looking to make informed decisions.
- Convert Endpoint: The conversion endpoint allows you to convert any amount from one metal to another or to/from USD. This is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is invaluable for analyzing price movements over specific periods.
- Fluctuation Endpoint: Track how Copper prices fluctuate on a day-to-day basis. This endpoint provides insights into market volatility, helping businesses and investors strategize accordingly.
- Open/High/Low/Close (OHLC) Price Endpoint: Retrieve open, high, low, and close prices for Copper over a specified time period. This data is essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols, including Copper, dating back to 2008. This endpoint is particularly useful for those involved in trading on the London Metal Exchange.
- API Key: Your unique API key is required to access the Metals-API. This key is passed into the API base URL's access_key parameter, ensuring secure access to the data.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format, making it easy to integrate into applications.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metals supported by the API, allowing developers to stay informed about the latest offerings.
- News Endpoint: Retrieve the latest news articles related to various metals, including Copper. Staying updated on market news can provide valuable context for price movements.
List of Symbols
Metals-API Supported Symbols page. This resource is invaluable for developers looking to understand the full scope of data available through the API.
API Endpoint Examples and Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1746666346,
"base": "USD",
"date": "2025-05-08",
"rates": {
"XCU": 0.294118
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1746579946,
"base": "USD",
"date": "2025-05-07",
"rates": {
"XCU": 0.290000
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-01",
"end_date": "2025-05-08",
"base": "USD",
"rates": {
"2025-05-01": {
"XCU": 0.295000
},
"2025-05-03": {
"XCU": 0.293000
},
"2025-05-08": {
"XCU": 0.294118
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XCU",
"amount": 1000
},
"info": {
"timestamp": 1746666346,
"rate": 0.294118
},
"result": 294.118,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-01",
"end_date": "2025-05-08",
"base": "USD",
"rates": {
"XCU": {
"start_rate": 0.295000,
"end_rate": 0.294118,
"change": -0.000882,
"change_pct": -0.30
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1746666346,
"base": "USD",
"date": "2025-05-08",
"rates": {
"XCU": {
"open": 0.295000,
"high": 0.296000,
"low": 0.293000,
"close": 0.294118
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1746666346,
"base": "USD",
"date": "2025-05-08",
"rates": {
"XCU": {
"bid": 0.293000,
"ask": 0.295000,
"spread": 0.002000
}
},
"unit": "per troy ounce"
}
Conclusion
Metals-API Documentation and explore the full range of features available.