The Easiest Way to Get Lead - LME 3-month (LEAD3M) Historical Rates via API Access
The Easiest Way to Get Lead - LME 3-month (LEAD3M) Historical Rates via API Access
In the fast-evolving world of metals trading, having access to accurate and timely data is crucial for making informed decisions. One of the most effective ways to obtain historical prices for Lead (symbol: XLE) is through the Metals-API. This API provides developers with the tools necessary to access a wealth of information about metal prices, including Lead, and offers various endpoints to cater to different data needs. In this blog post, we will explore how to retrieve historical prices for Lead using the Metals-API, including example endpoints, parameters, and data formats.
Metals-API Information
The Metals-API is a powerful tool designed for developers looking to integrate real-time and historical metal price data into their applications. It leverages digital transformation in metal markets, enabling users to harness technological innovation and advancement in data analytics. With the integration of smart technology, the API empowers developers to build next-generation applications that can analyze trends, forecast prices, and provide insights into the metal market.
About Lead (XLE)
Lead, represented by the symbol XLE, is a versatile metal used in various industries, including batteries, radiation shielding, and construction. As the demand for Lead continues to grow, understanding its price movements becomes essential for stakeholders in the metal market. The Metals-API provides a comprehensive solution for accessing historical Lead prices, allowing users to analyze trends and make data-driven decisions.
API Description
The Metals-API offers a wide range of capabilities, allowing users to access real-time and historical data for various metals, including Lead. The API is designed to be user-friendly, with clear documentation available at the Metals-API Documentation. This documentation provides detailed information on how to use the API, including available endpoints, parameters, and response formats.
One of the key features of the Metals-API is its ability to provide real-time exchange rate data, updated frequently based on the user's subscription plan. This means that developers can access the latest market information and integrate it into their applications seamlessly. Additionally, the API supports historical rates dating back to 2019, enabling users to analyze past trends and make informed predictions about future price movements.
Key Features and Endpoints
The Metals-API includes several endpoints that cater to different data needs. Here are some of the most notable features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for Lead and other metals. Depending on your subscription plan, the API can return data updated every 60 minutes or even more frequently.
- Historical Rates Endpoint: Users can access historical rates for Lead by appending a specific date to the API request. This feature allows for in-depth analysis of price trends over time.
- Bid and Ask Endpoint: This powerful feature retrieves real-time bid and ask prices for Lead, helping traders make informed decisions based on current market conditions.
- Convert Endpoint: The API includes a currency conversion feature, allowing users to convert amounts between different metals or to/from USD.
- Time-Series Endpoint: This endpoint enables users to query the API for daily historical rates between two specified dates, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how Lead prices fluctuate on a day-to-day basis, gaining insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed OHLC data for Lead, allowing users to analyze price movements within a specific time frame.
- Historical LME Endpoint: Users can access historical rates for LME symbols, including Lead, dating back to 2008, providing a long-term view of price trends.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate and authorize access to the API.
- API Response: The API returns exchange rates relative to USD by default, with all data delivered in a structured JSON format.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, including Lead, 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, including Lead (XLE). 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
To get real-time exchange rates for Lead and other metals, you can use the following endpoint:
GET https://metals-api.com/api/latest?access_key=YOUR_API_KEY&base=USD&symbols=XLE
Example Response:
{
"success": true,
"timestamp": 1768396068,
"base": "USD",
"date": "2026-01-14",
"rates": {
"XLE": 0.000482
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for Lead by specifying a date:
GET https://metals-api.com/api/historical?access_key=YOUR_API_KEY&date=2026-01-13&symbols=XLE
Example Response:
{
"success": true,
"timestamp": 1768309668,
"base": "USD",
"date": "2026-01-13",
"rates": {
"XLE": 0.000485
},
"unit": "per troy ounce"
}
Time-series Endpoint
To get exchange rates for Lead over a specific time period, use the time-series endpoint:
GET https://metals-api.com/api/timeseries?access_key=YOUR_API_KEY&start_date=2026-01-07&end_date=2026-01-14&base=USD&symbols=XLE
Example Response:
{
"success": true,
"timeseries": true,
"start_date": "2026-01-07",
"end_date": "2026-01-14",
"base": "USD",
"rates": {
"2026-01-07": {
"XLE": 0.000485
},
"2026-01-09": {
"XLE": 0.000483
},
"2026-01-14": {
"XLE": 0.000482
}
},
"unit": "per troy ounce"
}
Convert Endpoint
To convert amounts from one metal to another or to/from USD, use the convert endpoint:
GET https://metals-api.com/api/convert?access_key=YOUR_API_KEY&from=USD&to=XLE&amount=1000
Example Response:
{
"success": true,
"query": {
"from": "USD",
"to": "XLE",
"amount": 1000
},
"info": {
"timestamp": 1768396068,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
To track rate fluctuations between two dates, use the fluctuation endpoint:
GET https://metals-api.com/api/fluctuation?access_key=YOUR_API_KEY&start_date=2026-01-07&end_date=2026-01-14&base=USD&symbols=XLE
Example Response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-07",
"end_date": "2026-01-14",
"base": "USD",
"rates": {
"XLE": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
OHLC (Open/High/Low/Close) Price Endpoint
To get OHLC data for Lead over a specific time period, use the OHLC endpoint:
GET https://metals-api.com/api/open-high-low-close?access_key=YOUR_API_KEY&date=2026-01-14&symbols=XLE
Example Response:
{
"success": true,
"timestamp": 1768396068,
"base": "USD",
"date": "2026-01-14",
"rates": {
"XLE": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
To get current bid and ask prices for Lead, use the bid/ask endpoint:
GET https://metals-api.com/api/bid-ask?access_key=YOUR_API_KEY&symbols=XLE
Example Response:
{
"success": true,
"timestamp": 1768396068,
"base": "USD",
"date": "2026-01-14",
"rates": {
"XLE": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
Conclusion
In conclusion, the Metals-API provides a comprehensive solution for accessing historical prices for Lead (XLE) and other metals. By utilizing the various endpoints available, developers can easily integrate real-time and historical data into their applications, enabling them to analyze trends and make informed decisions. With features such as the latest rates, historical rates, bid/ask prices, and fluctuation tracking, the API empowers users to harness the full potential of metal market data.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on using the API effectively. Whether you are a developer looking to build innovative applications or a trader seeking insights into the metal market, the Metals-API is an invaluable resource.