The Easiest Way to Get Delhi Gold 18k (DELH-18k) Historical Rates with API Documentation
The Easiest Way to Get Delhi Gold 18k (DELH-18k) Historical Rates with API Documentation
In today's fast-paced financial landscape, accessing real-time and historical data on precious metals like gold has become essential for traders, investors, and developers alike. The Metals-API provides a powerful solution for obtaining historical prices of gold, specifically the Delhi Gold 18k (DELH-18k), through its comprehensive API. This blog post will guide you through the process of retrieving historical prices, exploring the capabilities of the Metals-API, and providing detailed examples of how to use its various endpoints effectively.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. As digital transformation sweeps across the financial sector, the integration of technology into precious metals trading is revolutionizing how investors access market insights. The Metals-API stands at the forefront of this transformation, offering developers the tools needed to harness data analytics for informed decision-making.
With the rise of digital asset solutions, the importance of real-time data cannot be overstated. The Metals-API empowers developers to build next-generation applications that can analyze market trends, track price fluctuations, and provide insights into the gold market. By leveraging this API, you can innovate in price discovery and enhance trading strategies through data-driven approaches.
API Description
The Metals-API is a robust platform designed to provide developers with access to real-time and historical prices of various metals, including gold. With a user-friendly interface and comprehensive documentation, the API allows for seamless integration into applications, enabling users to retrieve data effortlessly. The API supports a variety of endpoints, each tailored to meet specific needs, from fetching the latest rates to accessing historical data dating back to 2019.
For more information, visit the Metals-API Website or check out the Metals-API Documentation for detailed guidance on implementation.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different data retrieval needs. 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 is crucial for traders who need up-to-the-minute information on gold prices.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. You can query the Metals-API for historical rates by appending a specific date to the endpoint, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for gold and other metals, providing insight into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing you 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: Query the API for daily historical rates between two dates of your choice. This feature is invaluable for analyzing trends and making informed trading decisions.
- Fluctuation Endpoint: Retrieve information about how gold prices fluctuate on a day-to-day basis, helping you understand market volatility.
- Carat Endpoint: Get information about gold rates by carat, which is essential for jewelers and consumers looking to buy or sell gold jewelry.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API to get the lowest and highest price of gold over a specified period, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for gold, which are critical for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is useful for those interested in the London Metal Exchange.
- API Key: Your API Key is essential for accessing the API and must be included in your requests to authenticate your access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers a total of 14 endpoints, each designed for specific functionalities, making it a versatile tool for developers.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metals, allowing you to stay updated on the latest symbols supported by the API.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you informed about market developments.
List of Symbols
The 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
To illustrate the capabilities of the Metals-API, here are several examples of API responses for different endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1769944098,
"base": "USD",
"date": "2026-02-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"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1769857698,
"base": "USD",
"date": "2026-01-31",
"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-25",
"end_date": "2026-02-01",
"base": "USD",
"rates": {
"2026-01-25": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-27": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-02-01": {
"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": 1769944098,
"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-25",
"end_date": "2026-02-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"
}
OHLC (Open/High/Low/Close) Price Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1769944098,
"base": "USD",
"date": "2026-02-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"
}
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1769944098,
"base": "USD",
"date": "2026-02-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"
}
Conclusion
The Metals-API provides a comprehensive solution for accessing historical prices of gold, including the Delhi Gold 18k (DELH-18k). With its extensive range of endpoints, developers can retrieve real-time data, analyze historical trends, and integrate this information into their applications seamlessly. By leveraging the power of the Metals-API, you can enhance your trading strategies, gain market insights, and stay ahead in the competitive world of precious metals trading.
For further exploration of the API's capabilities, refer to the Metals-API Documentation and stay updated on the latest supported symbols by visiting the Metals-API Supported Symbols page. Embrace the digital transformation in precious metals trading and unlock the potential of real-time data with the Metals-API.