Request Price Trends of Delhi Gold 22k (DELH-22k) via this API
Request Price Trends of Delhi Gold 22k (DELH-22k) via this API
The world of precious metals trading is undergoing a significant transformation, driven by digital innovation and data analytics. One of the most sought-after metals is gold, particularly in the form of 22k gold, which is widely used in jewelry and investment in India, including Delhi. Understanding the price trends of Delhi Gold 22k (DELH-22k) is crucial for investors, jewelers, and consumers alike. In this blog post, we will explore how to obtain historical prices for gold using the Metals-API, a powerful tool that provides real-time and historical data on various metals, including gold.
About Gold (XAU)
Gold, represented by the symbol XAU, has been a symbol of wealth and a reliable store of value for centuries. In recent years, the digital transformation in precious metals has opened new avenues for trading and investment. The integration of technology in trading platforms has enabled investors to access real-time data, analyze market trends, and make informed decisions. Data analytics plays a pivotal role in understanding market dynamics, allowing traders to identify patterns and forecast future price movements.
Moreover, the innovation in price discovery mechanisms has led to more transparent and efficient markets. Digital asset solutions have emerged, allowing for seamless transactions and secure storage of precious metals. As a result, investors can now leverage advanced tools and APIs to gain insights into the gold market, including the historical prices of 22k gold in Delhi.
Metals-API Information
The Metals-API is a comprehensive solution for accessing real-time and historical data on various metals. It empowers developers to build next-generation applications that can analyze and visualize metal prices effectively. The API provides 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. Depending on your subscription plan, the API can return updates every 60 minutes, every 10 minutes, or even more frequently. This capability is crucial for traders who need to stay informed about market fluctuations and make timely decisions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that can be utilized for different purposes. Here are some of the most notable features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rates for all available metals. For example, you can retrieve the current price of gold (XAU) in USD, which is essential for traders looking to make quick decisions based on the latest market data.
- Historical Rates Endpoint: Access historical exchange rates for any date since 1999. This feature is particularly useful for analyzing price trends over time. For instance, if you want to know the price of 22k gold in Delhi on a specific date, you can easily query this endpoint.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for metals. Understanding the bid-ask spread is crucial for traders as it indicates the liquidity of the market.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling you to convert any amount from one metal to another or to/from USD. This is particularly useful for investors who want to assess the value of their holdings in different currencies.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice. It is ideal for conducting in-depth analyses of price movements over specific periods.
- Fluctuation Endpoint: Track rate fluctuations between two dates using this endpoint. It provides insights into how prices change over time, which can be invaluable for traders looking to capitalize on market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat. This feature is particularly relevant for jewelers and consumers interested in the specific quality of gold.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price of gold over a specified period. This information can help investors identify potential entry and exit points.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific time period. This data is essential for technical analysis and understanding market trends.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008. This endpoint is beneficial for those interested in the London Metal Exchange prices.
- API Key: Your API Key is essential for accessing the Metals-API. It is passed into the API base URL's access_key parameter to authenticate your requests.
- API Response: The API delivers exchange rates relative to USD by default. All data is returned in a structured JSON format, making it easy to parse and integrate into applications.
- Available Endpoints: The Metals-API includes 14 different endpoints, each providing unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies and metal symbols, allowing users to stay updated on the latest offerings.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you 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 and traders who need to know the exact symbols for their queries.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, let's explore some example responses for various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1772324316,
"base": "USD",
"date": "2026-03-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"
}
This response indicates the current exchange rates for various metals, with gold (XAU) priced at 0.000482 per troy ounce. Traders can use this information to make informed decisions based on the latest market data.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1772237916,
"base": "USD",
"date": "2026-02-28",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical exchange rates for gold and other metals on February 28, 2026. Such data is crucial for analyzing price trends and making investment decisions.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-02-22",
"end_date": "2026-03-01",
"base": "USD",
"rates": {
"2026-02-22": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-02-24": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-03-01": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint provides daily historical rates for a specified period. In this case, it shows the rates for gold over a week, allowing traders to analyze trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1772324316,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates the conversion of 1000 USD to gold (XAU), resulting in 0.482 troy ounces. This feature is particularly useful for investors looking to assess their holdings in different metals.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-02-22",
"end_date": "2026-03-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"
}
The fluctuation endpoint provides insights into how prices change over time, which is invaluable for traders looking to capitalize on market volatility. In this example, gold experienced a slight decrease over the specified period.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1772324316,
"base": "USD",
"date": "2026-03-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"
}
This response provides the open, high, low, and close prices for gold on March 1, 2026. Such data is essential for technical analysis and understanding market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1772324316,
"base": "USD",
"date": "2026-03-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"
}
The bid/ask endpoint provides current bid and ask prices for metals, which is crucial for traders as it indicates the liquidity of the market. Understanding the spread can help traders make more informed decisions.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for accessing real-time and historical data on precious metals, including gold. By leveraging the various endpoints available, developers and traders can gain valuable insights into market trends, make informed decisions, and optimize their trading strategies. Whether you are looking to analyze historical prices, track fluctuations, or convert between metals, the Metals-API provides the necessary resources to succeed in the dynamic world of precious metals trading.
For more detailed information on how to implement these features, refer to the Metals-API Documentation, which provides comprehensive guidance on using the API effectively. Additionally, stay updated on the latest offerings and supported symbols by visiting the Metals-API Supported Symbols page.
As the market continues to evolve, embracing technology and data analytics will be key to navigating the complexities of precious metals trading. With the right tools and insights, you can position yourself for success in this exciting field.