Access real-time Copper Continuous Contract (HG00) prices using this API

Access Real-Time Copper Continuous Contract (HG00) Prices Using This API
In the ever-evolving landscape of financial markets, the demand for real-time data has never been more critical. For developers and traders alike, accessing accurate and timely information about commodities such as copper is essential for making informed decisions. The Metals-API provides a robust solution for accessing real-time Copper Continuous Contract (HG00) prices, along with a wealth of other metal data. This blog post will delve into the intricacies of copper, its markets, and how the Metals-API can empower developers to create innovative applications that leverage real-time metals data.
Metals-API Information
About Copper (XCU)
Copper, represented by the symbol XCU, is a fundamental metal in various industries, including construction, electronics, and renewable energy. As a key component in electrical wiring and plumbing, copper's demand is closely tied to economic growth and technological advancements. The digital transformation in metal markets has led to an increased reliance on data analytics and insights, enabling stakeholders to make data-driven decisions.
Technological innovation has revolutionized how traders and developers interact with metal markets. With the integration of smart technologies, real-time data access has become more streamlined, allowing for instantaneous decision-making. The future of copper trading is poised for further transformation, with advancements in data analytics and machine learning paving the way for predictive modeling and enhanced trading strategies.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time and historical data for various metals, including copper. This API is designed to facilitate the creation of next-generation applications that require accurate and timely metals data. By leveraging the capabilities of the Metals-API, developers can build applications that cater to the needs of traders, analysts, and businesses involved in the metals market.
With a focus on innovation and technological advancement, the Metals-API empowers users to access a wide range of features, including real-time exchange rates, historical data, and conversion capabilities. The API's transformative potential lies in its ability to provide developers with the tools necessary to create applications that can analyze market trends, track price fluctuations, and convert between different metal values.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Depending on your subscription plan, you can access features that provide real-time data, historical rates, and more. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for traders who need the latest market information to make timely decisions.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date to your query, you can retrieve past exchange rates, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that enables users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is ideal for analyzing price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis. This feature helps traders understand market volatility and make informed decisions.
- Carat Endpoint: Access information about gold rates by carat, allowing users to understand the value of gold in different purities.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specific date, which is crucial for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, enabling traders to analyze market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is essential for long-term market analysis.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The API comes with a comprehensive list of endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available metal symbols, ensuring users have access to the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping traders stay informed about market trends.
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
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1746936064,
"base": "USD",
"date": "2025-05-11",
"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": 1746849664,
"base": "USD",
"date": "2025-05-10",
"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-05-04",
"end_date": "2025-05-11",
"base": "USD",
"rates": {
"2025-05-04": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-06": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-11": {
"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": 1746936064,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-04",
"end_date": "2025-05-11",
"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) Price Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1746936064,
"base": "USD",
"date": "2025-05-11",
"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": 1746936064,
"base": "USD",
"date": "2025-05-11",
"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
In conclusion, the Metals-API provides a comprehensive solution for accessing real-time Copper Continuous Contract (HG00) prices and a wealth of other metal data. With its innovative features and endpoints, developers can create powerful applications that leverage real-time data to make informed trading decisions. The integration of smart technology and data analytics into the metals market is paving the way for a more efficient and data-driven trading environment.
For developers looking to harness the power of real-time metals data, the Metals-API Documentation is an invaluable resource. It provides detailed information on how to implement various endpoints and utilize the API effectively. Additionally, the Metals-API Supported Symbols page offers a comprehensive list of metal symbols, ensuring that users have access to the latest information. By leveraging the capabilities of the Metals-API, developers can stay ahead in the fast-paced world of metal trading.