Retrieve Weekly Pakistani Rupee (PKR) Historical Prices using this API
Retrieve Weekly Pakistani Rupee (PKR) Historical Prices using this API
In the ever-evolving landscape of financial markets, the ability to access and analyze historical currency data is crucial for developers and analysts alike. One such powerful tool is the Metals-API, which allows users to retrieve weekly Pakistani Rupee (PKR) historical prices along with a plethora of other functionalities. This blog post will delve into the capabilities of the Metals-API, focusing on its innovative features, technical specifications, and practical applications for developers looking to harness real-time and historical metals data.
About Nickel (NI)
Nickel, a key player in the metals market, is not just a commodity; it represents the intersection of digital transformation and technological innovation. As industries increasingly rely on data analytics and smart technology integration, the demand for accurate and timely information about metals like nickel has surged. The Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to build next-generation applications that can leverage real-time data for decision-making and strategic planning.
With the rise of data analytics, developers can now gain insights into market trends, price fluctuations, and historical data patterns. This empowers businesses to make informed decisions, optimize their operations, and stay ahead of the competition. The future of the metals market is bright, and the Metals-API is a vital component of this evolution.
API Description
The Metals-API is a robust and versatile API that provides real-time and historical data for various metals, including precious metals like gold and silver, as well as industrial metals such as nickel and copper. This API is designed to empower developers by offering a seamless way to integrate metals data into their applications. With a focus on innovation and technological advancement, the Metals-API enables users to access a wealth of information that can drive business decisions and enhance user experiences.
For more detailed information, you can visit the Metals-API Website or explore the Metals-API Documentation for comprehensive guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to specific needs of developers and businesses. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes or more frequently depending on your subscription plan. It allows developers to access the most current prices, which is essential for applications that require up-to-the-minute data.
- 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 retrieve historical data, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market dynamics and helping traders make informed decisions.
- Convert Endpoint: The conversion endpoint enables users to convert any amount from one currency to another, facilitating transactions and financial calculations across different currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and helping businesses manage risk.
- Carat Endpoint: This endpoint provides information about gold rates by carat, which is particularly useful for jewelers and those in the luxury goods market.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides the open, high, low, and close prices for a specific date, which is essential for traders looking to analyze market performance.
- Historical LME Endpoint: Users can access historical rates for LME symbols dating back to 2008, which is crucial for those involved in trading and investment.
- API Key: Each user is assigned a unique API key that must be included in the 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 for easy integration.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, 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.
For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1778976769,
"base": "USD",
"date": "2026-05-17",
"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"
}
This response indicates a successful query, providing the latest exchange rates for various metals relative to USD. The "rates" object contains the current price for each metal, which can be utilized in applications requiring real-time data.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1778890369,
"base": "USD",
"date": "2026-05-16",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates for a specific date. The "rates" object provides the exchange rates for that date, allowing developers to analyze past trends and make forecasts.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-05-10",
"end_date": "2026-05-17",
"base": "USD",
"rates": {
"2026-05-10": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-12": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-17": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response illustrates how to obtain exchange rates over a specified time period. The "rates" object contains nested objects for each date, providing a comprehensive view of price movements.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1778976769,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert amounts between different metals or currencies. The response includes the conversion rate and the result of the conversion, which is essential for financial calculations.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-10",
"end_date": "2026-05-17",
"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 tracks fluctuations in metal prices over a specified period. The response details the starting and ending rates, along with the change in value and percentage change, which are crucial for traders assessing market volatility.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1778976769,
"base": "USD",
"date": "2026-05-17",
"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"
}
This endpoint provides critical market data, including the opening, highest, lowest, and closing prices for a specific date. This information is vital for traders and analysts looking to evaluate market performance.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1778976769,
"base": "USD",
"date": "2026-05-17",
"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 response provides the current bid and ask prices for metals, along with the spread. This information is essential for traders looking to execute buy or sell orders effectively.
Conclusion
The Metals-API is an invaluable resource for developers seeking to integrate real-time and historical metals data into their applications. With its comprehensive suite of endpoints, including the ability to retrieve weekly Pakistani Rupee (PKR) historical prices, the API empowers users to make informed decisions based on accurate and timely information.
By leveraging the capabilities of the Metals-API, developers can create innovative applications that harness the power of data analytics, enabling businesses to optimize their operations and stay competitive in the dynamic metals market. For further exploration, visit the Metals-API Website and dive into the Metals-API Documentation for detailed guidance on implementation.
In summary, the Metals-API not only provides access to essential metals data but also opens up a world of possibilities for developers to innovate and enhance their applications. Whether you are tracking price fluctuations, analyzing historical trends, or converting currencies, the Metals-API is your go-to solution for all things related to metals data.