Retrieve Lead - LME 3-month (LEAD3M) Historical Prices through Metals-API

Retrieve Lead - LME 3-month (LEAD3M) Historical Prices through Metals-API
In the ever-evolving landscape of metal markets, the demand for precise and timely data has never been more critical. For developers and businesses looking to retrieve historical prices of Lead (symbol: XLE), the Metals-API offers a robust solution. This blog post will delve into the capabilities of Metals-API, focusing on how to access historical prices and leverage the API's features to gain insights into Lead pricing trends.
Metals-API Information
About Lead (XLE)
Lead, represented by the symbol XLE, is a versatile metal widely used in various industries, including construction, batteries, and radiation shielding. As the world embraces digital transformation, the metal markets are witnessing significant technological innovations. The integration of smart technologies and data analytics is reshaping how businesses operate and make decisions based on real-time data.
With the rise of data-driven insights, understanding Lead's historical pricing trends is essential for stakeholders in the metal market. The Metals-API provides a powerful platform for developers to access historical prices, enabling them to build applications that can analyze trends, forecast future prices, and make informed decisions.
API Description
The Metals-API is a comprehensive JSON API that provides real-time and historical data for various metals, including Lead. It empowers developers to create next-generation applications that can harness the power of real-time metals data. The API's capabilities include retrieving the latest rates, historical prices, and even performing conversions between different metals and currencies.
For more information about the API, visit the Metals-API Website or check out 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 Lead and other metals. Depending on your subscription plan, the API updates this data every 60 minutes or even more frequently. This feature is crucial for applications that require up-to-the-minute pricing information.
Historical Rates Endpoint
Accessing historical rates is vital for analyzing trends over time. The Metals-API allows users to query historical prices for Lead dating back to 2019. By appending a specific date to the endpoint, developers can retrieve the price of Lead on that date, enabling them to conduct thorough analyses of price movements.
Bid and Ask Endpoint
This powerful feature allows users to retrieve real-time bid and ask prices for Lead. Understanding the bid-ask spread is essential for traders and businesses looking to make informed purchasing decisions.
Convert Endpoint
The conversion endpoint enables users to convert any amount of Lead from one currency to another. This functionality is particularly useful for international transactions where currency conversion is necessary.
Time-Series Endpoint
With the time-series endpoint, developers can query the API for daily historical rates between two specified dates. This feature is invaluable for creating visualizations and reports that illustrate price trends over time.
Fluctuation Endpoint
This endpoint provides insights into how Lead prices fluctuate on a day-to-day basis. By tracking these fluctuations, businesses can better understand market volatility and adjust their strategies accordingly.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC endpoint allows users to retrieve the open, high, low, and close prices for Lead over a specified period. This data is essential for traders who rely on technical analysis to make informed decisions.
Historical LME Endpoint
For those interested in the London Metal Exchange (LME) prices, the historical LME endpoint provides access to Lead prices dating back to 2008. This feature is particularly useful for analyzing long-term trends and making strategic decisions based on historical data.
API Key and Response
To access the Metals-API, users must obtain an API key, which is passed into the API base URL's access_key parameter. The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
Available Endpoints
The Metals-API includes numerous endpoints, each designed to provide specific functionalities. For a complete list of 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, you can use the following example response:
{
"success": true,
"timestamp": 1744603266,
"base": "USD",
"date": "2025-04-14",
"rates": {
"XLE": 0.000482
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Accessing historical exchange rates for Lead can be done with this example response:
{
"success": true,
"timestamp": 1744516866,
"base": "USD",
"date": "2025-04-13",
"rates": {
"XLE": 0.000485
},
"unit": "per troy ounce"
}
Time-series Endpoint
To retrieve exchange rates for Lead over a specific time period, you can refer to the following example:
{
"success": true,
"timeseries": true,
"start_date": "2025-04-07",
"end_date": "2025-04-14",
"base": "USD",
"rates": {
"2025-04-07": {
"XLE": 0.000485
},
"2025-04-14": {
"XLE": 0.000482
}
},
"unit": "per troy ounce"
}
Convert Endpoint
For converting Lead amounts, the response might look like this:
{
"success": true,
"query": {
"from": "USD",
"to": "XLE",
"amount": 1000
},
"info": {
"timestamp": 1744603266,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
To track fluctuations in Lead prices, you can use the following example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-07",
"end_date": "2025-04-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) Endpoint
For OHLC data, the response may appear as follows:
{
"success": true,
"timestamp": 1744603266,
"base": "USD",
"date": "2025-04-14",
"rates": {
"XLE": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Bid/Ask Endpoint
For current bid and ask prices for Lead, the response might look like this:
{
"success": true,
"timestamp": 1744603266,
"base": "USD",
"date": "2025-04-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 powerful and flexible solution for developers seeking to access historical prices and real-time data for Lead. By leveraging the various endpoints available, developers can create applications that analyze trends, forecast prices, and make informed decisions based on accurate data. The integration of smart technology and data analytics into the metal markets is paving the way for a more efficient and transparent trading environment.
For further exploration of the Metals-API's capabilities, refer to the Metals-API Documentation and the Metals-API Supported Symbols page. Embrace the future of metal trading with the power of real-time data at your fingertips.