Get Dehradun Gold 24k (DEHR-24k) Weekly Historical Prices using this API

Get Dehradun Gold 24k (DEHR-24k) Weekly Historical Prices using this API
In the ever-evolving landscape of precious metals trading, obtaining accurate and timely data is crucial for investors and developers alike. One of the most sought-after metals is gold, represented by the symbol XAU. This blog post will delve into the intricacies of accessing historical prices for Dehradun Gold 24k (DEHR-24k) using the Metals-API. We will explore the API's capabilities, focusing on how it empowers developers to harness real-time data for innovative applications in the precious metals market.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, a hedge against inflation, and a store of value. With the digital transformation sweeping across industries, the precious metals market is no exception. The integration of technology in trading has revolutionized how investors access and analyze market data. Data analytics and market insights are now at the fingertips of traders, allowing them to make informed decisions based on real-time information.
The rise of digital asset solutions has further enhanced the trading experience. By leveraging advanced technologies, traders can now engage in price discovery with unprecedented accuracy. The Metals-API plays a pivotal role in this transformation, providing developers with the tools needed to create next-generation applications that can analyze gold prices and trends effectively.
API Description
The Metals-API is a powerful tool designed to provide real-time and historical data on various metals, including gold, silver, platinum, and palladium. This API is built with innovation and technological advancement in mind, enabling developers to create applications that can access and utilize metals data seamlessly.
With the Metals-API, developers can retrieve the latest rates, historical prices, and various other metrics related to precious metals. The API's capabilities extend beyond mere data retrieval; it empowers users to build applications that can analyze trends, track fluctuations, and convert currencies with ease. This transformative potential makes the Metals-API an essential resource for anyone involved in the precious metals market.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to specific needs within the precious metals trading ecosystem. 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 essential for traders who need to stay updated with the latest market movements.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. By appending a date to your query, you can access past prices for gold and other metals, allowing for comprehensive analysis and trend identification.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for various metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert any amount from one metal to another or to/from USD. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, facilitating in-depth analysis of price movements over time.
- Fluctuation Endpoint: By using this endpoint, you can retrieve information about how currencies fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: This feature allows you to retrieve information about gold rates by carat, which is essential for jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: This endpoint enables you to query the API to get the lowest and highest prices for a specified period, helping traders identify key price levels.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive historical analysis.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates delivered by the Metals-API are relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API comes with a constantly updated endpoint returning all available currencies and their specifications.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is crucial for local traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context and insights into market movements.
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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of various endpoints, showcasing their functionality and response formats.
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1747789231,
"base": "USD",
"date": "2025-05-21",
"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": 1747702831,
"base": "USD",
"date": "2025-05-20",
"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": "2025-05-14",
"end_date": "2025-05-21",
"base": "USD",
"rates": {
"2025-05-14": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-16": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-21": {
"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": 1747789231,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-14",
"end_date": "2025-05-21",
"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": 1747789231,
"base": "USD",
"date": "2025-05-21",
"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": 1747789231,
"base": "USD",
"date": "2025-05-21",
"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 Metals-API provides a robust framework for accessing historical prices and real-time data for precious metals like gold. By utilizing the various endpoints, developers can create applications that not only track prices but also analyze trends and fluctuations in the market. The API's capabilities, including the latest rates, historical data, and conversion features, empower users to make informed decisions in their trading activities.
As the digital landscape continues to evolve, the integration of technology in precious metals trading will only become more pronounced. The Metals-API stands at the forefront of this transformation, offering developers the tools they need to innovate and excel in the precious metals market. For more information, refer to the Metals-API Documentation and explore the extensive capabilities available through this powerful API.