Retrieve Real-Time Dehradun Gold 24k (DEHR-24k) Prices in Multiple Currencies with this API

Retrieve Real-Time Dehradun Gold 24k (DEHR-24k) Prices in Multiple Currencies with this API
In today's fast-paced financial landscape, the demand for accurate and real-time data is paramount, especially in the precious metals market. The Metals-API offers a robust solution for developers looking to access real-time gold prices, including the Dehradun Gold 24k (DEHR-24k), in multiple currencies. This blog post will explore how Metals-API provides accurate {Symbol} prices, the innovative features of the API, and potential business applications that can be harnessed through its capabilities.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. As digital transformation sweeps across various industries, the precious metals market is no exception. The integration of technology in trading has revolutionized how investors and businesses interact with gold. With the advent of data analytics and market insights, stakeholders can now make informed decisions based on real-time data.
Metals-API stands at the forefront of this transformation, providing developers with the tools necessary to innovate in price discovery and digital asset solutions. By leveraging the power of real-time metals data, businesses can create applications that not only track gold prices but also analyze trends, forecast future movements, and optimize trading strategies.
API Description
The Metals-API is designed to empower developers to build next-generation applications that require real-time access to precious metals data. With a focus on innovation and technological advancement, the API offers a suite of features that cater to various business needs. From retrieving the latest gold prices to accessing historical data, the Metals-API provides comprehensive solutions for anyone looking to engage with the precious metals market.
For detailed information on how to implement these features, developers can refer to the Metals-API Documentation, which outlines the capabilities and functionalities of the API.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that serve different purposes, allowing users to access a wealth of information about precious metals. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This feature is crucial for businesses that require up-to-the-minute pricing information to make timely decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. This endpoint allows users to query the Metals-API by appending a specific date, enabling businesses to analyze past trends and make informed predictions about future movements.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals. Understanding the spread between these prices is essential for traders looking to optimize their buying and selling strategies.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another. This is particularly useful for businesses operating in multiple regions and needing to assess gold prices in local currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting in-depth analyses and understanding price movements over time.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, helping businesses to track volatility and adjust their strategies accordingly.
- Carat Endpoint: Retrieve information about gold rates by carat. This feature is particularly useful for jewelers and retailers who need to price their products accurately based on gold purity.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, allowing businesses to assess market extremes and make strategic decisions.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specified date, offering a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is essential for businesses involved in trading metals on the London Metal Exchange.
- API Key: Your unique API key is required to access the API's functionalities, 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 for easy integration into applications.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders and investors.
- News Endpoint: Access the latest news articles related to various metals, helping businesses stay informed about market trends and developments.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1758762043,
"base": "USD",
"date": "2025-09-25",
"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 above response indicates that the latest gold price (XAU) is 0.000482 per troy ounce, with similar data for other metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1758675643,
"base": "USD",
"date": "2025-09-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for a specific date, allowing users to analyze past performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-09-18",
"end_date": "2025-09-25",
"base": "USD",
"rates": {
"2025-09-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-09-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-09-25": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint allows users to track price movements over a specified period, providing valuable insights into market trends.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1758762043,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint is particularly useful for businesses that need to quickly assess the value of gold in different currencies.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-18",
"end_date": "2025-09-25",
"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"
}
This endpoint provides insights into how prices fluctuate over time, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1758762043,
"base": "USD",
"date": "2025-09-25",
"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"
}
The OHLC endpoint is crucial for traders who need to understand market performance over a specific period, providing a comprehensive view of price movements.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1758762043,
"base": "USD",
"date": "2025-09-25",
"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"
}
This endpoint provides current bid and ask prices, which are essential for traders to make informed decisions based on market conditions.
Conclusion
The Metals-API is a powerful tool for developers looking to access real-time gold prices, including the Dehradun Gold 24k (DEHR-24k), in multiple currencies. With its comprehensive suite of features, including the latest rates, historical data, and various conversion options, the API empowers businesses to make informed decisions based on accurate and timely information.
By integrating the Metals-API into their applications, developers can create innovative solutions that enhance trading strategies, provide market insights, and optimize pricing models. For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available currencies.
As the precious metals market continues to evolve, leveraging real-time data through APIs like Metals-API will be crucial for businesses aiming to stay competitive and responsive to market changes.