Query Nickel - LME 3-month (NI3M) Historical Prices with this API

Metals-API 6 min read
Query Nickel - LME 3-month (NI3M) Historical Prices with this API

Query Nickel - LME 3-month (NI3M) Historical Prices with this API

In the ever-evolving landscape of metal markets, the demand for accurate and timely data has never been more critical. Nickel, represented by the symbol XNI, is a key player in various industries, including electronics, automotive, and energy storage. As developers and analysts seek to harness the power of data analytics and smart technology integration, the Metals-API emerges as a transformative tool for accessing historical prices and real-time data for nickel and other metals. This blog post will delve into the capabilities of the Metals-API, focusing on how to query historical prices for nickel and explore the broader implications of digital transformation in metal markets.

About Nickel (XNI)

Nickel is a versatile metal known for its corrosion resistance and high melting point, making it essential in the production of stainless steel and various alloys. As industries increasingly adopt advanced technologies, the demand for nickel continues to rise. The digital transformation in metal markets has paved the way for innovative solutions that leverage data analytics and insights to optimize operations and enhance decision-making processes.

Technological advancements have enabled the integration of smart technologies into the metal supply chain, allowing for real-time monitoring and analysis of market trends. This shift not only improves efficiency but also provides stakeholders with the insights needed to navigate the complexities of the global metal market. As we look to the future, the possibilities for nickel and other metals are vast, with emerging trends such as electric vehicle production and renewable energy storage driving demand.

Metals-API Overview

The Metals-API is a powerful tool designed to provide developers with access to real-time and historical metal prices. With a user-friendly interface and comprehensive documentation, the API empowers users to build next-generation applications that can analyze and visualize metal market data. The API supports a wide range of endpoints, each offering unique functionalities that cater to various use cases.

One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, which is crucial for traders and analysts who need to make informed decisions quickly. The API's latest rates endpoint provides up-to-date information on metal prices, while the historical rates endpoint allows users to access data dating back to 2019. This combination of real-time and historical data is invaluable for conducting thorough market analyses and forecasting future trends.

Key Features and Endpoints

The Metals-API offers a variety of endpoints that cater to different needs. Below are some of the key features:

  • Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. For example, querying the latest rates for nickel might return:
  • {
    "success": true,
    "timestamp": 1763597003,
    "base": "USD",
    "date": "2025-11-20",
    "rates": {
    "XNI": 0.142857
    },
    "unit": "per troy ounce"
    }
  • Historical Rates Endpoint: Users can access historical rates for most metals dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices, which is essential for trend analysis. For instance:
  • {
    "success": true,
    "timestamp": 1763510603,
    "base": "USD",
    "date": "2025-11-19",
    "rates": {
    "XNI": 0.140000
    },
    "unit": "per troy ounce"
    }
  • 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. For example:
  • {
    "success": true,
    "timestamp": 1763597003,
    "base": "USD",
    "date": "2025-11-20",
    "rates": {
    "XNI": {
    "bid": 0.142000,
    "ask": 0.143000,
    "spread": 0.001000
    }
    },
    "unit": "per troy ounce"
    }
  • Convert Endpoint: This endpoint allows for the conversion of any amount from one metal to another or to/from USD. For instance, converting 1000 USD to nickel might yield:
  • {
    "success": true,
    "query": {
    "from": "USD",
    "to": "XNI",
    "amount": 1000
    },
    "info": {
    "timestamp": 1763597003,
    "rate": 0.142857
    },
    "result": 142.857,
    "unit": "troy ounces"
    }
  • Time-Series Endpoint: This feature allows users to query the API for daily historical rates between two dates of their choice, enabling comprehensive trend analysis over time. For example:
  • {
    "success": true,
    "timeseries": true,
    "start_date": "2025-11-13",
    "end_date": "2025-11-20",
    "base": "USD",
    "rates": {
    "2025-11-13": {
    "XNI": 0.140000
    },
    "2025-11-20": {
    "XNI": 0.142857
    }
    },
    "unit": "per troy ounce"
    }
  • Fluctuation Endpoint: This endpoint provides information about how prices fluctuate on a day-to-day basis, which is essential for understanding market volatility. For example:
  • {
    "success": true,
    "fluctuation": true,
    "start_date": "2025-11-13",
    "end_date": "2025-11-20",
    "base": "USD",
    "rates": {
    "XNI": {
    "start_rate": 0.140000,
    "end_rate": 0.142857,
    "change": 0.002857,
    "change_pct": 2.04
    }
    },
    "unit": "per troy ounce"
    }
  • Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific time period, which is crucial for traders looking to analyze price movements. For example:
  • {
    "success": true,
    "timestamp": 1763597003,
    "base": "USD",
    "date": "2025-11-20",
    "rates": {
    "XNI": {
    "open": 0.140000,
    "high": 0.143000,
    "low": 0.139000,
    "close": 0.142857
    }
    },
    "unit": "per troy ounce"
    }
  • Lowest/Highest Price Endpoint: This feature allows users to query the API to get the lowest and highest price for a specific date, providing insights into market extremes. For example:
  • {
    "success": true,
    "timestamp": 1763597003,
    "base": "USD",
    "date": "2025-11-20",
    "rates": {
    "XNI": {
    "lowest": 0.139000,
    "highest": 0.143000
    }
    },
    "unit": "per troy ounce"
    }
  • Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols, dating back to 2008. This is particularly useful for users interested in long-term trends and analysis.

Understanding API Responses

Each API response is structured to provide clear and actionable data. The success field indicates whether the request was successful, while the timestamp field provides the time at which the data was retrieved. The base field indicates the currency or metal used as a reference point, and the rates field contains the actual exchange rates for the requested metals.

For example, a successful response from the latest rates endpoint will include the current price of nickel in USD per troy ounce, allowing developers to integrate this data into their applications seamlessly. Understanding these response fields is crucial for developers looking to implement the API effectively.

Common Use Cases and Integration Strategies

Developers can leverage the Metals-API in various applications, from financial analysis tools to trading platforms. For instance, a trading application could utilize the latest rates and fluctuation endpoints to provide users with real-time pricing information and alerts based on market movements. Additionally, the historical rates endpoint can be used to generate reports and visualizations that help users understand price trends over time.

Another practical use case involves integrating the API with machine learning models to predict future price movements based on historical data. By analyzing patterns in the time-series data, developers can create predictive models that assist traders in making informed decisions.

Performance Optimization and Security Considerations

When integrating the Metals-API, developers should consider performance optimization strategies such as caching frequently accessed data to reduce API calls and improve response times. Additionally, implementing robust error handling and recovery strategies is essential to ensure a seamless user experience, especially in cases of network issues or API downtime.

Security is also a paramount concern when working with APIs. Developers should ensure that their API keys are kept confidential and not exposed in client-side code. Utilizing HTTPS for all API requests will help protect data in transit, and implementing rate limiting can prevent abuse of the API.

Conclusion

The Metals-API provides a comprehensive solution for accessing real-time and historical prices for nickel and other metals. By leveraging this powerful tool, developers can create innovative applications that enhance decision-making processes and optimize operations in the metal markets. As the industry continues to evolve, the integration of smart technologies and data analytics will play a crucial role in shaping the future of metal trading.

For more information on how to get started with the Metals-API, visit 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 transformative capabilities of the Metals-API.