Retrieve Cambodian Riel (KHR) prices through this API
Retrieve Cambodian Riel (KHR) Prices Through This API
The Cambodian Riel (KHR) is a currency that reflects the economic landscape of Cambodia, a nation undergoing rapid digital transformation. In the context of the global metals market, understanding the value of KHR against various metals is crucial for investors, traders, and developers. This blog post delves into how the Metals-API can be utilized to retrieve real-time and historical prices of Cambodian Riel in relation to various metals, showcasing the API's capabilities and innovative features.
About Cambodian Riel (KHR)
The Cambodian Riel is not just a currency; it is a symbol of the country's economic evolution. As Cambodia embraces technological innovation and advancement, the integration of smart technology in financial markets becomes increasingly vital. The rise of data analytics and insights allows stakeholders to make informed decisions based on real-time data. The Metals-API plays a significant role in this transformation, providing developers with the tools to build next-generation applications that can analyze and interpret currency fluctuations, including the KHR.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data on metal prices and currency conversions. It empowers developers to create applications that can track market trends, analyze data, and provide insights into the metals market. With its robust infrastructure, the API supports various endpoints that allow users to access a wealth of information, including exchange rates, historical data, and market fluctuations.
For more detailed information, you can refer to the Metals-API Documentation, which outlines the capabilities and functionalities of the API.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring that you have the most current data at your fingertips.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, developers can retrieve past exchange rates, allowing for comprehensive market analysis.
- Bid And Ask Endpoint: This feature enables 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 allows users to convert any amount from one currency to another, facilitating seamless transactions across different currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, providing a clear view of market trends over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, which is essential for understanding market volatility and making strategic decisions.
- Carat Endpoint: This endpoint provides information about gold rates by carat, which is particularly useful for jewelers and investors in precious metals.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for metals over a specified period, aiding in investment decisions.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for metals, offering a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is invaluable for long-term market analysis.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency and ease of understanding.
- Available Endpoints: The Metals-API comprises 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies, allowing users to stay informed about the symbols they can work with.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users updated on market trends and 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.
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 responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1777853649,
"base": "USD",
"date": "2026-05-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": 1777767249,
"base": "USD",
"date": "2026-05-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-04-27",
"end_date": "2026-05-04",
"base": "USD",
"rates": {
"2026-04-27": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-29": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-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": 1777853649,
"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-27",
"end_date": "2026-05-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": 1777853649,
"base": "USD",
"date": "2026-05-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": 1777853649,
"base": "USD",
"date": "2026-05-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 Cambodian Riel (KHR) is an essential currency in the context of Cambodia's evolving economy. The Metals-API provides a comprehensive suite of tools for developers to access real-time and historical data, enabling them to build applications that can analyze market trends and fluctuations effectively. By leveraging the capabilities of the Metals-API, developers can create innovative solutions that enhance the understanding of metal prices and currency conversions.
For more information on how to utilize the API effectively, explore the Metals-API Documentation and stay updated with the latest symbols and market trends through the Metals-API Supported Symbols page. The future of financial technology is here, and the Metals-API is at the forefront of this transformation.