Retrieve Peruvian Sol (PEN) Historical Prices with this API
Retrieve Peruvian Sol (PEN) Historical Prices with this API
The Peruvian Sol (PEN) is an essential currency in the South American financial landscape, and understanding its historical prices is crucial for traders, investors, and developers alike. With the advent of digital transformation in the metal markets, accessing real-time and historical data has never been easier, thanks to innovative solutions like the Metals-API. This API provides a comprehensive suite of tools for retrieving historical prices, allowing developers to integrate valuable insights into their applications seamlessly.
About Peruvian Sol (PEN)
The Peruvian Sol is not just a currency; it represents the economic pulse of Peru. As the country continues to embrace technological innovation and advancement, the demand for accurate and timely financial data has surged. The integration of smart technology into financial markets has paved the way for enhanced data analytics and insights, enabling stakeholders to make informed decisions based on real-time information.
In the context of the Peruvian Sol, understanding historical prices is vital for various applications, including trading platforms, financial analysis tools, and economic research. The ability to track fluctuations in the currency's value against precious metals like gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD) can provide critical insights into market trends and investment opportunities.
API Description
The Metals-API is a powerful tool designed to empower developers with real-time metals data. This API offers a wide range of functionalities, enabling users to build next-generation applications that require accurate and timely information about metal prices and currency conversions.
With the Metals-API, developers can access various endpoints that cater to different needs, from retrieving the latest rates to historical data analysis. The API's capabilities extend beyond mere data retrieval; it allows for advanced analytics, enabling users to track trends, fluctuations, and even perform conversions between different currencies and metals.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to provide specific functionalities that cater to the diverse needs of developers. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. You can query the Metals-API for historical rates by appending a date in the format YYYY-MM-DD. This is particularly useful for analyzing trends over time.
- Bid and Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, which can be used to convert any amount from one currency to another, facilitating seamless transactions across different markets.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: With this feature, you can retrieve information about how currencies fluctuate on a day-to-day basis, helping you understand market volatility.
- Carat Endpoint: This endpoint provides information about gold rates by carat, allowing jewelers and investors to track the value of gold in various forms.
- Lowest/Highest Price Endpoint: This feature allows you to query the API to get the lowest and highest price for a specified date, which can be crucial for traders looking to maximize their profits.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed OHLC data for a specific time period, enabling traders to analyze market trends effectively.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is essential for those involved in the trading of metals on the London Metal Exchange.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The exchange rates delivered by the Metals-API are relative to USD by default, and all data is returned in a structured JSON format.
- Available Endpoints: The Metals-API offers 14 different endpoints, each providing unique functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring you have access to the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
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
Understanding how to interact with the Metals-API is crucial for effective implementation. 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": 1773447275,
"base": "USD",
"date": "2026-03-14",
"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": 1773360875,
"base": "USD",
"date": "2026-03-13",
"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-03-07",
"end_date": "2026-03-14",
"base": "USD",
"rates": {
"2026-03-07": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-09": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-14": {
"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": 1773447275,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-07",
"end_date": "2026-03-14",
"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": 1773447275,
"base": "USD",
"date": "2026-03-14",
"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": 1773447275,
"base": "USD",
"date": "2026-03-14",
"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
In conclusion, the ability to retrieve historical prices for the Peruvian Sol (PEN) using the Metals-API opens up a world of possibilities for developers and financial analysts alike. By leveraging the API's extensive features, including real-time rates, historical data, and advanced analytics, users can gain valuable insights into market trends and make informed decisions.
As the financial landscape continues to evolve with technological advancements, the integration of APIs like Metals-API will play a crucial role in shaping the future of financial data accessibility. Whether you are building a trading platform, conducting economic research, or developing financial applications, the Metals-API provides the tools necessary to succeed in a rapidly changing environment.
For more information on how to get started, explore the Metals-API Documentation and discover the full range of functionalities available. Additionally, refer to the Metals-API Supported Symbols page to familiarize yourself with the various metal symbols you can work with.