Access Price History for Lead - LME 3-month (LEAD3M) with this API
Access Price History for Lead - LME 3-month (LEAD3M) with this API
In the rapidly evolving landscape of metal markets, the demand for real-time data and analytics has never been greater. The Metals-API provides a robust solution for developers looking to access historical prices, including Lead (XLE), and other metals with precision and ease. 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 metal markets.
About Lead (XLE)
Lead, represented by the symbol XLE, is a crucial metal in various industries, including batteries, radiation shielding, and construction. As the world moves towards digital transformation, the integration of smart technologies and data analytics in metal markets is becoming increasingly vital. The Metals-API empowers developers to harness the power of real-time data, enabling them to build applications that can analyze trends, forecast prices, and provide insights into market dynamics.
Technological innovation is at the forefront of this transformation. With the Metals-API, developers can access a wealth of information about Lead and other metals, allowing for informed decision-making and strategic planning. The API's capabilities extend beyond mere data retrieval; it offers a platform for integrating advanced analytics and machine learning models to predict future price movements and market trends.
API Description
The Metals-API is a powerful tool designed for developers seeking to access real-time and historical metals data. It provides a comprehensive suite of endpoints that allow users to retrieve exchange rates, historical prices, and other essential metrics. The API is built with innovation in mind, offering features that enable developers to create next-generation applications that can analyze and visualize metal market data.
For more information, 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. Each endpoint serves a unique purpose, providing developers with the flexibility to access the information they require. 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. Developers can access the latest rates every 60 minutes, every 10 minutes, or even more frequently, depending on their needs.
- Historical Rates Endpoint: Users can query historical rates dating back to 2019 by appending a specific date in the format YYYY-MM-DD. This feature is essential for analyzing past market trends and making informed predictions.
- Bid and Ask Endpoint: This powerful feature allows developers 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, enabling users to convert amounts between different metals or to/from USD. This is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: Developers can query daily historical rates between two chosen dates, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information on how metal prices fluctuate on a day-to-day basis, helping users understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period.
- Open/High/Low/Close (OHLC) Price Endpoint: Developers can access open, high, low, and close prices for a specific date, providing a comprehensive view of market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols, dating back to 2008, allowing for extensive market analysis.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The API includes 14 endpoints, each offering distinct functionalities tailored to various data retrieval needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, 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
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1781050711,
"base": "USD",
"date": "2026-06-10",
"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": 1780964311,
"base": "USD",
"date": "2026-06-09",
"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-03",
"end_date": "2026-06-10",
"base": "USD",
"rates": {
"2026-06-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-10": {
"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": 1781050711,
"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-03",
"end_date": "2026-06-10",
"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": 1781050711,
"base": "USD",
"date": "2026-06-10",
"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": 1781050711,
"base": "USD",
"date": "2026-06-10",
"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 a powerful resource for developers looking to access real-time and historical data on metals, including Lead (XLE). With its extensive range of endpoints, the API enables users to retrieve vital information that can inform trading strategies, market analysis, and investment decisions. By leveraging the capabilities of the Metals-API, developers can create innovative applications that harness the power of data analytics and smart technology integration.
For further exploration of the API's features, refer to the Metals-API Documentation and discover the full potential of this transformative tool in the metal markets. Whether you are analyzing historical price trends or seeking real-time data, the Metals-API provides the resources necessary to stay ahead in the dynamic world of metals trading.