Get Accurate Pakistani Rupee (PKR) Prices in Multiple Currencies with this API
Get Accurate Pakistani Rupee (PKR) Prices in Multiple Currencies with this API
In today's global economy, having access to accurate and real-time currency exchange rates is crucial for businesses and developers alike. The Metals-API provides a robust solution for obtaining accurate Pakistani Rupee (PKR) prices in various currencies. This API not only offers real-time data but also historical rates, making it an invaluable tool for financial analysis, trading, and market research.
About Nickel (NI)
Nickel, represented by the symbol NI, 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 also evolving. Technological innovations and advancements in data analytics are reshaping how we understand and interact with metal prices. The integration of smart technology into trading platforms allows for real-time insights and predictive analytics, enabling businesses to make informed decisions.
Future trends indicate a growing reliance on data-driven strategies in the metal markets. With the Metals-API, developers can harness the power of real-time metals data to build next-generation applications that cater to the evolving needs of the market.
API Description
The Metals-API is designed to empower developers with the tools needed to access real-time and historical metals data. This API enables users to build applications that can track metal prices, perform currency conversions, and analyze market trends. With its innovative features, the Metals-API stands out as a transformative solution in the financial technology landscape.
For detailed information on how to implement and utilize the API, refer to the Metals-API Documentation. This resource provides comprehensive guidance on the API's capabilities, endpoints, and usage examples.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that cater to different business needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is essential for businesses that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates dating back to 2019 by appending a specific date in the format YYYY-MM-DD. This endpoint is invaluable for trend analysis and financial forecasting.
- Bid And Ask Endpoint: Retrieve real-time Bid and Ask prices for metals, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: This feature allows users to convert any amount from one currency to another, facilitating seamless transactions across different currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing insights into price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and precious metal traders.
- Lowest/Highest Price Endpoint: 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: Get open, high, low, and close prices for a specific time period, essential for traders analyzing market trends.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market changes over time.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates are delivered relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals, ensuring you have the latest information at your fingertips.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
For a complete list of supported symbols, visit the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for developers looking to integrate it into their applications. 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": 1776039710,
"base": "USD",
"date": "2026-04-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": 1775953310,
"base": "USD",
"date": "2026-04-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-04-06",
"end_date": "2026-04-13",
"base": "USD",
"rates": {
"2026-04-06": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-08": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-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": 1776039710,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-04-06",
"end_date": "2026-04-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": 1776039710,
"base": "USD",
"date": "2026-04-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": 1776039710,
"base": "USD",
"date": "2026-04-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 is a powerful tool for developers looking to access accurate Pakistani Rupee (PKR) prices in multiple currencies. With its extensive range of endpoints, including real-time rates, historical data, and conversion capabilities, this API empowers businesses to make informed decisions based on reliable data. By leveraging the innovative features of the Metals-API, developers can create applications that not only meet current market demands but also anticipate future trends.
For further exploration of the API's capabilities, visit the Metals-API Documentation and discover how to integrate these features into your applications. Additionally, for a complete list of supported symbols, check out the Metals-API Supported Symbols page. With the right tools and insights, you can stay ahead in the dynamic world of metal trading and currency exchange.