How to Get Aluminum China Spot (ALU-CH) - Per Ton Historical Prices using this API
How to Get Aluminum China Spot (ALU-CH) - Per Ton Historical Prices using this API
In today's rapidly evolving digital landscape, the demand for real-time data in the metals market has never been greater. The ability to access historical prices for metals like Aluminum (XAL) is crucial for developers, traders, and analysts who rely on accurate and timely information to make informed decisions. The Metals-API provides a robust solution for obtaining Aluminum China Spot (ALU-CH) prices per ton, along with a wealth of other features that empower users to harness the power of data analytics and insights.
About Aluminum (XAL)
Aluminum is a versatile metal widely used in various industries, from construction to automotive manufacturing. As the world shifts towards digital transformation, the metal markets are also undergoing significant changes. Technological innovations, such as smart technology integration and advanced data analytics, are reshaping how we interact with metal pricing data. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to build next-generation applications that leverage real-time metals data.
API Description
The Metals-API is a powerful JSON API that provides access to real-time and historical metal prices, including Aluminum. It enables developers to integrate comprehensive metal pricing data into their applications seamlessly. With a focus on innovation and technological advancement, the Metals-API empowers users to access critical market insights that can drive strategic decision-making.
For more information about the API's capabilities, visit the Metals-API Website or explore the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Users can access the latest Aluminum prices and other metals at intervals of 60 minutes or 10 minutes, depending on their plan.
- Historical Rates Endpoint: Users can query historical rates for Aluminum and other metals dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can retrieve past pricing data to analyze trends and make informed decisions.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insight into market dynamics and helping traders make timely decisions.
- Convert Endpoint: The Metals-API includes a currency conversion feature that enables users to convert amounts between different metals or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing users to access detailed pricing data for gold in various purities.
- Lowest/Highest Price Endpoint: Users can query the API to find the lowest and highest prices for Aluminum over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for Aluminum, giving traders a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends in metal pricing.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The Metals-API delivers exchange rates relative to USD, with all data returned in a structured JSON format for easy integration.
- Available Endpoints: The API features 14 endpoints, each designed to provide specific functionalities for users seeking detailed metal pricing data.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available metal symbols, ensuring users have access to the latest information.
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
Understanding how to interact with the Metals-API is crucial for developers looking to leverage its capabilities. Below are examples of various API endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1783901680,
"base": "USD",
"date": "2026-07-13",
"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"
}
The response indicates a successful request, providing the latest rates for various metals, including Aluminum (XAL). The rates are expressed per troy ounce, which is a standard measurement in the metals market.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1783815280,
"base": "USD",
"date": "2026-07-12",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful retrieval of historical rates for a specific date. Developers can use this data to analyze price trends over time.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-07-06",
"end_date": "2026-07-13",
"base": "USD",
"rates": {
"2026-07-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-13": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint provides a detailed view of how metal prices have changed over a specified period. This data is invaluable for traders looking to identify patterns and make predictions.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1783901680,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how the convert endpoint works, allowing users to convert a specified amount from one currency to another. In this case, it shows the conversion of 1000 USD to gold (XAU).
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-06",
"end_date": "2026-07-13",
"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"
}
The fluctuation endpoint provides insights into how metal prices have changed over a specified period, including both absolute and percentage changes. This information is crucial for traders looking to understand market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1783901680,
"base": "USD",
"date": "2026-07-13",
"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"
}
The OHLC endpoint provides a comprehensive view of price movements for a specific time period, allowing traders to analyze market trends effectively.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1783901680,
"base": "USD",
"date": "2026-07-13",
"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"
}
This endpoint provides current bid and ask prices for metals, which is essential for traders looking to execute orders at the best possible prices.
Conclusion
The Metals-API is a powerful tool for developers and traders alike, offering a comprehensive suite of features that enable access to real-time and historical metal pricing data. By leveraging the various endpoints, users can gain valuable insights into market trends, make informed decisions, and optimize their trading strategies. Whether you are looking to analyze historical prices, track fluctuations, or convert between metals, the Metals-API provides the necessary tools to succeed in the dynamic metals market.
For further exploration of the API's capabilities, be sure to check out the Metals-API Documentation and familiarize yourself with the Metals-API Supported Symbols to enhance your understanding of the available data. Embrace the future of metal trading with the Metals-API and unlock the potential of real-time data analytics.