Access High Grade Copper Mar 2026 (HGH26) Price Data through this API
Access High Grade Copper Mar 2026 (HGH26) Price Data through this API
In the rapidly evolving landscape of metal markets, the demand for real-time data and analytics has never been greater. As developers and businesses seek to leverage the power of data, the Metals-API emerges as a transformative tool, enabling access to high-grade copper price data and other metals. This blog post delves into the capabilities of the Metals-API, focusing on how to access historical prices for Gold (XAU) and the innovative features that empower developers to build next-generation applications.
About Copper (XCU)
Copper, represented by the symbol XCU, is a crucial metal in various industries, from electrical wiring to construction. As we witness a digital transformation in metal markets, the integration of smart technology and data analytics is reshaping how we interact with these commodities. The Metals-API stands at the forefront of this transformation, offering developers the tools to harness real-time data and insights.
Technological advancements have paved the way for innovative applications in the metals sector. With the Metals-API, developers can access a wealth of information, including price fluctuations, historical data, and conversion rates. This empowers businesses to make informed decisions based on accurate and timely data.
API Description
The Metals-API is a powerful JSON API that provides real-time and historical price data for various metals, including copper, gold, silver, and more. It enables developers to build applications that require up-to-date information on metal prices, facilitating better decision-making and strategic planning.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated at intervals depending on the subscription plan. This ensures that users have access to the most current information available. Additionally, the API offers historical rates dating back to 2019, allowing for comprehensive analysis and trend identification.
For more detailed information, you can refer to the Metals-API Documentation, which provides extensive guidance on how to utilize the API effectively.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to cater to specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data for metals, updated based on your subscription plan. For example, if you subscribe to a plan that updates every 10 minutes, you can expect to receive the latest rates at that interval.
- Historical Rates Endpoint: Access historical rates for most metals dating back to 2019. By appending a specific date in the format YYYY-MM-DD, you can retrieve historical data for analysis.
- Bid and Ask Endpoint: This feature allows you to obtain real-time bid and ask prices for metals, providing insights into market conditions and helping traders make informed decisions.
- Convert Endpoint: The conversion endpoint enables users to convert any amount from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth trend analysis.
- Fluctuation Endpoint: This endpoint provides information about how metal prices fluctuate on a day-to-day basis, offering insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and investors in the gold market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, which can be useful for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for traders analyzing price movements.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for understanding long-term market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
For a complete list of supported symbols, visit the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1783037845,
"base": "USD",
"date": "2026-07-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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1782951445,
"base": "USD",
"date": "2026-07-02",
"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": "2026-06-26",
"end_date": "2026-07-03",
"base": "USD",
"rates": {
"2026-06-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-03": {
"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": 1783037845,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-26",
"end_date": "2026-07-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1783037845,
"base": "USD",
"date": "2026-07-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1783037845,
"base": "USD",
"date": "2026-07-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"
}
Conclusion
The Metals-API is an invaluable resource for developers seeking to access high-grade copper price data and other metals. With its comprehensive features, including real-time rates, historical data, and conversion capabilities, the API empowers users to make informed decisions based on accurate and timely information.
By leveraging the various endpoints, developers can create applications that analyze market trends, track price fluctuations, and facilitate seamless transactions. The ability to access historical prices for Gold (XAU) and other metals opens up a world of possibilities for financial analysis and investment strategies.
For more information and to start utilizing the Metals-API, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on implementation. Additionally, check out the Metals-API Supported Symbols page for a comprehensive list of available metals and currencies.