Access historical Dehradun Gold 22k (DEHR-22k) prices using this API

Access Historical Dehradun Gold 22k (DEHR-22k) Prices Using This API
In today's digital age, the demand for accurate and real-time data in the precious metals market has never been higher. The Metals-API provides a robust solution for developers looking to access historical and real-time prices of various metals, including Gold (XAU). This blog post will delve into the capabilities of the Metals-API, focusing on how it can be utilized to track and analyze the historical prices of Dehradun Gold 22k (DEHR-22k) and other precious metals.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and a safe haven for investors. With the rise of digital transformation in the precious metals market, the integration of technology has revolutionized how traders and investors access and analyze gold prices. The Metals-API offers a comprehensive suite of tools that empower developers to harness data analytics and market insights effectively.
Through innovative price discovery mechanisms, the Metals-API allows users to track fluctuations in gold prices, providing essential data for making informed investment decisions. The integration of digital asset solutions further enhances the trading experience, enabling seamless transactions and conversions between various currencies and metals.
API Description
The Metals-API is designed to provide developers with real-time and historical data on precious metals. This API is a game-changer for those looking to build next-generation applications that require accurate and timely information. With its user-friendly interface and comprehensive documentation, developers can easily integrate the API into their systems.
For more information on how to get started, visit the Metals-API Documentation. Here, you will find detailed instructions on how to authenticate your requests, manage your API key, and utilize various endpoints to access the data you need.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Below are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes or even every 10 minutes. This is crucial for traders who need the most current prices to make quick decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve past prices, which is essential for trend analysis.
- Bid and Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices, providing insight into the current market conditions and helping traders gauge the best time to buy or sell.
- Convert Endpoint: Easily convert any amount from one currency to another, facilitating transactions across different markets.
- Time-Series Endpoint: Query the API for daily historical rates between two dates, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing valuable insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers looking to understand the value of gold in different forms.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified period, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term perspective on metal prices.
- API Key: Your unique API key is required for authentication and must be included in your requests to access the API's features.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring you have the latest information at your fingertips.
- Gold Price India Endpoint: Retrieve the latest gold price in India, which is particularly relevant for local investors and traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping you stay informed about market trends and developments.
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 understand the various metals available for trading and analysis.
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": 1746241223,
"base": "USD",
"date": "2025-05-03",
"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 a successful request, providing the latest exchange rates for various metals relative to USD. The "rates" object contains the current price of each metal, which can be used for immediate trading decisions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1746154823,
"base": "USD",
"date": "2025-05-02",
"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 and trends in the market.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-04-26",
"end_date": "2025-05-03",
"base": "USD",
"rates": {
"2025-04-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates between two specified dates, which is useful for tracking trends and making predictions based on historical data.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1746241223,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint allows users to convert amounts between different metals or currencies. The response indicates the conversion rate and the resulting amount in troy ounces, facilitating easy transactions.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-26",
"end_date": "2025-05-03",
"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 prices have changed over a specified period, which is essential for understanding market dynamics and making informed decisions.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1746241223,
"base": "USD",
"date": "2025-05-03",
"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 a comprehensive view of price movements within a specific time frame, which is crucial for traders employing technical analysis strategies.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1746241223,
"base": "USD",
"date": "2025-05-03",
"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 critical information for traders looking to execute orders at the best possible prices. Understanding the spread can help in making strategic trading decisions.
Conclusion
The Metals-API is an invaluable resource for developers and traders looking to access historical and real-time data on precious metals like Gold (XAU). With its comprehensive suite of endpoints, the API empowers users to analyze market trends, make informed trading decisions, and integrate valuable data into their applications.
By leveraging the capabilities of the Metals-API, developers can create innovative solutions that enhance the trading experience and provide deeper insights into the precious metals market. For further exploration, visit the Metals-API Website to learn more about its features and capabilities.
For those interested in diving deeper into the technical aspects, the Metals-API Documentation offers extensive guidance on how to utilize the API effectively. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of all available symbols, ensuring you have the information needed to make the most of this powerful tool.