Get Peruvian Sol (PEN) pricing information using this API
Get Peruvian Sol (PEN) Pricing Information Using Metals-API
The Peruvian Sol (PEN) is an essential currency in the South American financial landscape, particularly as Peru continues to evolve in the global market. With the rise of digital transformation in metal markets, the need for accurate and real-time pricing information has never been more critical. This is where the Metals-API comes into play, offering developers a powerful tool to access up-to-date data on metals and their corresponding values in various currencies, including the Peruvian Sol.
About Peruvian Sol (PEN)
The Peruvian Sol is not just a currency; it represents the economic heartbeat of Peru. As the country embraces technological innovation and advancement, the integration of smart technology into financial markets is reshaping how businesses operate. The demand for data analytics and insights has surged, allowing stakeholders to make informed decisions based on real-time data. The future of the Peruvian Sol is intertwined with these advancements, as it becomes increasingly important for businesses and developers to harness the power of data to navigate the complexities of the global market.
API Description
The Metals-API is a robust platform designed to provide real-time metals data, empowering developers to build next-generation applications. With its innovative capabilities, the API allows users to access a wealth of information, including current exchange rates, historical data, and conversion functionalities. This transformative potential enables businesses to integrate real-time pricing into their applications, enhancing user experience and operational efficiency.
For detailed documentation on how to utilize the API effectively, visit the Metals-API Documentation. Here, developers can find comprehensive guides on how to implement various features and endpoints.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, ensuring that developers have access to the information they require. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. This feature is crucial for applications 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 functionality allows developers to analyze trends over time, providing valuable insights into market movements.
- Bid And Ask Endpoint: This powerful feature retrieves real-time bid and ask prices for metals, enabling users to understand market dynamics and make informed trading decisions.
- Convert Endpoint: The API includes a dedicated currency conversion endpoint, allowing users to convert amounts from one currency to another seamlessly. This is particularly useful for businesses operating in multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is essential for analyzing trends and fluctuations over specific periods.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, providing insights into market volatility and helping users make strategic decisions.
- Carat Endpoint: This endpoint allows users to retrieve information about gold rates by carat, which is particularly useful for jewelers and gold traders.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, helping users identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides detailed pricing information, including open, high, low, and close prices for a specific date, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive market analysis.
- API Key: Each user is assigned a unique API key, which is required to access the API's features securely.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency across data retrieval.
- Available Endpoints: With 14 API endpoints, each providing distinct functionalities, developers have a comprehensive toolkit at their disposal.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest 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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1780531898,
"base": "USD",
"date": "2026-06-04",
"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": 1780445498,
"base": "USD",
"date": "2026-06-03",
"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-05-28",
"end_date": "2026-06-04",
"base": "USD",
"rates": {
"2026-05-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-04": {
"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": 1780531898,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-28",
"end_date": "2026-06-04",
"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": 1780531898,
"base": "USD",
"date": "2026-06-04",
"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": 1780531898,
"base": "USD",
"date": "2026-06-04",
"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 Peruvian Sol (PEN) plays a vital role in the financial ecosystem of Peru, and with the help of the Metals-API, developers can access a wealth of information that enhances their applications. By leveraging the API's capabilities, businesses can stay ahead of market trends, make informed decisions, and ultimately drive growth. The integration of real-time data analytics into financial applications is not just a trend; it is a necessity in today's fast-paced market.
For more information on how to implement these features and to explore the full potential of the Metals-API, visit the Metals-API Documentation and check out the Metals-API Supported Symbols for a comprehensive list of available currencies and metals.