Get LME Nickel (LME-NI) Daily Historical Prices using this API

Get LME Nickel (LME-NI) Daily Historical Prices using this API
In the ever-evolving landscape of metal markets, the demand for real-time data has never been more critical. For developers and businesses looking to access historical prices of metals like Nickel (symbol: XNI), the Metals-API offers a robust solution. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve daily historical prices for Nickel and explore the broader implications of digital transformation in the metal markets.
Metals-API Information
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical metal prices. This API is particularly useful for financial analysts, traders, and developers who need accurate and timely data to make informed decisions. With its comprehensive set of features, the Metals-API empowers users to build next-generation applications that leverage data analytics and insights.
About Nickel (XNI)
Nickel is a versatile metal widely used in various industries, including electronics, automotive, and construction. Its unique properties, such as resistance to corrosion and high strength, make it an essential component in the production of stainless steel and batteries. As the world shifts towards sustainable energy solutions, the demand for Nickel is expected to rise, particularly in electric vehicle batteries.
The digital transformation in metal markets is reshaping how businesses operate. Technological innovations, such as blockchain and IoT, are enhancing transparency and efficiency in metal trading. Data analytics plays a crucial role in this transformation, allowing stakeholders to gain insights into market trends and price fluctuations. By integrating smart technology, companies can optimize their supply chains and improve decision-making processes.
Looking ahead, the future of Nickel and other metals will likely be influenced by advancements in technology and changing market dynamics. As the demand for electric vehicles grows, Nickel's role in battery production will become increasingly significant. This shift presents opportunities for developers to create applications that track Nickel prices and provide insights into market trends.
API Description
The Metals-API is designed to provide developers with a seamless experience when accessing metal price data. With a focus on innovation and technological advancement, this API allows users to retrieve real-time and historical prices for various metals, including Nickel. The API's capabilities extend beyond simple price retrieval; it offers a range of endpoints that cater to different data needs.
For those interested in exploring the API's features, the Metals-API Documentation provides comprehensive guidance on how to implement and utilize the API effectively. The documentation covers everything from authentication to endpoint usage, ensuring that developers have all the information they need to get started.
Key Features and Endpoints
The Metals-API offers several key features that enhance its functionality:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes or more frequently. This feature is essential for traders who need to stay informed about current market conditions.
- Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019. By appending a specific date to the API call, developers can retrieve past prices, making it easier to analyze trends over time.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD. This feature is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates. It is invaluable for analyzing price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- Carat Endpoint: This feature allows users to retrieve information about Gold rates by Carat, catering to specific market needs.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, which is crucial for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, allowing for detailed market analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols, dating back to 2008, making it a valuable resource for historical analysis.
- API Key: The API Key is a unique identifier that must be included in API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API features a variety of endpoints, each designed to fulfill specific data needs, ensuring comprehensive coverage of metal pricing.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, allowing users to stay informed about the API's offerings.
- Gold Price India Endpoint: Users can retrieve the latest gold price in India using this dedicated endpoint, catering to regional market needs.
- News Endpoint: The API allows users to retrieve the latest news articles related to various metals, keeping developers informed about market developments.
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. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. Below are examples of various API endpoints and their corresponding responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1746169220,
"base": "USD",
"date": "2025-05-02",
"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": 1746082820,
"base": "USD",
"date": "2025-05-01",
"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": "2025-04-25",
"end_date": "2025-05-02",
"base": "USD",
"rates": {
"2025-04-25": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-27": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-02": {
"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": 1746169220,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-25",
"end_date": "2025-05-02",
"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": 1746169220,
"base": "USD",
"date": "2025-05-02",
"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": 1746169220,
"base": "USD",
"date": "2025-05-02",
"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
In conclusion, the Metals-API provides a comprehensive and innovative solution for accessing real-time and historical prices of metals like Nickel. With its extensive range of features and endpoints, developers can build applications that leverage data analytics and insights to make informed decisions in the metal markets. The API's capabilities, such as the Latest Rates, Historical Rates, and Time-Series endpoints, empower users to analyze market trends and fluctuations effectively.
As the demand for metals continues to grow, particularly in the context of sustainable energy solutions, the importance of accurate and timely data cannot be overstated. By utilizing the Metals-API, developers can stay ahead of the curve and create applications that meet the evolving needs of the market. For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals.
Embrace the future of metal trading with the Metals-API and unlock the potential of real-time data in your applications.