Get High Grade Copper Sep 2025 (HGU25) Historical Prices: API Usage Explained
Introduction
In the world of commodities trading, understanding historical prices is crucial for making informed decisions. For those interested in copper, specifically the Get High Grade Copper Sep 2025 (HGU25), accessing accurate historical data is essential. The Metals-API provides a powerful solution for developers seeking real-time and historical data on various metals, including copper. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices and the transformative potential of this technology in the metals market.
Metals-API Information
About Copper (XCU)
Copper, represented by the symbol XCU, plays a vital role in various industries, from electrical wiring to plumbing. As the demand for copper continues to rise, driven by technological advancements and digital transformation in metal markets, having access to reliable data becomes increasingly important. The integration of smart technology and data analytics allows traders and developers to gain insights into market trends, making it easier to predict future movements.
The Metals-API stands at the forefront of this digital transformation, offering developers the tools needed to build next-generation applications that leverage real-time metals data. By utilizing the API, developers can create applications that provide insights into price fluctuations, historical trends, and market analysis, ultimately empowering users to make informed trading decisions.
API Description
The Metals-API is a comprehensive JSON API that provides access to metals prices and currency conversion. It is designed to be user-friendly and efficient, allowing developers to integrate its capabilities into their applications seamlessly. The API supports a wide range of endpoints, each tailored to meet specific needs, whether it be retrieving the latest rates, accessing historical data, or converting between different metals and currencies.
For detailed information on how to use the API, developers can refer to the Metals-API Documentation, which outlines the various endpoints, parameters, and response formats.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability and functionality:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Developers can access the latest prices for copper and other metals, ensuring they have the most current information at their fingertips.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical prices for copper, enabling them to analyze trends over time.
- Bid and Ask Endpoint: This feature allows users to obtain 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, allowing users to convert amounts between different metals or to/from USD, facilitating easier trading and analysis.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two specified dates, enabling them to analyze price movements over specific periods.
- Fluctuation Endpoint: This endpoint provides information on how metal prices fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Users can retrieve gold rates by carat, which is particularly useful for jewelers and traders dealing in precious metals.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period, providing valuable insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Developers can access open, high, low, and close prices for metals, which are essential for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends in the metals market.
- API Key: Each user is assigned a unique API key, which is required for authentication when making requests to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities tailored to 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.
- Intraday Endpoint: Developers can query intraday exchange rate data for a single symbol, which is particularly useful for high-frequency trading strategies.
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 understand the full scope of available data.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. 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": 1788653511,
"base": "USD",
"date": "2026-09-06",
"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": 1788567111,
"base": "USD",
"date": "2026-09-05",
"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-08-30",
"end_date": "2026-09-06",
"base": "USD",
"rates": {
"2026-08-30": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-09-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-09-06": {
"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": 1788653511,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-30",
"end_date": "2026-09-06",
"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": 1788653511,
"base": "USD",
"date": "2026-09-06",
"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": 1788653511,
"base": "USD",
"date": "2026-09-06",
"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 provides a robust framework for accessing historical prices and real-time data for copper and other metals. By leveraging the various endpoints, developers can create applications that not only track price movements but also analyze trends and fluctuations in the metals market. The ability to access historical data dating back to 2019, combined with real-time updates, empowers traders to make informed decisions based on comprehensive market insights.
For those looking to dive deeper into the capabilities of the Metals-API, the Metals-API Documentation is an invaluable resource. Additionally, the Metals-API Supported Symbols page provides a complete list of available symbols, ensuring users have access to the latest information. By utilizing the Metals-API Website, developers can stay updated on new features and enhancements, further enhancing their applications in the ever-evolving metals market.