Access Peruvian Sol (PEN) Historical Prices using this API
Access Peruvian Sol (PEN) Historical Prices using this API
The Peruvian Sol (PEN) is an essential currency in South America, particularly for those engaged in trade and investment in the region. With the rise of digital transformation in financial markets, accessing historical prices for the Peruvian Sol has become increasingly important for developers and analysts alike. The Metals-API provides a robust solution for accessing real-time and historical data on metals and currencies, including the Peruvian Sol. This blog post will delve into the capabilities of the Metals-API, focusing on how to access historical prices for the PEN and explore the innovative features that make this API a valuable tool for developers.
About Peruvian Sol (PEN)
The Peruvian Sol is the official currency of Peru, and it plays a crucial role in the country's economy. As the global market evolves, the demand for accurate and timely financial data has surged. Digital transformation in metal markets has paved the way for technological innovations that enhance data analytics and insights. The integration of smart technology into financial applications allows developers to create next-generation applications that can analyze trends, forecast prices, and provide valuable insights into market movements.
With the Metals-API, developers can harness the power of real-time data to build applications that track the performance of the Peruvian Sol against various metals and other currencies. This API not only provides access to current exchange rates but also offers historical data that can be invaluable for market analysis and decision-making.
API Description
The Metals-API is a powerful tool designed for developers who need access to real-time and historical data on metals and currencies. This API empowers users to build applications that can analyze market trends, perform currency conversions, and retrieve historical price data. The transformative potential of real-time metals data cannot be overstated, as it enables developers to create applications that respond to market changes instantly.
For more information on how to get started, visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, making it a versatile tool for developers. Here are some of the key features and their potential applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. Developers can use this data to create applications that display current market rates for the Peruvian Sol against various metals.
- Historical Rates Endpoint: 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, enabling them to analyze trends over time.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, which can be used to convert any amount from one currency to another. This is particularly useful for applications that require real-time conversion rates for the Peruvian Sol.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two dates of their choice, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, which can help in understanding market volatility and making informed trading decisions.
- Carat Endpoint: This feature provides information about gold rates by carat, which can be useful for applications focused on precious metals.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, allowing developers to track price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for developers working with industrial metals.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate access to the API.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API includes 14 endpoints, each providing different functionalities, allowing developers to choose the features that best suit their needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring developers have access to the latest symbols for their applications.
- News Endpoint: Retrieve the latest news articles related to various metals, which can enhance applications by providing contextual information.
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.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective implementation. Below are examples of various API endpoints and their responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1776384870,
"base": "USD",
"date": "2026-04-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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1776298470,
"base": "USD",
"date": "2026-04-16",
"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-10",
"end_date": "2026-04-17",
"base": "USD",
"rates": {
"2026-04-10": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-12": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-17": {
"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": 1776384870,
"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-10",
"end_date": "2026-04-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"
}
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1776384870,
"base": "USD",
"date": "2026-04-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1776384870,
"base": "USD",
"date": "2026-04-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"
}
Conclusion
Accessing historical prices for the Peruvian Sol (PEN) has never been easier, thanks to the innovative capabilities of the Metals-API. This API not only provides real-time exchange rates but also offers a wealth of historical data that can be invaluable for market analysis and decision-making. By leveraging the various endpoints available, developers can create applications that track price movements, analyze trends, and provide insights into the performance of the Peruvian Sol against metals and other currencies.
For those looking to dive deeper into the technical details, the Metals-API Documentation offers comprehensive guidance on implementation and usage. Additionally, the Metals-API Supported Symbols page provides a complete list of available symbols, ensuring developers have access to the latest data.
In conclusion, the Metals-API stands as a transformative tool in the realm of financial data, empowering developers to build next-generation applications that can respond to market changes in real-time. By integrating this API into their projects, developers can unlock the full potential of historical and real-time data, paving the way for informed decision-making and strategic planning in the ever-evolving financial landscape.