Retrieve Delhi Gold (XAU-DELH) Historical Prices for Your Application using this API
Retrieve Delhi Gold (XAU-DELH) Historical Prices for Your Application using this API
In today's fast-paced financial landscape, the demand for accurate and timely data is paramount, especially in the realm of precious metals like Gold (XAU). For developers looking to integrate historical pricing data into their applications, the Metals-API offers a robust solution. This API not only provides real-time and historical data but also empowers developers to harness the power of data analytics and market insights, enabling them to create innovative applications that can transform the way users interact with precious metals.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, a hedge against inflation, and a store of value. As the world transitions into a more digital economy, the integration of technology into the trading of precious metals is becoming increasingly important. The digital transformation in precious metals trading is not just about buying and selling; it involves leveraging data analytics to gain market insights, utilizing technology for seamless trading experiences, and innovating price discovery mechanisms.
With the rise of digital asset solutions, developers can now create applications that provide users with real-time insights into gold prices, historical trends, and predictive analytics. The Metals-API plays a crucial role in this ecosystem by offering a comprehensive suite of endpoints that allow developers to access a wealth of information about gold and other metals.
API Description
The Metals-API is designed to provide developers with real-time and historical data on precious metals, including Gold (XAU). This API is a powerful tool that enables the creation of next-generation applications by providing access to a wide range of functionalities. With its innovative approach to data delivery, the Metals-API empowers developers to build applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly.
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 variety of endpoints that cater to different needs, allowing developers to access the data they require efficiently. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, including Gold. Depending on your subscription plan, the API updates this data every 60 minutes, every 10 minutes, or even more frequently. This feature is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Developers can access historical rates for most currencies dating back to 2019. By appending a specific date (in YYYY-MM-DD format) to the endpoint, users can retrieve historical pricing data, which is invaluable for trend analysis and market research.
- Bid And Ask Endpoint: This powerful feature allows developers to retrieve real-time Bid and Ask prices for metals. Understanding the bid-ask spread is crucial for traders and investors, as it indicates market liquidity and potential trading costs.
- Convert Endpoint: The Metals-API includes a dedicated currency conversion endpoint, enabling users to convert any amount from one currency to another. This feature is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: This endpoint allows developers to query the API for daily historical rates between two specified dates. This functionality is essential for applications that analyze price movements over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis using this endpoint. It provides insights into market volatility and helps users make informed decisions.
- Carat Endpoint: Developers can retrieve information about Gold rates by Carat using this endpoint. This feature is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest prices for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access the open, high, low, and close prices for a specific date, which is critical for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive market analysis.
- API Key: Each user is assigned a unique API key that must be included in the API requests to authenticate access.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data representation.
- Available Endpoints: The API features 14 endpoints, each providing distinct functionalities, making it a versatile tool for developers.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring developers have access to the latest information.
- News Endpoint: The Metals-API allows users to retrieve the latest news articles related to various metals, keeping developers and users informed about market trends.
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.
API Endpoint Examples and Responses
Understanding how to interpret the API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1778804288,
"base": "USD",
"date": "2026-05-15",
"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 request, providing the latest exchange rates for various metals relative to USD. The "rates" object contains the current price of Gold (XAU) along with other metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1778717888,
"base": "USD",
"date": "2026-05-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows a successful retrieval of historical rates for a specific date. Developers can use this data for analysis and reporting.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-05-08",
"end_date": "2026-05-15",
"base": "USD",
"rates": {
"2026-05-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates for Gold over a specified period, allowing developers to analyze trends and fluctuations.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1778804288,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert an amount from USD to Gold (XAU). The response includes the conversion rate and the result in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-08",
"end_date": "2026-05-15",
"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 Gold and other metals fluctuated over a specified period, which is essential for traders and analysts.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1778804288,
"base": "USD",
"date": "2026-05-15",
"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 technical analysis, allowing traders to assess market performance over a specific period.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1778804288,
"base": "USD",
"date": "2026-05-15",
"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 Gold and other metals, which is essential for traders looking to execute orders.
Conclusion
The Metals-API is a powerful tool for developers seeking to integrate Gold (XAU) historical prices and real-time data into their applications. With its extensive range of endpoints, developers can access critical information that enables them to build innovative solutions in the precious metals market. From real-time pricing to historical data analysis, the API provides the necessary tools to create applications that meet the demands of today's digital economy.
By leveraging the capabilities of the Metals-API, developers can enhance their applications with features that provide users with valuable insights into market trends, price fluctuations, and conversion capabilities. 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.
As the landscape of precious metals trading continues to evolve, the integration of technology and data analytics will play a crucial role in shaping the future of this market. The Metals-API stands at the forefront of this transformation, providing developers with the tools they need to succeed.