Step-by-step guide to Get Nickel - LME 3-month (NI3M) prices using this API
Step-by-step guide to Get Nickel - LME 3-month (NI3M) prices using this API
In the rapidly evolving world of metals trading, having access to real-time data is crucial for making informed decisions. This is particularly true for Nickel (XNI), a vital component in various industries, including battery production and stainless steel manufacturing. In this guide, we will explore how to utilize the Metals-API to obtain Nickel prices, specifically focusing on the LME 3-month (NI3M) prices. We will delve into the capabilities of the API, its endpoints, and how developers can leverage this technology to enhance their applications.
About Nickel (XNI)
Nickel is a key metal in the global market, primarily used in the production of stainless steel and batteries. As industries shift towards greener technologies, the demand for Nickel is expected to rise significantly. The digital transformation in metal markets has led to the integration of advanced technologies such as data analytics, smart technology, and real-time data access. This transformation allows stakeholders to make data-driven decisions, optimize their operations, and stay ahead of market trends.
With the Metals-API, developers can access comprehensive data on Nickel and other metals, enabling them to build innovative applications that provide insights into market fluctuations, historical trends, and real-time pricing. The API serves as a bridge between raw data and actionable insights, empowering users to harness the power of data analytics in their operations.
API Description
The Metals-API is designed to provide real-time and historical data on various metals, including Nickel. It offers a range of endpoints that allow developers to access the latest rates, historical data, and conversion features. The API is built with a focus on technological advancement and innovation, making it an essential tool for developers looking to create next-generation applications.
For more detailed information on how to get started, refer to the Metals-API Documentation, which provides comprehensive guidance on using the API effectively.
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 Nickel and other metals. Depending on your subscription plan, the data is updated every 60 minutes or every 10 minutes, ensuring you have the most current information at your fingertips.
- Historical Rates Endpoint: Access historical rates for Nickel dating back to 2019. This feature allows you to analyze past trends and make informed predictions about future price movements.
- Bid And Ask Endpoint: Retrieve real-time Bid and Ask prices for Nickel, giving you insights into market demand and supply.
- Convert Endpoint: Easily convert any amount of Nickel from one currency to another, facilitating seamless transactions across different markets.
- Time-Series Endpoint: Query the API for daily historical rates between two dates, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how Nickel prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for Nickel over a specified period, helping you identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for Nickel, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols, including Nickel, dating back to 2008.
- News Endpoint: Stay updated with the latest news articles related to Nickel and other metals, ensuring you are informed about market developments.
List of Symbols
The Metals-API provides access to a comprehensive range of metal symbols, including Nickel (XNI). For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
To illustrate how the Metals-API works, let's explore some example responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1777853447,
"base": "USD",
"date": "2026-05-04",
"rates": {
"XNI": 0.142857
},
"unit": "per troy ounce"
}
This response indicates that the current price of Nickel is 0.142857 USD per troy ounce. The success field confirms that the request was successful, while the timestamp provides the time of the data retrieval.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1777767047,
"base": "USD",
"date": "2026-05-03",
"rates": {
"XNI": 0.140000
},
"unit": "per troy ounce"
}
This response shows the historical price of Nickel on May 3, 2026, which was 0.140000 USD per troy ounce. Historical data is crucial for analyzing trends and making predictions.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-04-27",
"end_date": "2026-05-04",
"base": "USD",
"rates": {
"2026-04-27": {
"XNI": 0.138000
},
"2026-05-04": {
"XNI": 0.142857
}
},
"unit": "per troy ounce"
}
This example demonstrates how to retrieve Nickel prices over a specific time period. The response includes the prices for each date within the specified range, allowing for detailed analysis of price movements.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XNI",
"amount": 1000
},
"info": {
"timestamp": 1777853447,
"rate": 0.142857
},
"result": 142.857,
"unit": "troy ounces"
}
This response shows the conversion of 1000 USD to Nickel, resulting in 142.857 troy ounces. The rate field indicates the conversion rate at the time of the request.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-27",
"end_date": "2026-05-04",
"base": "USD",
"rates": {
"XNI": {
"start_rate": 0.138000,
"end_rate": 0.142857,
"change": 0.004857,
"change_pct": 3.51
}
},
"unit": "per troy ounce"
}
This example illustrates how to track fluctuations in Nickel prices over a specified period. The response provides the starting and ending rates, as well as the absolute and percentage changes.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1777853447,
"base": "USD",
"date": "2026-05-04",
"rates": {
"XNI": {
"open": 0.140000,
"high": 0.143000,
"low": 0.138000,
"close": 0.142857
}
},
"unit": "per troy ounce"
}
This response provides the OHLC data for Nickel on May 4, 2026. This information is essential for traders who rely on technical analysis to make trading decisions.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1777853447,
"base": "USD",
"date": "2026-05-04",
"rates": {
"XNI": {
"bid": 0.142000,
"ask": 0.143000,
"spread": 0.001000
}
},
"unit": "per troy ounce"
}
This example shows the current bid and ask prices for Nickel, along with the spread. Understanding bid and ask prices is crucial for traders looking to execute orders efficiently.
Conclusion
The Metals-API provides a powerful tool for developers looking to access real-time and historical data on Nickel and other metals. By utilizing the various endpoints, developers can create applications that offer valuable insights into market trends, price fluctuations, and historical data analysis. The integration of smart technology and data analytics in the metals market is transforming how stakeholders interact with this vital resource.
For more information on how to implement the Metals-API in your projects, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals. With the right tools and data, you can stay ahead in the competitive metals market.