Get Cambodian Riel (KHR) Historical Prices using this API
Get Cambodian Riel (KHR) Historical Prices using this API
The Cambodian Riel (KHR) is an essential currency in Cambodia, representing the country's economic landscape. For developers and financial analysts looking to access historical prices of KHR, the Metals-API provides a robust solution. This API not only offers real-time data but also allows users to delve into historical trends, making it a powerful tool for data analytics and insights in the metal markets. In this blog post, we will explore the capabilities of the Metals-API, focusing on how to retrieve historical prices for Cambodian Riel and the broader implications of digital transformation in the financial sector.
About Cambodian Riel (KHR)
The Cambodian Riel is the official currency of Cambodia, and it plays a crucial role in the country's economy. With the rise of digital transformation, the metal markets are experiencing significant changes, driven by technological innovation and advancements in data analytics. The integration of smart technology into financial systems is reshaping how currencies are traded and valued. The Metals-API stands at the forefront of this transformation, providing developers with the tools needed to access and analyze historical price data effectively.
As we navigate through the complexities of the financial landscape, understanding the historical prices of currencies like KHR becomes vital. The Metals-API allows users to query historical rates dating back to 2019, enabling a comprehensive analysis of currency trends over time. This capability is particularly beneficial for developers looking to build applications that require accurate and timely financial data.
API Description
The Metals-API is a powerful tool designed for developers seeking to integrate real-time metals data into their applications. It empowers users to build next-generation applications that can analyze and visualize financial data effectively. With a focus on innovation and technological advancement, the Metals-API offers a range of endpoints that cater to various data needs.
One of the standout features of the Metals-API is its ability to provide real-time exchange rate data. Depending on your subscription plan, the API's latest endpoint can return data updated every 60 minutes, every 10 minutes, or even more frequently. This flexibility allows developers to tailor their applications to meet specific data requirements.
For those interested in historical data, the Metals-API offers a Historical Rates Endpoint, which allows users to query historical rates by appending a specific date in the format YYYY-MM-DD. This feature is invaluable for analysts looking to track the performance of KHR over time and make informed decisions based on historical trends.
Additionally, the API includes a Bid and Ask Endpoint, which provides real-time bid and ask prices for metals, enhancing the trading experience for users. The Convert Endpoint allows for seamless currency conversion, enabling users to convert any amount from one currency to another with ease.
For developers interested in tracking fluctuations, the Fluctuation Endpoint provides insights into how currencies fluctuate on a day-to-day basis. This feature is essential for understanding market dynamics and making informed trading decisions.
To explore the full capabilities of the Metals-API, visit the Metals-API Website and check out the Metals-API Documentation for detailed information on each endpoint.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to provide specific functionalities that cater to the needs of developers and analysts. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rates for all available metals, allowing users to stay updated on market conditions.
- Historical Rates Endpoint: Access historical exchange rates for any date since 2019, enabling users to analyze trends and make data-driven decisions.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices, which are crucial for traders looking to optimize their transactions.
- Convert Endpoint: Easily convert amounts from one currency to another, streamlining financial operations.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing a comprehensive view of market trends.
- Fluctuation Endpoint: Track how currencies fluctuate over time, offering insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and investors.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specific date, helping users identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for a specific time period, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates are delivered relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities to cater to diverse user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies, ensuring users have the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Here are examples of the responses you can expect from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1773274964,
"base": "USD",
"date": "2026-03-12",
"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"
}
The response includes a success flag, a timestamp, the base currency, the date of the rates, and the rates for various metals. This structured format allows developers to easily parse and utilize the data in their applications.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1773188564,
"base": "USD",
"date": "2026-03-11",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint provides historical rates for a specified date, allowing users to analyze past performance and trends. The response structure remains consistent, making it easy to integrate into existing systems.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-05",
"end_date": "2026-03-12",
"base": "USD",
"rates": {
"2026-03-05": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-03-07": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-12": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows users to retrieve rates over a specified period, providing a comprehensive view of market trends. Each date is associated with its respective rates, facilitating detailed analysis.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1773274964,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint simplifies currency conversion, allowing users to convert amounts between different currencies. The response includes the conversion rate and the result, making it easy to integrate into financial applications.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-05",
"end_date": "2026-03-12",
"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"
}
The fluctuation endpoint provides insights into how rates change over time, which is crucial for understanding market volatility. The response includes both the start and end rates, as well as the percentage change, allowing for comprehensive analysis.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1773274964,
"base": "USD",
"date": "2026-03-12",
"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"
}
This endpoint provides detailed OHLC data, which is essential for traders and analysts conducting technical analysis. The open, high, low, and close prices offer a comprehensive view of market performance over a specified period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1773274964,
"base": "USD",
"date": "2026-03-12",
"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"
}
The bid/ask endpoint provides current bid and ask prices, which are crucial for traders looking to optimize their transactions. The spread information is also valuable for understanding market liquidity.
Conclusion
In conclusion, the Metals-API offers a comprehensive solution for accessing historical prices of the Cambodian Riel (KHR) and other metals. With its robust set of features and endpoints, developers can build applications that leverage real-time and historical data to gain insights into market trends. The API's capabilities, such as the Latest Rates, Historical Rates, and Fluctuation endpoints, empower users to make informed decisions based on accurate data.
As the financial landscape continues to evolve with digital transformation, the importance of reliable data sources cannot be overstated. The Metals-API stands out as a leader in providing real-time metals data, enabling developers to create innovative applications that meet the demands of today's market. For more information, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
By leveraging the power of the Metals-API, developers can unlock new possibilities in the realm of financial data analytics, paving the way for smarter, data-driven decision-making in the ever-changing world of currency and metals trading.