Get up-to-date Nigerian Naira (NGN) prices using this API
Get up-to-date Nigerian Naira (NGN) prices using this API
In today's fast-paced financial landscape, staying informed about the latest currency exchange rates is crucial for businesses and developers alike. The Nigerian Naira (NGN) is no exception, as it plays a significant role in the West African economy. To facilitate access to real-time data, the Metals-API offers a robust solution for retrieving up-to-date prices and exchange rates for various metals and currencies, including the NGN. This blog post will delve into the capabilities of the Metals-API, focusing on its innovative features, endpoints, and how it can empower developers to create next-generation applications.
About Nickel (NI)
Nickel is a vital metal in various industries, particularly in the production of stainless steel and batteries. As the world moves towards digital transformation, the metal markets are experiencing significant changes driven by technological innovation and advancement. The integration of smart technology and data analytics is reshaping how businesses interact with metal markets, providing insights that were previously unattainable.
With the rise of electric vehicles and renewable energy technologies, the demand for nickel is expected to surge. This trend highlights the importance of having access to accurate and real-time data regarding nickel prices and market fluctuations. The Metals-API serves as a powerful tool for developers looking to harness this data, enabling them to build applications that can analyze market trends and make informed decisions.
API Description
The Metals-API is a comprehensive JSON API that provides real-time and historical data for various metals and currencies. Its capabilities extend beyond simple price retrieval; it empowers developers to create applications that can analyze, visualize, and interpret market data effectively. By leveraging the transformative potential of real-time metals data, developers can build solutions that cater to the needs of businesses and individuals alike.
For detailed information on how to utilize the API, developers can refer to the Metals-API Documentation. This resource provides comprehensive guidance on API usage, including authentication, available endpoints, and response structures.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that cater to different use cases. Below are some of the key features and their potential applications:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for businesses that require up-to-the-minute pricing information to make timely decisions.
- Historical Rates Endpoint: Access to historical rates dating back to 2019 allows developers to analyze trends over time. By appending a specific date in the format YYYY-MM-DD, users can retrieve historical data for any currency, including the NGN.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals. Understanding these prices is crucial for traders and investors looking to make informed decisions based on market conditions.
- Convert Endpoint: The conversion endpoint allows users to convert any amount from one currency to another. This feature is particularly useful for businesses operating in multiple currencies, as it simplifies financial transactions.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two dates of their choice. This endpoint is invaluable for analyzing price movements and understanding market dynamics over specific periods.
- Fluctuation Endpoint: This endpoint provides insights into how currencies fluctuate on a day-to-day basis. By tracking these fluctuations, businesses can better understand market volatility and adjust their strategies accordingly.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and gold traders. This feature allows for precise pricing based on the quality of gold.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest prices for a specified date. This information is crucial for traders looking to identify optimal buying and selling points.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can obtain OHLC data for a specific time period, providing a comprehensive view of price movements. This data is essential for technical analysis and trading strategies.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for those involved in trading metals on the London Metal Exchange.
- API Key: Each user receives a unique API key that must be included in the API base URL's access_key parameter. This key is essential for authentication and ensuring secure access to the API.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format. Understanding the response structure is critical for developers to effectively utilize the data.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing distinct functionalities. Developers should familiarize themselves with these endpoints to maximize their applications' capabilities.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metal symbols. Accessing this information is crucial for developers to ensure they are using the correct symbols in their applications.
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
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1785111062,
"base": "USD",
"date": "2026-07-27",
"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": 1785024662,
"base": "USD",
"date": "2026-07-26",
"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-07-20",
"end_date": "2026-07-27",
"base": "USD",
"rates": {
"2026-07-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-27": {
"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": 1785111062,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-20",
"end_date": "2026-07-27",
"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": 1785111062,
"base": "USD",
"date": "2026-07-27",
"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": 1785111062,
"base": "USD",
"date": "2026-07-27",
"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 provides a powerful and flexible solution for developers seeking to access real-time and historical data for metals and currencies, including the Nigerian Naira (NGN). By leveraging the various endpoints available, developers can create applications that analyze market trends, track fluctuations, and facilitate currency conversions with ease. The API's comprehensive documentation and support for a wide range of symbols make it an invaluable resource for anyone involved in the financial sector.
As the demand for accurate and timely data continues to grow, the Metals-API stands out as a leader in the field, enabling businesses to make informed decisions based on real-time insights. For more information on how to get started, visit the Metals-API Website and explore the extensive Metals-API Documentation to unlock the full potential of this innovative API.