The Easiest Way to Get LME Nickel (LME-NI) Historical Rates Using API Services

The Easiest Way to Get LME Nickel (LME-NI) Historical Rates Using API Services
In the rapidly evolving landscape of metal markets, accessing accurate and timely data is crucial for developers and analysts alike. One of the most efficient ways to obtain historical prices for LME Nickel (LME-NI) is through the Metals-API. This powerful API service provides a wide array of endpoints that allow users to retrieve real-time and historical data, enabling informed decision-making and strategic planning. In this blog post, we will explore how to effectively use the Metals-API to get LME Nickel historical rates, including example endpoints, parameters, and data formats.
About Nickel (XNI)
Nickel, represented by the symbol XNI, is a vital metal in various industries, particularly in the production of stainless steel and batteries. As the world transitions towards digital transformation, the metal markets are also undergoing significant changes. Technological innovations and advancements in data analytics are reshaping how traders and developers interact with metal prices. The integration of smart technology into trading platforms allows for real-time insights and analytics, empowering users to make data-driven decisions.
As we look to the future, the potential for further advancements in the metal markets is immense. With the rise of electric vehicles and renewable energy technologies, the demand for nickel is expected to increase, making accurate pricing data more critical than ever. The Metals-API stands at the forefront of this transformation, providing developers with the tools they need to build next-generation applications that leverage real-time metals data.
API Description
The Metals-API is a comprehensive JSON API that offers a variety of endpoints for accessing metals prices and currency conversion. It empowers developers to create applications that can track market trends, analyze historical data, and convert between different metal currencies. The API is designed with innovation in mind, allowing for seamless integration into existing systems and applications.
With a focus on technological advancement, the Metals-API provides developers with access to real-time data, historical rates, and various analytical tools. This API is not just a data source; it is a platform that enables users to harness the power of data analytics and insights to drive their business strategies.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes or more frequently. It provides the latest prices for various metals, including Nickel.
- Historical Rates Endpoint: Access historical rates for most metals dating back to 2019. You can query the API for historical rates by appending a specific date to the endpoint.
- Bid and Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity.
- Convert Endpoint: Use this endpoint to convert any amount from one metal to another or to/from USD, facilitating easy calculations for traders.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price trends over time.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Open/High/Low/Close (OHLC) Price Endpoint: Retrieve OHLC data for a specific time period, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates specifically for LME symbols, dating back to 2008, which is crucial for long-term market analysis.
Each of these endpoints is designed to provide developers with the flexibility and functionality needed to build robust applications that can analyze and interpret metal market data effectively.
API Endpoint Examples and Responses
To illustrate how to use the Metals-API effectively, let's explore some example endpoints and their corresponding JSON responses.
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following endpoint:
GET https://metals-api.com/api/latest?access_key=YOUR_API_KEY
Example Response:
{
"success": true,
"timestamp": 1760590948,
"base": "USD",
"date": "2025-10-16",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XNI": 0.142857
},
"unit": "per troy ounce"
}
This response provides the latest rates for various metals, including Nickel (XNI), which is essential for traders looking to make quick decisions based on current market conditions.
Historical Rates Endpoint
To access historical exchange rates for any date since 1999, you can use the following endpoint:
GET https://metals-api.com/api/historical?access_key=YOUR_API_KEY&date=2025-10-15
Example Response:
{
"success": true,
"timestamp": 1760504548,
"base": "USD",
"date": "2025-10-15",
"rates": {
"XNI": 0.140000
},
"unit": "per troy ounce"
}
This endpoint allows you to retrieve historical prices for Nickel, enabling you to analyze trends over time and make informed decisions based on past performance.
Time-Series Endpoint
To get exchange rates for a specific time period, you can use the time-series endpoint:
GET https://metals-api.com/api/timeseries?access_key=YOUR_API_KEY&start_date=2025-10-09&end_date=2025-10-16
Example Response:
{
"success": true,
"timeseries": true,
"start_date": "2025-10-09",
"end_date": "2025-10-16",
"base": "USD",
"rates": {
"2025-10-09": {
"XNI": 0.140000
},
"2025-10-16": {
"XNI": 0.142857
}
},
"unit": "per troy ounce"
}
This response provides a time series of Nickel prices, allowing developers to visualize trends and fluctuations over the specified period.
Convert Endpoint
To convert any amount from one metal to another or to/from USD, you can use the convert endpoint:
GET https://metals-api.com/api/convert?access_key=YOUR_API_KEY&from=USD&to=XNI&amount=1000
Example Response:
{
"success": true,
"query": {
"from": "USD",
"to": "XNI",
"amount": 1000
},
"info": {
"timestamp": 1760590948,
"rate": 0.142857
},
"result": 142.857,
"unit": "troy ounces"
}
This endpoint is particularly useful for traders who need to quickly convert values between different metals and currencies.
Fluctuation Endpoint
To track rate fluctuations between two dates, you can use the fluctuation endpoint:
GET https://metals-api.com/api/fluctuation?access_key=YOUR_API_KEY&start_date=2025-10-09&end_date=2025-10-16
Example Response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-09",
"end_date": "2025-10-16",
"base": "USD",
"rates": {
"XNI": {
"start_rate": 0.140000,
"end_rate": 0.142857,
"change": 0.002857,
"change_pct": 2.04
}
},
"unit": "per troy ounce"
}
This response provides insights into how Nickel prices have changed over the specified period, which is crucial for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
To get OHLC data for a specific time period, you can use the following endpoint:
GET https://metals-api.com/api/open-high-low-close?access_key=YOUR_API_KEY&date=2025-10-16
Example Response:
{
"success": true,
"timestamp": 1760590948,
"base": "USD",
"date": "2025-10-16",
"rates": {
"XNI": {
"open": 0.140000,
"high": 0.143000,
"low": 0.139000,
"close": 0.142857
}
},
"unit": "per troy ounce"
}
This endpoint is essential for traders who rely on technical analysis to make informed trading decisions based on price movements.
Bid/Ask Endpoint
To get current bid and ask prices for metals, you can use the bid/ask endpoint:
GET https://metals-api.com/api/bid-ask?access_key=YOUR_API_KEY
Example Response:
{
"success": true,
"timestamp": 1760590948,
"base": "USD",
"date": "2025-10-16",
"rates": {
"XNI": {
"bid": 0.142000,
"ask": 0.143000,
"spread": 0.001000
}
},
"unit": "per troy ounce"
}
This response provides crucial information for traders looking to understand market liquidity and make informed trading decisions.
Conclusion
Accessing LME Nickel (LME-NI) historical rates has never been easier, thanks to the comprehensive capabilities of the Metals-API. With a variety of endpoints designed to meet the needs of developers and traders, this API empowers users to harness the power of real-time and historical data for informed decision-making. Whether you are analyzing market trends, converting currencies, or tracking fluctuations, the Metals-API provides the tools necessary for success in the dynamic metal markets.
For more information on how to get started with the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metal symbols. Embrace the future of metal trading with the innovative solutions offered by the Metals-API.