Get Delhi Gold 22k (DELH-22k) Daily Closing Prices using this API

Get Delhi Gold 22k (DELH-22k) Daily Closing Prices using this API
In the rapidly evolving world of finance, the demand for accurate and timely data is paramount, especially in the precious metals market. For developers and traders looking to access historical prices of gold, the Metals-API offers a robust solution. This blog post will delve into the intricacies of the Metals-API, focusing on how to retrieve historical prices for gold (XAU) and other metals, while also exploring the digital transformation in precious metals trading.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth and investment. Its value is influenced by various factors, including market demand, geopolitical stability, and economic indicators. The digital transformation in the precious metals sector has revolutionized how investors and traders access and analyze gold prices. With the advent of data analytics and technology integration, market insights have become more accessible than ever.
Data analytics plays a crucial role in understanding market trends and making informed decisions. By leveraging advanced analytics, traders can gain insights into price movements, volatility, and market sentiment. The integration of technology in trading has also led to the development of innovative price discovery mechanisms, allowing for more accurate valuations of gold and other precious metals.
Moreover, the rise of digital asset solutions has opened new avenues for investing in gold. With the ability to trade gold digitally, investors can now access real-time data and execute trades with unprecedented speed and efficiency. This shift not only enhances liquidity but also democratizes access to gold investments, making it easier for individuals and institutions alike to participate in the market.
API Description
The Metals-API is a powerful tool that provides developers with real-time and historical data on precious metals, including gold. This API empowers users to build next-generation applications that require accurate metals data. With its innovative capabilities, the Metals-API transforms how developers interact with market data, enabling them to create applications that can analyze trends, forecast prices, and provide valuable insights.
For detailed information on how to use the API, you can refer to the Metals-API Documentation. This resource provides comprehensive guidance on the various endpoints available, including how to retrieve the latest rates, historical prices, and much more.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data updated every 60 minutes or more frequently. This is essential for traders who need the most current pricing information.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. You can query the Metals-API by appending a specific date to retrieve past prices, which is invaluable for trend analysis and forecasting.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices, providing insight into the current market conditions and helping traders make informed decisions.
- Convert Endpoint: The conversion endpoint enables users to convert any amount from one metal to another or to/from USD, facilitating transactions across different currencies.
- Time-Series Endpoint: This endpoint allows you to query daily historical rates between two dates of your choice, making it easier to analyze price movements over time.
- Fluctuation Endpoint: Track how currencies fluctuate on a day-to-day basis, providing insights into market volatility and helping traders adjust their strategies accordingly.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and consumers looking to understand the value of gold jewelry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, allowing for a comprehensive view of market performance.
- 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: Access historical rates for LME symbols dating back to 2008, which is crucial for those involved in industrial metals.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD, 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, ensuring you have the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for local traders.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping you stay informed about market developments.
For a complete list of all supported symbols, refer to the Metals-API Supported Symbols.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective implementation. Below are examples of various endpoints and their JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1759971835,
"base": "USD",
"date": "2025-10-09",
"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 that the latest price for gold (XAU) is 0.000482 per troy ounce, providing a snapshot of current market conditions.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1759885435,
"base": "USD",
"date": "2025-10-08",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows the historical price of gold on a specific date, which is essential for analyzing trends over time.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-10-02",
"end_date": "2025-10-09",
"base": "USD",
"rates": {
"2025-10-02": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-10-04": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-09": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time-series of gold prices, allowing for a detailed analysis of price movements over the specified period.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1759971835,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The convert endpoint allows users to convert an amount from one currency to another, providing flexibility in transactions.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-10-02",
"end_date": "2025-10-09",
"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 endpoint tracks fluctuations in prices, providing insights into market volatility and helping traders adjust their strategies accordingly.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1759971835,
"base": "USD",
"date": "2025-10-09",
"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"
}
The OHLC endpoint provides critical data for technical analysis, allowing traders to assess market performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1759971835,
"base": "USD",
"date": "2025-10-09",
"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 endpoint provides current bid and ask prices, essential for traders looking to make timely decisions based on market conditions.
Conclusion
The Metals-API is an invaluable resource for developers and traders seeking to access real-time and historical data on precious metals like gold. By leveraging its various endpoints, users can gain insights into market trends, analyze price movements, and make informed trading decisions. The digital transformation in the precious metals market, coupled with the capabilities of the Metals-API, empowers users to navigate the complexities of trading with confidence.
For more information on how to implement the Metals-API in your applications, visit the Metals-API Website and explore the extensive Metals-API Documentation. Stay ahead in the precious metals market by utilizing the powerful features offered by this innovative API.