Get Dehradun Gold 22k (DEHR-22k) prices for financial analysis using this API
Introduction
In the world of financial analysis, having access to real-time data is crucial for making informed decisions. One of the most sought-after assets in this realm is gold, represented by the symbol XAU. The Metals-API provides a powerful solution for developers looking to integrate gold pricing and other precious metals data into their applications. This blog post will delve into the capabilities of the Metals-API, focusing on how it can be utilized to obtain Dehradun Gold 22k (DEHR-22k) prices for financial analysis.
Metals-API Information
About Gold (XAU)
Gold has long been regarded as a safe haven asset, especially during times of economic uncertainty. With the digital transformation in precious metals trading, the integration of data analytics and market insights has become more critical than ever. The Metals-API offers developers the tools needed to harness this data effectively. By leveraging technology integration in trading, developers can innovate in price discovery and create digital asset solutions that cater to the evolving market demands.
The Metals-API provides real-time and historical data on various metals, including gold, silver, platinum, and palladium. This data can be used to analyze market trends, track price fluctuations, and make informed trading decisions. The API's capabilities empower developers to build next-generation applications that can respond to market changes in real-time, enhancing the overall trading experience.
API Description
The Metals-API is designed to provide comprehensive access to metals pricing data through a user-friendly interface. It offers a variety of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data. This API is a game-changer for developers, allowing them to create applications that can analyze and visualize metal prices effectively.
With the Metals-API, developers can access real-time exchange rates, historical data dating back to 2019, and even bid and ask prices. The API's robust architecture ensures that users receive accurate and timely data, which is essential for making informed financial decisions. For detailed documentation on how to implement the API, developers can refer to the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a wide range of features that can be utilized for various applications. Here are some of the key endpoints and their functionalities:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes or more frequently, depending on the subscription plan. For example, a request to this endpoint might return the current price of gold in USD.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the request, developers can retrieve past prices, which is invaluable for trend analysis.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts between different metals or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Developers can query the API for daily historical rates between two specified dates, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information on how metal prices fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Users can retrieve gold rates by carat, which is essential for jewelers and consumers looking to buy or sell gold jewelry.
- Lowest/Highest Price Endpoint: This feature allows users to query the API for the lowest and highest prices of metals over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Users can access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Each user is assigned a unique API key, which must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest data.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market 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.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective implementation. Below are examples of responses from various endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1767744616,
"base": "USD",
"date": "2026-01-07",
"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": 1767658216,
"base": "USD",
"date": "2026-01-06",
"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-12-31",
"end_date": "2026-01-07",
"base": "USD",
"rates": {
"2025-12-31": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-02": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-07": {
"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": 1767744616,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-31",
"end_date": "2026-01-07",
"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) Price Endpoint
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1767744616,
"base": "USD",
"date": "2026-01-07",
"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": 1767744616,
"base": "USD",
"date": "2026-01-07",
"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
The Metals-API is an invaluable resource for developers looking to integrate real-time and historical data on precious metals, particularly gold. By utilizing the various endpoints offered by the API, developers can create applications that provide insights into market trends, price fluctuations, and trading opportunities. The ability to access comprehensive data on gold, silver, platinum, and palladium allows for a deeper understanding of the metals market.
For those interested in exploring the capabilities of the Metals-API further, I encourage you to visit the Metals-API Website and check out the Metals-API Documentation for detailed implementation guidance. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, ensuring you have all the information needed to make the most of this powerful API.