Collect Dehradun Gold 24k (DEHR-24k) Historical Prices with this API

Introduction
In the ever-evolving landscape of financial technology, the demand for accurate and real-time data has never been more critical, especially in the realm of precious metals trading. One such metal that has captured the attention of investors and traders alike is Gold, represented by the symbol XAU. For those looking to collect historical prices of Dehradun Gold 24k (DEHR-24k), the Metals-API provides a robust solution. This blog post will delve into the capabilities of the Metals-API, exploring how developers can leverage its features to obtain historical prices and gain insights into market trends.
Metals-API Information
About Gold (XAU)
Gold has long been considered a safe-haven asset, especially during times of economic uncertainty. Its value is influenced by various factors, including geopolitical events, inflation rates, and currency fluctuations. The digital transformation in precious metals trading has made it easier for investors to access real-time data and analytics. With the integration of technology in trading, the Metals-API stands out as a powerful tool for obtaining market insights and making informed decisions.
Data analytics plays a crucial role in understanding market trends. By utilizing the Metals-API, developers can create applications that analyze historical price movements, identify patterns, and forecast future trends. This capability is essential for traders looking to optimize their strategies and maximize returns.
Moreover, the innovation in price discovery facilitated by the Metals-API allows users to access a wealth of information at their fingertips. The API empowers developers to build next-generation applications that provide real-time updates, historical data, and comprehensive market analysis, all of which are essential for navigating the complexities of precious metals trading.
API Description
The Metals-API is designed to provide developers with seamless access to real-time and historical data for various metals, including Gold (XAU). Its capabilities extend beyond mere data retrieval; it offers a transformative potential for developers aiming to create innovative solutions in the financial sector.
With the Metals-API, developers can build applications that not only track current prices but also analyze historical trends, allowing for a comprehensive understanding of market dynamics. The API's real-time data capabilities ensure that users are always equipped with the latest information, which is crucial for making timely trading decisions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, making it a versatile tool for developers. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on the plan, users can receive updates every 60 minutes, every 10 minutes, or even more frequently. This endpoint is essential for traders who need to stay informed about the latest market conditions.
{
"success": true,
"timestamp": 1754528531,
"base": "USD",
"date": "2025-08-07",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical data that is invaluable for trend analysis and market research.
{
"success": true,
"timestamp": 1754442131,
"base": "USD",
"date": "2025-08-06",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint is a powerful feature that enables users to retrieve real-time bid and ask prices for metals. This information is crucial for traders looking to execute orders at the best possible prices.
{
"success": true,
"timestamp": 1754528531,
"base": "USD",
"date": "2025-08-07",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1754528531,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows developers to query the API for daily historical rates between two dates of their choice. This feature is essential for conducting detailed analyses over specific time frames.
{
"success": true,
"timeseries": true,
"start_date": "2025-07-31",
"end_date": "2025-08-07",
"base": "USD",
"rates": {
"2025-07-31": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-08-02": {
"XAU": 0.000483,
"XAG": 0.0382
},
"2025-08-07": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This data is vital for traders looking to understand market volatility and make informed decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-31",
"end_date": "2025-08-07",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Lowest/Highest Price Endpoint
The Lowest/Highest Price Endpoint allows users to query the API to get the lowest and highest price for a specified date. This feature is particularly useful for traders looking to identify price extremes over a given period.
{
"success": true,
"timestamp": 1754528531,
"base": "USD",
"date": "2025-08-07",
"rates": {
"XAU": {
"lowest": 0.000481,
"highest": 0.000487
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The Open/High/Low/Close (OHLC) Price Endpoint provides essential data for traders looking to analyze price movements over a specific time period. This endpoint returns the opening, highest, lowest, and closing prices for a given date.
{
"success": true,
"timestamp": 1754528531,
"base": "USD",
"date": "2025-08-07",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for traders interested in the London Metal Exchange's pricing data.
{
"success": true,
"timestamp": 1754442131,
"base": "USD",
"date": "2025-08-06",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
API Key and Response
Your API Key is the unique key that is passed into the API base URL's access_key parameter. This key is essential for authentication and authorization when making requests to the Metals-API. The API responses are delivered in JSON format, providing a structured and easy-to-parse format for developers.
Available Endpoints
The Metals-API comes with a comprehensive list of endpoints, each providing different functionalities. For a complete list of all supported symbols and their specifications, refer to the Metals-API Supported Symbols page.
Gold Price India Endpoint
For those specifically interested in the Indian market, the Gold Price India Endpoint allows users to retrieve the latest gold price in India. This feature is particularly beneficial for traders operating in the Indian market.
News Endpoint
The Metals-API also includes a News Endpoint that allows users to retrieve the latest news articles related to various metals. Staying informed about market news is crucial for making timely trading decisions.
Conclusion
The Metals-API is an invaluable resource for developers looking to access real-time and historical data for precious metals, particularly Gold (XAU). With its extensive range of features, including the Latest Rates, Historical Rates, and various conversion endpoints, the API empowers developers to create innovative applications that enhance trading strategies and market analysis.
By leveraging the capabilities of the Metals-API, developers can gain insights into market trends, optimize their trading strategies, and ultimately make more informed decisions. Whether you are a seasoned trader or a developer looking to integrate precious metals data into your applications, the Metals-API provides the tools necessary to succeed in the dynamic world of precious metals trading.
For more information on how to get started, visit the Metals-API Documentation for detailed guidance on implementation and usage.