The Easiest Way to Get Dehradun Gold 18k (DEHR-18k) Historical Rates through APIs
The Easiest Way to Get Dehradun Gold 18k (DEHR-18k) Historical Rates through APIs
In the rapidly evolving landscape of financial technology, accessing real-time and historical data for precious metals like gold has become essential for traders, analysts, and developers alike. The Metals-API provides a robust solution for obtaining historical prices, including the Dehradun Gold 18k (DEHR-18k), through its comprehensive set of endpoints. This blog post will guide you through the process of retrieving historical prices using the Metals-API, detailing the necessary endpoints, parameters, and data formats.
About Gold (XAU)
Gold, represented by the symbol XAU, is one of the most sought-after precious metals in the world. Its value is influenced by various factors, including market demand, geopolitical stability, and economic indicators. The digital transformation in the precious metals market has enabled traders to leverage data analytics and market insights to make informed decisions. By integrating technology into trading practices, developers can create innovative applications that enhance price discovery and provide digital asset solutions.
The Metals-API stands at the forefront of this transformation, offering real-time and historical data that empowers developers to build next-generation applications. With a focus on innovation and technological advancement, the Metals-API enables users to access vital information about gold and other precious metals, facilitating better trading strategies and investment decisions.
API Description
The Metals-API is a powerful tool that provides access to a wide range of functionalities related to precious metals. It allows users to retrieve real-time exchange rates, historical data, and various analytical insights through a simple and intuitive interface. The API is designed to cater to the needs of developers looking to integrate metals data into their applications seamlessly.
For more information, you can visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that provide different functionalities, making it a versatile tool for developers. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. You can query the API by appending a specific date to retrieve the historical price of gold.
- Bid and Ask Endpoint: Retrieve real-time bid and ask prices for gold and other metals, allowing traders to make informed decisions based on current market conditions.
- Convert Endpoint: This feature allows you to convert any amount from one currency to another, facilitating easy transactions and calculations.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling comprehensive analysis over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers looking for specific gold quality.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price of gold for a specified date.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for a specific time period, crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for comprehensive market analysis.
- API Key: Your unique API key is required to access the API and is passed into the base URL's access_key parameter.
- API Response: Exchange rates are delivered relative to USD by default, with all data returned in a structured JSON format.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market trends.
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
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following endpoint:
{
"success": true,
"timestamp": 1768730870,
"base": "USD",
"date": "2026-01-18",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1768644470,
"base": "USD",
"date": "2026-01-17",
"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": "2026-01-11",
"end_date": "2026-01-18",
"base": "USD",
"rates": {
"2026-01-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-18": {
"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": 1768730870,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-11",
"end_date": "2026-01-18",
"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": 1768730870,
"base": "USD",
"date": "2026-01-18",
"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": 1768730870,
"base": "USD",
"date": "2026-01-18",
"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
Accessing historical rates for Dehradun Gold 18k (DEHR-18k) and other precious metals has never been easier, thanks to the Metals-API. By leveraging its extensive features and endpoints, developers can create innovative applications that provide real-time insights into the precious metals market. Whether you are looking to analyze trends, convert currencies, or track fluctuations, the Metals-API offers the tools necessary for comprehensive market analysis.
For further exploration of the API's capabilities, refer to the Metals-API Documentation and stay updated with the latest market trends through the Metals-API Supported Symbols page. Embrace the power of data analytics and technology integration in trading to enhance your investment strategies and decision-making processes.