Retrieve Nickel Pig Iron (NPI) Historical Prices easily using this API
Retrieve Nickel Pig Iron (NPI) Historical Prices Easily Using This API
In today's rapidly evolving digital landscape, the demand for accurate and real-time data is paramount, especially in the metal markets. Nickel Pig Iron (NPI), a crucial component in the production of stainless steel, has seen significant fluctuations in its historical prices. To navigate this dynamic market, developers and analysts can leverage the Metals-API, which provides comprehensive access to historical prices and real-time data for various metals, including Nickel (XNI).
About Nickel (XNI)
Nickel is a versatile metal that plays a vital 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, driven by its use in electric vehicle batteries and renewable energy technologies. This digital transformation in metal markets is facilitated by technological innovations that allow for better data analytics and insights.
The integration of smart technology in the metal industry has revolutionized how data is collected, analyzed, and utilized. With the advent of advanced data analytics, stakeholders can gain deeper insights into market trends, price fluctuations, and demand forecasts. The Metals-API stands at the forefront of this transformation, empowering developers to build next-generation applications that harness real-time metals data.
API Description
The Metals-API is a powerful tool designed for developers looking to access real-time and historical data for various metals. This API offers a wide range of functionalities, enabling users to retrieve the latest rates, historical prices, and even perform conversions between different metal currencies. The transformative potential of real-time metals data cannot be overstated, as it allows businesses to make informed decisions based on accurate and timely information.
With the Metals-API, developers can create applications that provide insights into market trends, allowing for better investment strategies and risk management. The API's capabilities extend beyond mere data retrieval; it empowers users to analyze price movements, track fluctuations, and even convert values between different currencies. This level of integration and accessibility is crucial for businesses operating in the fast-paced metal markets.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Each endpoint provides unique functionalities that can be leveraged for various applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Users can access the latest rates for Nickel (XNI) and other metals, enabling them to make timely decisions.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve historical prices for Nickel, allowing for in-depth market analysis.
- Bid And Ask Endpoint: This feature enables 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, allowing users to convert amounts between different metals or to/from USD. This is particularly useful for businesses dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and gold traders.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, which is crucial for traders looking to analyze price movements.
- Historical LME Endpoint: This endpoint allows access to historical rates for LME symbols dating back to 2008, providing a wealth of data for analysis.
- API Key: Each user is assigned a unique API key that must be included in API requests, ensuring secure access to the data.
- API Response: The API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each offering distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available metal symbols, ensuring users have access to the latest information.
- 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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Here are some examples of the API responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1771978962,
"base": "USD",
"date": "2026-02-25",
"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"
}
The above response shows the latest exchange rates for various metals, including Nickel (XNI). The "rates" object contains the price per troy ounce, which is essential for traders and analysts.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1771892562,
"base": "USD",
"date": "2026-02-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates for a specific date, allowing users to analyze past price movements and trends.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-18",
"end_date": "2026-02-25",
"base": "USD",
"rates": {
"2026-02-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-25": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response allows users to track price changes over a specified period, providing valuable insights into market trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1771978962,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates how to convert a specified amount from one metal to another. In this case, it shows the conversion of 1000 USD to troy ounces of gold (XAU).
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-18",
"end_date": "2026-02-25",
"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"
}
This endpoint provides insights into how metal prices fluctuate over a specified period, which is crucial for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1771978962,
"base": "USD",
"date": "2026-02-25",
"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"
}
The OHLC response provides critical data for traders, allowing them to analyze price movements throughout the trading day.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1771978962,
"base": "USD",
"date": "2026-02-25",
"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"
}
This endpoint provides current bid and ask prices for metals, which is essential for traders looking to execute buy or sell orders efficiently.
Conclusion
In conclusion, the Metals-API offers a robust and comprehensive solution for developers seeking to access historical prices and real-time data for Nickel Pig Iron (NPI) and other metals. By leveraging the various endpoints available, users can gain valuable insights into market trends, price fluctuations, and conversion rates. The API's capabilities extend beyond mere data retrieval, empowering businesses to make informed decisions based on accurate and timely information.
As the metal markets continue to evolve, the integration of advanced data analytics and smart technology will play a crucial role in shaping the future of the industry. The Metals-API stands as a vital tool for developers looking to harness the power of real-time metals data, enabling them to build innovative applications that drive efficiency and profitability.
For more information on how to get started with the Metals-API, visit the Metals-API Documentation and explore the extensive features available. Additionally, check out the Metals-API Supported Symbols page for a complete list of metal symbols and their specifications. With the right tools and insights, you can navigate the complexities of the metal markets with confidence.