Access Delhi Gold (XAU-DELH) Monthly Historical Prices using this API

Access Delhi Gold (XAU-DELH) Monthly Historical Prices using this API
In the ever-evolving landscape of financial technology, the demand for precise and real-time data is paramount, especially in the realm of precious metals trading. One of the most sought-after commodities is Gold, represented by the symbol XAU. This blog post will delve into how you can access historical prices for Gold in Delhi using the Metals-API. We will explore the innovative features of this API, its capabilities, and how it empowers developers to create next-generation applications for trading and analytics.
About Gold (XAU)
Gold has long been a symbol of wealth and stability. In recent years, the digital transformation of precious metals trading has opened new avenues for investors and traders alike. The integration of data analytics and market insights into trading strategies has become essential. With the rise of technology in trading, the way we discover prices and execute trades has transformed dramatically.
Metals-API plays a crucial role in this transformation by providing real-time and historical data on precious metals, including Gold. This API allows developers to harness the power of data analytics to gain insights into market trends, optimize trading strategies, and make informed decisions. The innovation in price discovery facilitated by Metals-API enables users to access accurate and timely information, which is vital for successful trading.
API Description
The Metals-API is a powerful tool designed for developers looking to integrate metals pricing data into their applications. It offers a wide range of features that cater to various needs, from real-time pricing to historical data analysis. The API is built with a focus on innovation and technological advancement, allowing users to access transformative real-time metals data.
With Metals-API, developers can build applications that provide users with the latest market insights, historical price trends, and even predictive analytics. This API is not just about retrieving data; itβs about empowering developers to create solutions that can adapt to the fast-paced world of trading.
Key Features and Endpoints
The Metals-API offers several endpoints that provide different functionalities, each designed to cater to specific needs in the trading and analytics space. 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 the most current prices to make informed decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a date to your query, you can retrieve past prices for analysis and trend identification.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time Bid and Ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another seamlessly. 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 essential for analyzing price movements over time.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis. This can help traders understand volatility and make strategic decisions.
- Carat Endpoint: Get information about Gold rates by Carat. This is particularly useful for jewelers and traders dealing in different purities of Gold.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specified date, which can be vital for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access the open, high, low, and close prices for a specific date, providing a comprehensive view of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, allowing for extensive historical analysis.
- API Key: Your unique API key is essential for accessing the API and must be included in your requests.
- API Response: The API returns exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API comes with numerous endpoints, each providing different functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to the latest symbols.
- 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, providing context to market movements.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1754503231,
"base": "USD",
"date": "2025-08-06",
"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"
}
The above response indicates a successful request for the latest rates, with the base currency being USD. The rates for various metals, including Gold (XAU), are provided per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1754416831,
"base": "USD",
"date": "2025-08-05",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for a specific date, allowing users to analyze past performance and make informed decisions based on historical data.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-30",
"end_date": "2025-08-06",
"base": "USD",
"rates": {
"2025-07-30": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-08-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-08-06": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series response provides daily rates between specified dates, which is essential for trend analysis and forecasting.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1754503231,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of an amount from USD to Gold (XAU), providing both the conversion rate and the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-30",
"end_date": "2025-08-06",
"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 the rates for various metals have fluctuated over a specified period, which is crucial for understanding market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1754503231,
"base": "USD",
"date": "2025-08-06",
"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 response provides a comprehensive view of market performance for a specific date, allowing traders to analyze price movements effectively.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1754503231,
"base": "USD",
"date": "2025-08-06",
"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, which are essential for traders looking to execute orders at the best possible prices.
Conclusion
In conclusion, accessing historical prices for Gold (XAU) in Delhi through the Metals-API is a straightforward process that opens up a world of possibilities for traders and developers alike. The API's extensive features, including real-time rates, historical data, and various endpoints, empower users to make informed decisions based on accurate and timely information.
By leveraging the capabilities of Metals-API, developers can create innovative applications that provide valuable insights into the precious metals market. Whether you are analyzing trends, executing trades, or converting currencies, the Metals-API offers the tools necessary to succeed in today's fast-paced trading environment.
For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals. Embrace the future of trading with the power of real-time data at your fingertips.