Get Lead Ingot China Spot (LEAD-CH) Historical Prices using this API
Get Lead Ingot China Spot (LEAD-CH) Historical Prices using this API
In the ever-evolving landscape of metal markets, the demand for accurate and timely data has never been more critical. As industries increasingly rely on digital transformation, the need for reliable historical prices for metals like Lead (XLE) has surged. This blog post will explore how to obtain historical prices for Lead using the Metals-API, a powerful tool that provides real-time and historical data for various metals. We will delve into the capabilities of the Metals-API, its endpoints, and how developers can leverage this technology to create innovative applications.
About Lead (XLE)
Lead is a versatile metal widely used in batteries, radiation shielding, and various industrial applications. As the world moves towards more sustainable practices, the demand for Lead continues to evolve. The digital transformation in metal markets has led to significant advancements in how data is collected, analyzed, and utilized. With the integration of smart technology and data analytics, stakeholders can gain insights into market trends, price fluctuations, and future possibilities.
Technological innovation has enabled the development of sophisticated tools that allow for real-time tracking of metal prices. The Metals-API stands at the forefront of this transformation, providing developers with the resources needed to access and analyze historical price data for Lead and other metals. By harnessing the power of data analytics, businesses can make informed decisions, optimize their operations, and stay ahead of market trends.
API Description
The Metals-API is a comprehensive JSON API designed to provide users with access to real-time and historical metal prices. This API empowers developers to build next-generation applications that can analyze market data, track price changes, and convert currencies seamlessly. With a focus on innovation and technological advancement, the Metals-API is transforming how businesses interact with metal markets.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on your subscription plan, the API can provide updates every 60 minutes, every 10 minutes, or even more frequently. This ensures that users have access to the most current information, allowing for timely decision-making.
The API also offers a range of endpoints that cater to various needs. For instance, the Historical Rates Endpoint allows users to access historical prices dating back to 2019. By appending a specific date to the API request, developers can retrieve valuable data that can inform their strategies and analyses.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to serve specific functions. 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 prices for Lead and other metals, enabling them to make informed trading decisions.
- Historical Rates Endpoint: Users can retrieve historical rates for most currencies dating back to 2019. This feature is particularly useful for analyzing trends over time and understanding how market conditions have changed.
- Bid And Ask Endpoint: This powerful 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, enabling users to convert amounts from one metal to another or to/from USD. This is essential for businesses operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two chosen dates. It is particularly useful for analyzing price trends over specific periods.
- 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 allows users to retrieve information about Gold rates by Carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specific date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides users with the open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends.
- API Key: Users must pass their unique API key into the API base URL's access_key parameter to authenticate their requests.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API features 14 endpoints, each providing different functionalities to cater to diverse user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
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 specific metals into their applications.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Here are some examples of the API responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1769646071,
"base": "USD",
"date": "2026-01-29",
"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"
}
This response indicates a successful request, providing the latest exchange rates for various metals, including Lead.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1769559671,
"base": "USD",
"date": "2026-01-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date, allowing users to analyze past market conditions.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-01-22",
"end_date": "2026-01-29",
"base": "USD",
"rates": {
"2026-01-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-29": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response illustrates how to retrieve exchange rates for a specific time period, enabling users to analyze trends over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1769646071,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example demonstrates how to convert an amount from one currency to another, providing users with flexibility in their transactions.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-22",
"end_date": "2026-01-29",
"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"
}
This response provides insights into how metal prices fluctuate over a specified period, which is crucial for traders and analysts.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1769646071,
"base": "USD",
"date": "2026-01-29",
"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"
}
This endpoint provides essential data for technical analysis, allowing users to assess market performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1769646071,
"base": "USD",
"date": "2026-01-29",
"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 response provides current bid and ask prices for metals, essential for traders looking to make informed decisions in real-time.
Conclusion
The Metals-API is a transformative tool for developers seeking to access historical prices for Lead and other metals. By leveraging its extensive features and capabilities, businesses can gain valuable insights into market trends, optimize their operations, and make informed decisions. The API's various endpoints, including the Latest Rates, Historical Rates, and Time-Series endpoints, provide users with the flexibility to analyze data in multiple ways.
As the metal markets continue to evolve, staying informed and utilizing advanced data analytics will be crucial for success. The Metals-API not only empowers developers to build innovative applications but also fosters a deeper understanding of market dynamics. For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals.
In conclusion, the future of metal markets is bright, driven by technological innovation and the integration of smart technologies. By harnessing the power of the Metals-API, developers can unlock new possibilities and create applications that will shape the future of the industry.