Retrieve Cambodian Riel (KHR) Historical Prices with this API
Retrieve Cambodian Riel (KHR) Historical Prices with this API
The Cambodian Riel (KHR) is a vital currency in Southeast Asia, and understanding its historical prices is essential for developers and financial analysts alike. With the rise of digital transformation in the metal markets, leveraging APIs like Metals-API can provide invaluable insights into currency fluctuations and metal prices. This blog post will explore how to retrieve historical prices of the Cambodian Riel using the Metals-API, focusing on its innovative features, technical capabilities, and transformative potential in the realm of real-time metals data.
About Cambodian Riel (KHR)
The Cambodian Riel is the official currency of Cambodia, and it plays a crucial role in the country's economy. As the nation continues to embrace technological innovation and advancement, the integration of smart technology into financial markets is becoming increasingly important. The ability to analyze historical data and gain insights into currency trends can empower developers to create applications that enhance financial decision-making.
In the context of the Cambodian Riel, the Metals-API offers a robust platform for accessing historical prices and exchange rates. By utilizing data analytics, developers can harness the power of real-time information to build applications that cater to the needs of businesses and consumers alike. The future of currency management lies in the ability to integrate these insights into everyday financial operations.
API Description
The Metals-API is a powerful tool designed to provide developers with access to real-time and historical metals data, including exchange rates for various currencies, including the Cambodian Riel. This API empowers developers to build next-generation applications that can analyze market trends, track fluctuations, and convert currencies seamlessly. With a focus on innovation and technological advancement, the Metals-API is transforming how businesses interact with financial data.
For more information on how to utilize this API, you can visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing developers to retrieve essential data efficiently. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data, updated based on your subscription plan. Depending on the plan, you can receive updates every 60 minutes or even every 10 minutes. This feature is crucial for applications that require up-to-the-minute data for accurate financial analysis.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date (YYYY-MM-DD) to the API request, developers can retrieve historical exchange rates for the Cambodian Riel, allowing for in-depth analysis of market trends over time.
- Bid And Ask Endpoint: This powerful feature enables developers to retrieve real-time bid and ask prices for metals. Understanding these prices is essential for traders and investors looking to make informed decisions based on market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another. This is particularly useful for businesses that operate in multiple currencies and need to manage conversions efficiently.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two dates of their choice. By analyzing time-series data, developers can identify trends and patterns that can inform future financial decisions.
- Fluctuation Endpoint: With this endpoint, users can track how currencies fluctuate on a day-to-day basis. This feature is invaluable for understanding market volatility and making strategic decisions based on currency performance.
- Carat Endpoint: This endpoint provides information about gold rates by carat. Developers can use this feature to integrate gold pricing into their applications, catering to industries that rely on precious metals.
- Lowest/Highest Price Endpoint: This allows users to query the API for the lowest and highest prices of metals on a specific date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for traders analyzing market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of metal prices over an extended period.
- API Key: The API Key is a unique identifier that must be included in the API request to authenticate and authorize access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data representation.
- Available Endpoints: The Metals-API comes with 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, allowing developers to stay informed about the latest symbols supported by the API.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, providing insights into short-term market movements.
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
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1786839059,
"base": "USD",
"date": "2026-08-16",
"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": 1786752659,
"base": "USD",
"date": "2026-08-15",
"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-08-09",
"end_date": "2026-08-16",
"base": "USD",
"rates": {
"2026-08-09": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-11": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-16": {
"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": 1786839059,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-09",
"end_date": "2026-08-16",
"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": 1786839059,
"base": "USD",
"date": "2026-08-16",
"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": 1786839059,
"base": "USD",
"date": "2026-08-16",
"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, retrieving historical prices for the Cambodian Riel (KHR) using the Metals-API is a straightforward process that opens up a world of possibilities for developers and analysts. By leveraging the various endpoints offered by the API, users can access real-time data, historical trends, and detailed insights into currency fluctuations. The integration of smart technology and data analytics into financial applications is paving the way for a more informed and efficient market.
As the landscape of currency management continues to evolve, the Metals-API stands out as a powerful tool for those looking to harness the potential of real-time metals data. For further exploration, developers are encouraged to refer to the Metals-API Documentation and the Metals-API Supported Symbols page to enhance their understanding and implementation of this innovative API.