Access Cambodian Riel (KHR) prices using this API
In today's rapidly evolving financial landscape, the ability to access real-time data is crucial for developers and businesses alike. One such valuable resource is the Cambodian Riel (KHR), which plays a significant role in the local economy and is increasingly relevant in the global market. By utilizing the Metals-API, developers can seamlessly integrate real-time pricing data for various metals, including the Cambodian Riel, into their applications. This blog post will delve into the intricacies of the Cambodian Riel, its markets, and how the Metals-API functions to provide essential data for developers.
About Cambodian Riel (KHR)
The Cambodian Riel (KHR) is the official currency of Cambodia, a country known for its rich history and vibrant culture. As Cambodia continues to embrace digital transformation, the Riel is becoming increasingly significant in both local and international markets. The integration of technology in financial transactions has led to a surge in the demand for accurate and real-time currency data, making APIs like Metals-API essential for developers.
Digital transformation in metal markets is reshaping how businesses operate. With the rise of e-commerce and online trading platforms, the need for accurate pricing data has never been more critical. The Cambodian Riel, while primarily used within Cambodia, is influenced by global metal prices and exchange rates. This interconnectedness highlights the importance of technological innovation and advancement in providing timely and accurate data analytics.
As the world moves towards smart technology integration, the future of currency exchange and metal pricing will likely see even more advancements. The ability to analyze data in real-time allows businesses to make informed decisions, optimize their operations, and enhance customer experiences. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to harness the power of data analytics and insights.
Understanding the Metals-API
The Metals-API is a powerful tool that provides developers with access to real-time and historical data for various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). This API is designed to empower developers to build next-generation applications that require accurate and timely metal pricing data.
One of the key features of the Metals-API is its ability to deliver real-time exchange rate data. Depending on the subscription plan, the API's latest endpoint can return data updated every 60 minutes or even every 10 minutes. This ensures that developers have access to the most current information, which is crucial for applications that rely on accurate pricing.
Additionally, the Metals-API offers a historical rates endpoint, allowing developers to access historical exchange rates dating back to 2019. This feature is particularly useful for businesses looking to analyze trends over time or for those who need to provide historical data for reporting purposes.
The API also includes a bid and ask endpoint, which enables developers to retrieve real-time bid and ask prices for metals. This feature is essential for trading applications, as it provides users with the information they need to make informed trading decisions.
Another valuable feature is the convert endpoint, which allows developers to convert any amount from one currency to another. This is particularly useful for applications that require currency conversion for transactions or reporting. The API's time-series endpoint further enhances its capabilities by allowing developers to query daily historical rates between two dates of their choice.
Key Features and Endpoints
The Metals-API comes equipped with a variety of endpoints, each providing unique functionalities that cater to different developer needs. Here are some of the key features:
- Latest Rates Endpoint: Provides real-time exchange rate data for metals, updated based on the subscription plan.
- Historical Rates Endpoint: Access historical exchange rates for most currencies dating back to 2019.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for metals, crucial for trading applications.
- Convert Endpoint: Convert any amount from one currency to another, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two specified dates.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market trends.
- Carat Endpoint: Retrieve information about gold rates by carat, useful for jewelers and traders.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date.
- Open/High/Low/Close (OHLC) Price Endpoint: Get OHLC data for a specific time period, essential for market analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008.
- API Key: A unique key required for accessing the API, ensuring secure and authorized usage.
- API Response: Exchange rates delivered by the Metals-API are relative to USD, with all data returned in JSON format.
- Available Endpoints: The API includes 14 endpoints, each providing different functionalities.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. 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": 1773879124,
"base": "USD",
"date": "2026-03-19",
"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": 1773792724,
"base": "USD",
"date": "2026-03-18",
"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-12",
"end_date": "2026-03-19",
"base": "USD",
"rates": {
"2026-03-12": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-14": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-19": {
"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": 1773879124,
"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-12",
"end_date": "2026-03-19",
"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": 1773879124,
"base": "USD",
"date": "2026-03-19",
"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": 1773879124,
"base": "USD",
"date": "2026-03-19",
"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 Cambodian Riel (KHR) is an essential currency in the context of Cambodia's growing economy and its integration into the global market. The Metals-API provides developers with the tools they need to access real-time and historical data for various metals, including the Riel. By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance user experiences and provide valuable insights into market trends.
As the financial landscape continues to evolve, the importance of accurate and timely data cannot be overstated. The Metals-API stands as a beacon of innovation, offering a comprehensive suite of features that empower developers to build next-generation applications. For more information on how to utilize the Metals-API, visit the Metals-API Documentation and explore the extensive Metals-API Supported Symbols list.
By embracing these technological advancements, businesses can position themselves at the forefront of the digital transformation in metal markets, ensuring they remain competitive in an ever-changing landscape.