How to Get Nepalese Rupee (NPR) Historical Prices with this API
How to Get Nepalese Rupee (NPR) Historical Prices with this API
The Nepalese Rupee (NPR) is an essential currency in South Asia, particularly for trade and tourism in Nepal. Understanding its historical prices can provide valuable insights for businesses, investors, and developers looking to integrate currency data into their applications. One of the most effective ways to access this information is through the Metals-API, which offers a robust set of features for retrieving real-time and historical exchange rates, including those for the Nepalese Rupee.
About Nepalese Rupee (NPR)
The Nepalese Rupee has undergone significant changes over the years, influenced by various economic factors, including inflation, trade balances, and geopolitical events. As the world moves towards digital transformation, the metal markets are also evolving, integrating technological innovations and advancements that allow for better data analytics and insights. The Metals-API stands at the forefront of this transformation, enabling developers to access real-time and historical data seamlessly.
With the integration of smart technology, developers can leverage the Metals-API to create applications that provide insights into currency fluctuations, historical trends, and predictive analytics. This API empowers users to explore future trends and possibilities in the currency market, making it an invaluable tool for anyone interested in the Nepalese Rupee and its historical prices.
API Description
The Metals-API is designed to provide developers with a comprehensive solution for accessing metals prices and currency conversion data. It offers a wide range of endpoints that allow users to retrieve real-time exchange rates, historical data, and various analytical insights. The API is built with innovation in mind, focusing on technological advancements that enhance the user experience and provide transformative potential for applications.
For detailed information on how to use the API, developers can refer to the Metals-API Documentation, which outlines the capabilities and functionalities of each endpoint. Additionally, users can explore the Metals-API Supported Symbols to understand the range of currencies and metals available for querying.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to serve specific needs. Hereβs a breakdown of some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various currencies, including NPR. Depending on your subscription plan, the API updates this data every 60 minutes, every 10 minutes, or even more frequently, ensuring that you have access to the most current information.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, developers can query the Metals-API for historical rates, allowing for in-depth analysis of trends over time.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, providing insights into market conditions and helping traders make informed decisions.
- Convert Endpoint: The conversion endpoint allows users to convert any amount from one currency to another. For example, converting NPR to USD or vice versa can be done seamlessly, making it easier for businesses to handle transactions across borders.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is particularly useful for analyzing trends and making predictions based on past performance.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and helping traders strategize their investments.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which can be particularly useful for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the API for the lowest and highest prices of metals over a specified period, helping traders identify market trends.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed price information, including open, high, low, and close prices for a specific date, allowing for comprehensive market analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a wealth of data for analysis.
- API Key: Each user is assigned a unique API key, which is required for accessing the API. This key must be included in the API base URL's access_key parameter to authenticate requests.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data presentation.
- Available Endpoints: The API includes 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, making it easy for developers to find the symbols they need.
- Intraday Endpoint: This endpoint allows users to query intraday exchange rate data for a single symbol, providing real-time insights into market movements.
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 Symbols page. This resource is invaluable for developers looking to integrate specific metals and currencies into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1789258454,
"base": "USD",
"date": "2026-09-13",
"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": 1789172054,
"base": "USD",
"date": "2026-09-12",
"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-09-06",
"end_date": "2026-09-13",
"base": "USD",
"rates": {
"2026-09-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-09-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-09-13": {
"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": 1789258454,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-09-06",
"end_date": "2026-09-13",
"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": 1789258454,
"base": "USD",
"date": "2026-09-13",
"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": 1789258454,
"base": "USD",
"date": "2026-09-13",
"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 accessing historical prices of the Nepalese Rupee (NPR) and other currencies. By leveraging its various endpoints, developers can create applications that offer real-time data, historical insights, and analytical capabilities that are essential for making informed decisions in today's fast-paced financial environment.
With features such as the Latest Rates Endpoint, Historical Rates Endpoint, and Time-Series Endpoint, users can easily access the information they need to analyze trends and fluctuations in the currency market. The API's comprehensive documentation and support for a wide range of symbols make it an ideal choice for developers looking to integrate currency data into their applications.
For more information on how to get started with the Metals-API, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation. Don't forget to check the Symbols List to find all available currencies and metals for your projects.