Query Delhi Gold 22k (DELH-22k) Historical Prices through this API

Query Delhi Gold 22k (DELH-22k) Historical Prices through this API
In the ever-evolving landscape of precious metals trading, the ability to access historical prices for Gold (XAU) is crucial for investors, traders, and developers alike. The Metals-API provides a robust platform for querying historical prices, including the specific rates for Delhi Gold 22k (DELH-22k). This blog post will delve into the capabilities of the Metals-API, focusing on how developers can leverage its features to obtain historical price data and gain insights into market trends.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, especially during times of economic uncertainty. The digital transformation in precious metals trading has opened new avenues for investors, allowing for real-time data analytics and market insights. With the integration of technology in trading, investors can now make informed decisions based on accurate historical data and current market trends.
The Metals-API stands at the forefront of this digital revolution, offering developers the tools necessary to build next-generation applications that can analyze historical price data, track market fluctuations, and provide innovative solutions for price discovery. By utilizing the Metals-API, developers can create applications that not only display current gold prices but also analyze historical trends, helping users make informed investment decisions.
API Description
The Metals-API is a powerful tool that provides real-time and historical data for various metals, including Gold (XAU). It empowers developers to build applications that can access comprehensive data sets, enabling them to analyze market trends and make data-driven decisions. The API offers a range of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data dating back to 2019.
One of the key features of the Metals-API is its ability to deliver real-time exchange rate data, updated frequently based on the user's subscription plan. This ensures that developers have access to the most current information, which is essential for making timely trading decisions. The API also supports various endpoints that allow for detailed analysis of historical price data, making it an invaluable resource for anyone involved in precious metals trading.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to fulfill specific data retrieval needs. Here are some of the most notable features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. This feature is essential for traders who need to stay updated on market movements.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API call, developers can retrieve historical price data for Gold (XAU) and other metals, allowing for in-depth market analysis.
- Bid And Ask Endpoint: This powerful feature enables users to retrieve real-time bid and ask prices for metals, providing insight into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, allowing users to convert amounts from one metal to another or to/from USD. This is particularly useful for traders operating in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility and price trends.
- Carat Endpoint: This feature allows users to retrieve information about Gold rates by carat, which is particularly useful for jewelers and consumers interested in specific gold purities.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, helping traders identify price extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a comprehensive view of market trends.
- API Key: Each user is assigned a unique API key, which is required for accessing the API's features. This ensures secure and authorized access to the data.
- API Response: The Metals-API delivers exchange rates relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The API includes 14 endpoints, each providing different functionalities, making it a versatile tool for developers.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metal symbols, allowing users to easily identify the data they need.
- Gold Price India Endpoint: This dedicated endpoint retrieves the latest gold price in India, catering specifically to the Indian market.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1758816047,
"base": "USD",
"date": "2025-09-25",
"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 a successful query, providing the latest exchange rates for various metals, including Gold (XAU).
Historical Rates Endpoint
{
"success": true,
"timestamp": 1758729647,
"base": "USD",
"date": "2025-09-24",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates for a specific date, allowing users to analyze past market performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-09-18",
"end_date": "2025-09-25",
"base": "USD",
"rates": {
"2025-09-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-09-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-09-25": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series view of exchange rates, enabling users to track price movements over a specified period.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1758816047,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert a specified amount from one currency to another, providing valuable functionality for traders.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-18",
"end_date": "2025-09-25",
"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 provides insights into how metal prices fluctuate over time, which is essential for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1758816047,
"base": "USD",
"date": "2025-09-25",
"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 critical data for traders looking to perform technical analysis, offering insights into market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1758816047,
"base": "USD",
"date": "2025-09-25",
"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 metals, which is essential for traders looking to execute orders effectively.
Conclusion
The Metals-API is a powerful resource for developers looking to access historical prices for Gold (XAU) and other precious metals. By leveraging its various endpoints, developers can create applications that provide real-time data, historical analysis, and insights into market trends. The ability to query historical prices for Delhi Gold 22k (DELH-22k) through the Metals-API opens up new possibilities for traders and investors alike.
For more information on how to utilize the Metals-API, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols to find the data you need. Embrace the digital transformation in precious metals trading and unlock the potential of real-time data analytics with the Metals-API.