Get Dehradun Gold 22k (DEHR-22k) Historical Prices efficiently using this API
Introduction
In the world of finance, the demand for accurate and timely data is paramount, especially when it comes to precious metals like Gold (XAU). With the rise of digital transformation in trading and the integration of technology in market analysis, developers are increasingly seeking efficient ways to access historical prices and real-time data. The Metals-API offers a robust solution for retrieving historical prices of Dehradun Gold 22k (DEHR-22k) and other metals, empowering developers to build next-generation applications that leverage real-time metals data.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, a hedge against inflation, and a store of value. As digital transformation reshapes the financial landscape, the integration of data analytics and market insights into trading strategies has become essential. The Metals-API stands at the forefront of this innovation, providing developers with the tools necessary to access and analyze gold prices efficiently.
Through the use of advanced technology, the Metals-API enables users to discover prices in real-time, facilitating informed decision-making. The API's capabilities extend beyond mere price retrieval; it offers a comprehensive suite of features that allow for in-depth analysis and integration into various applications.
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). This API empowers users to build applications that require accurate metals pricing, historical data analysis, and currency conversion. With its innovative approach, the Metals-API transforms how developers interact with precious metals data.
For more information, visit the Metals-API Website or explore the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing developers to access the data they require efficiently. Below are some of the key features and their potential applications:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for various metals, updated based on the user's subscription plan. This endpoint is crucial for applications that require up-to-the-minute pricing information. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes.
{
"success": true,
"timestamp": 1782864934,
"base": "USD",
"date": "2026-07-01",
"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"
}
This response indicates the current rates for various metals, with Gold (XAU) priced at 0.000482 per troy ounce.
Historical Rates Endpoint
Accessing historical rates is essential for market analysis and trend identification. The Historical Rates Endpoint allows users to query historical data dating back to 2019 by appending a specific date in the format YYYY-MM-DD.
{
"success": true,
"timestamp": 1782778534,
"base": "USD",
"date": "2026-06-30",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for developers looking to analyze historical price trends and make data-driven decisions.
Bid And Ask Endpoint
The Bid and Ask Endpoint provides real-time bid and ask prices for metals, which is crucial for traders looking to execute orders at the best possible prices. This feature enhances trading strategies by providing insights into market liquidity.
{
"success": true,
"timestamp": 1782864934,
"base": "USD",
"date": "2026-07-01",
"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 response provides the current bid and ask prices for Gold (XAU), allowing traders to make informed decisions based on market conditions.
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 applications that require currency conversion for pricing or reporting purposes.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1782864934,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
In this example, 1000 USD converts to 0.482 troy ounces of Gold (XAU), showcasing the utility of this endpoint for financial applications.
Time-Series Endpoint
The Time-Series Endpoint enables users to query daily historical rates between two specified dates. This feature is invaluable for analyzing trends over time and understanding price movements in the metals market.
{
"success": true,
"timeseries": true,
"start_date": "2026-06-24",
"end_date": "2026-07-01",
"base": "USD",
"rates": {
"2026-06-24": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-26": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-01": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint provides a comprehensive view of how Gold prices have fluctuated over a specified period, aiding in market analysis.
Fluctuation Endpoint
The Fluctuation Endpoint allows users to track rate fluctuations between two dates, providing insights into market volatility. This feature is essential for traders and analysts who need to understand price movements over time.
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-24",
"end_date": "2026-07-01",
"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 response illustrates how Gold prices have changed over the specified period, highlighting the importance of understanding market fluctuations.
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides open, high, low, and close prices for a specific time period. This data is crucial for traders who analyze price movements and make strategic decisions based on historical performance.
{
"success": true,
"timestamp": 1782864934,
"base": "USD",
"date": "2026-07-01",
"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 allows developers to retrieve critical price data, enabling them to analyze market trends effectively.
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 users interested in the London Metal Exchange prices and trends.
For a complete list of supported symbols, refer to the Metals-API Supported Symbols page.
Common Use Cases and Applications
The Metals-API can be integrated into various applications, providing developers with the flexibility to create innovative solutions. Here are some common use cases:
- Trading Platforms: Integrate real-time pricing data to enhance trading strategies and decision-making.
- Market Analysis Tools: Use historical data to analyze trends and forecast future price movements.
- Financial Reporting: Generate reports that include accurate metals pricing for financial statements.
- Investment Applications: Provide users with insights into the performance of precious metals as part of their investment portfolios.
Conclusion
The Metals-API offers a comprehensive solution for developers seeking to access historical prices and real-time data for Gold (XAU) and other metals. By leveraging the API's innovative features, developers can build applications that provide valuable insights into market trends and pricing dynamics. Whether it's for trading platforms, market analysis tools, or financial reporting, the Metals-API empowers users to make informed decisions based on accurate and timely data.
For further exploration of the API's capabilities, visit the Metals-API Website and check out the Metals-API Documentation for detailed implementation guidance. Understanding the full range of features and endpoints available through the Metals-API will enable developers to harness the power of real-time metals data effectively.