Get Copper Continuous Contract (HG00) Historical Prices using this API

Get Copper Continuous Contract (HG00) Historical Prices using this API
Copper, represented by the symbol HG00, is a crucial metal in various industries, from construction to electronics. As the demand for copper continues to rise, understanding its historical prices becomes essential for investors, traders, and analysts. One of the most effective ways to access this data is through the Metals-API. This API provides real-time and historical pricing data for copper and other metals, enabling developers to create applications that can analyze trends, forecast prices, and make informed decisions.
About Copper (XCU)
Copper is not just a metal; it is a cornerstone of modern technology and infrastructure. As we delve into the digital transformation of metal markets, copper stands out due to its extensive applications. From electrical wiring to plumbing, copper's conductivity and malleability make it indispensable. The integration of smart technology in the metal markets has revolutionized how we trade and analyze copper prices. With advancements in data analytics, stakeholders can now gain insights that were previously unattainable.
Technological innovations have paved the way for more efficient trading platforms, allowing for real-time data access and analysis. The Metals-API exemplifies this shift, providing developers with the tools to harness real-time metals data. This API not only offers historical prices but also empowers users to track fluctuations, analyze trends, and make data-driven decisions.
API Description
The Metals-API is a powerful tool for accessing comprehensive metals data, including copper prices. It offers a range of endpoints that cater to various needs, from retrieving the latest rates to historical data analysis. The API's capabilities are designed to support developers in building next-generation applications that leverage real-time data for informed decision-making.
With the Metals-API, developers can access a wealth of information, including:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes or more frequently. This feature is crucial for traders who need up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve copper prices for any given day, allowing for in-depth analysis of price trends over time.
- Bid and Ask Endpoint: This feature enables users to retrieve real-time bid and ask prices for copper, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: This endpoint allows users to convert any amount from one metal to another or to/from USD, facilitating easy calculations for traders and analysts.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, enabling comprehensive trend analysis.
- Fluctuation Endpoint: This endpoint provides information about how copper prices fluctuate on a day-to-day basis, helping users understand market volatility.
- OHLC Price Endpoint: Users can retrieve open, high, low, and close prices for copper over a specified time period, which is essential for technical analysis.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of copper within a specified date range.
- Historical LME Endpoint: Access historical rates for LME symbols, dating back to 2008, providing a broader context for price movements.
Key Features and Endpoints
The Metals-API offers a robust set of features that cater to the diverse needs of developers and analysts. Hereβs a closer look at some of the key endpoints and their functionalities:
Latest Rates Endpoint
The Latest Rates Endpoint is designed to provide real-time exchange rates for copper and other metals. Depending on your subscription plan, the API can return data updated every 60 minutes or more frequently. This feature is essential for traders who rely on up-to-date pricing information to make quick decisions.
{
"success": true,
"timestamp": 1746836120,
"base": "USD",
"date": "2025-05-10",
"rates": {
"XCU": 0.294118
},
"unit": "per troy ounce"
}
In this response, the "rates" field provides the current price of copper (XCU) in USD per troy ounce, allowing users to quickly assess market conditions.
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for copper dating back to 2019. By appending a specific date to the API request, developers can retrieve copper prices for any given day, enabling detailed analysis of price trends over time.
{
"success": true,
"timestamp": 1746749720,
"base": "USD",
"date": "2025-05-09",
"rates": {
"XCU": 0.295000
},
"unit": "per troy ounce"
}
This response shows the historical price of copper on a specific date, which can be used for trend analysis and forecasting.
Bid and Ask Endpoint
The Bid and Ask Endpoint provides real-time bid and ask prices for copper, which are crucial for understanding market liquidity. This information helps traders gauge the current market sentiment and make informed trading decisions.
{
"success": true,
"timestamp": 1746836120,
"base": "USD",
"date": "2025-05-10",
"rates": {
"XCU": {
"bid": 0.293000,
"ask": 0.295000,
"spread": 0.002000
}
},
"unit": "per troy ounce"
}
The "bid" and "ask" fields provide the current buying and selling prices for copper, while the "spread" indicates the difference between these two prices, which is a key indicator of market efficiency.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to calculate the equivalent value of copper in different currencies or metals.
{
"success": true,
"query": {
"from": "USD",
"to": "XCU",
"amount": 1000
},
"info": {
"timestamp": 1746836120,
"rate": 0.294118
},
"result": 3.394,
"unit": "troy ounces"
}
This response indicates that 1000 USD is equivalent to approximately 3.394 troy ounces of copper, providing traders with essential conversion data.
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting comprehensive trend analysis over specific periods.
{
"success": true,
"timeseries": true,
"start_date": "2025-05-03",
"end_date": "2025-05-10",
"base": "USD",
"rates": {
"2025-05-03": {
"XCU": 0.295000
},
"2025-05-05": {
"XCU": 0.294500
},
"2025-05-10": {
"XCU": 0.294118
}
},
"unit": "per troy ounce"
}
This response provides daily copper prices over a specified period, allowing users to visualize trends and fluctuations in the market.
Fluctuation Endpoint
The Fluctuation Endpoint tracks rate fluctuations between two dates, providing insights into market volatility. This information is crucial for traders looking to understand price movements and make informed decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-03",
"end_date": "2025-05-10",
"base": "USD",
"rates": {
"XCU": {
"start_rate": 0.295000,
"end_rate": 0.294118,
"change": -0.000882,
"change_pct": -0.30
}
},
"unit": "per troy ounce"
}
This response indicates the starting and ending rates for copper, along with the change in price and percentage change, providing a clear picture of market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
The OHLC Price Endpoint allows users to retrieve open, high, low, and close prices for copper over a specified time period. This data is essential for technical analysis and helps traders identify trends and potential entry and exit points.
{
"success": true,
"timestamp": 1746836120,
"base": "USD",
"date": "2025-05-10",
"rates": {
"XCU": {
"open": 0.295000,
"high": 0.296000,
"low": 0.293000,
"close": 0.294118
}
},
"unit": "per troy ounce"
}
The response provides the open, high, low, and close prices for copper, which are critical for traders conducting technical analysis.
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API for the lowest and highest prices of copper within a specified date range. This feature is useful for identifying price extremes and understanding market behavior.
{
"success": true,
"timestamp": 1746836120,
"base": "USD",
"date": "2025-05-10",
"rates": {
"XCU": {
"lowest": 0.293000,
"highest": 0.296000
}
},
"unit": "per troy ounce"
}
This response indicates the lowest and highest prices for copper within the specified period, providing valuable insights for traders.
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 various metals into their applications.
Conclusion
In conclusion, the Metals-API offers a powerful suite of tools for accessing copper historical prices and real-time data. With features like the Latest Rates Endpoint, Historical Rates Endpoint, and various conversion and fluctuation tools, developers can create applications that provide deep insights into the copper market. The integration of smart technology and data analytics in the metal markets is transforming how we trade and analyze metals, making it essential for developers to leverage these tools effectively.
For more information on how to implement these features, refer to the Metals-API Documentation. By utilizing the capabilities of the Metals-API, developers can build innovative applications that enhance decision-making and provide valuable insights into the copper market.