Extract LME Nickel (LME-NI) Historical Prices from this API
Extract LME Nickel (LME-NI) Historical Prices from this API
In the ever-evolving landscape of metal markets, the demand for accurate and timely data has never been more critical. One of the most significant players in this arena is Nickel, represented by the symbol XNI. As industries increasingly rely on digital transformation and technological innovation, the ability to access historical prices and real-time data through APIs like Metals-API is revolutionizing how developers and businesses operate. This blog post will explore how to extract historical prices for Nickel using the Metals-API, highlighting its capabilities, features, and the transformative potential of real-time metals data.
About Nickel (XNI)
Nickel is a versatile metal that plays a crucial role in various industries, particularly in the production of stainless steel and batteries. As the world shifts towards sustainable energy solutions, the demand for Nickel is expected to rise, making it essential for developers and businesses to have access to accurate pricing data. The digital transformation in metal markets has led to the integration of smart technology and data analytics, enabling stakeholders to make informed decisions based on real-time insights.
The technological advancements in data collection and analysis have paved the way for innovative applications in the metal industry. With the Metals-API, developers can harness the power of data to build next-generation applications that provide insights into market trends, price fluctuations, and historical data. This API empowers users to access a wealth of information, enabling them to stay ahead in a competitive market.
API Description
The Metals-API is a powerful tool that provides access to real-time and historical metal prices, including Nickel. It offers a range of endpoints that cater to various needs, from retrieving the latest rates to accessing historical data dating back to 2008. The API is designed with innovation in mind, allowing developers to integrate it seamlessly into their applications.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated at intervals depending on the user's subscription plan. This capability ensures that businesses can react quickly to market changes, making it an invaluable resource for traders and analysts alike. For more detailed information, you can refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that cater to the needs of developers and businesses. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, including Nickel. Depending on your subscription plan, the API can return data updated every 60 minutes, every 10 minutes, or even more frequently.
- Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, developers can retrieve historical pricing data, which is crucial for market analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time Bid and Ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts from one metal to another or to/from USD. This feature is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, facilitating in-depth analysis of price trends over time.
- Fluctuation Endpoint: Users can track how prices fluctuate on a day-to-day basis, providing valuable insights into market volatility and trends.
- Carat Endpoint: This endpoint provides information about Gold rates by Carat, allowing users to access detailed pricing data for specific gold purity levels.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, which is essential for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific date, offering a comprehensive view of daily price movements.
- Historical LME Endpoint: This feature allows users to access historical rates specifically for LME symbols, dating back to 2008, making it invaluable for those analyzing long-term trends.
- API Key: Each user is assigned a unique API key, which is required for authentication when making requests to the API.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API includes 14 endpoints, each providing different functionalities, ensuring comprehensive coverage of user needs.
- Supported Symbols Endpoint: This endpoint returns all available metal symbols, allowing users to easily identify the metals they can query.
- 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. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1773101885,
"base": "USD",
"date": "2026-03-10",
"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": 1773015485,
"base": "USD",
"date": "2026-03-09",
"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": "2026-03-03",
"end_date": "2026-03-10",
"base": "USD",
"rates": {
"2026-03-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-10": {
"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": 1773101885,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-03",
"end_date": "2026-03-10",
"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) Price Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1773101885,
"base": "USD",
"date": "2026-03-10",
"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": 1773101885,
"base": "USD",
"date": "2026-03-10",
"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
The Metals-API is a game-changer for developers and businesses looking to access real-time and historical pricing data for metals like Nickel. By leveraging the capabilities of this API, users can build applications that provide valuable insights into market trends, price fluctuations, and historical data analysis. The integration of smart technology and data analytics into the metal markets is paving the way for a more informed and responsive industry.
As the demand for metals continues to grow, having access to accurate and timely data will be crucial for making informed decisions. The Metals-API not only empowers developers with the tools they need to succeed but also opens up new possibilities for innovation in the metal markets. For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.