Get Delhi Gold 22k (DELH-22k) Historical Prices for Research Purposes using this API
Introduction
In the realm of precious metals, gold (XAU) stands out as a significant asset, not only for its intrinsic value but also for its role in financial markets. For developers and analysts looking to harness the power of historical gold prices, the Metals-API provides a robust solution. This API offers a comprehensive suite of endpoints that allow users to access real-time and historical data, making it an invaluable tool for research, trading, and market analysis.
Understanding Gold (XAU)
Gold has long been a symbol of wealth and stability. In recent years, the digital transformation in the precious metals market has opened new avenues for data analytics and market insights. The integration of technology in trading has revolutionized how investors and developers interact with gold prices. With the rise of digital asset solutions, understanding the historical prices of gold has become more critical than ever.
Digital Transformation in Precious Metals
The digital transformation in the precious metals sector has led to innovative approaches in price discovery and trading. By leveraging real-time data, traders can make informed decisions, optimizing their strategies based on market fluctuations. The Metals-API plays a crucial role in this transformation by providing developers with the tools needed to create next-generation applications that can analyze and visualize gold price trends.
Data Analytics and Market Insights
Data analytics is at the forefront of modern trading strategies. With the Metals-API, developers can access a wealth of historical data, enabling them to perform in-depth analyses of gold price movements. This data can be used to identify trends, forecast future prices, and make data-driven investment decisions. The API's historical rates endpoint allows users to retrieve data dating back to 2019, providing a solid foundation for research and analysis.
Technology Integration in Trading
Integrating technology into trading platforms has enhanced the efficiency and accuracy of transactions. The Metals-API offers various endpoints that facilitate seamless integration with existing systems. For instance, the latest rates endpoint provides real-time exchange rate data, allowing traders to react promptly to market changes. This capability is essential for maintaining a competitive edge in the fast-paced world of trading.
API Description
The Metals-API is designed to empower developers by providing access to real-time and historical metals data. With its innovative features, the API enables users to build applications that can analyze market trends, track price fluctuations, and convert currencies with ease. The API's capabilities extend beyond just gold; it encompasses a wide range of metals, making it a versatile tool for various applications.
Key Features of Metals-API
The Metals-API boasts a variety of endpoints, each tailored to meet specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint returns real-time exchange rate data, updated based on your subscription plan. Users can access the latest prices for gold and other metals, ensuring they have the most current information at their fingertips.
- Historical Rates Endpoint: Users can query historical rates by appending a date to the API request. This feature is invaluable for researchers and analysts looking to study price trends over time.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, essential for traders looking to execute transactions at optimal prices.
- Convert Endpoint: The conversion endpoint enables users to convert any amount from one currency to another, facilitating transactions across different markets.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two dates, providing insights into price movements over specific periods.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, helping them understand market volatility.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing users to make informed decisions based on purity levels.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for gold over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for comprehensive market studies.
- API Key: Each user is assigned a unique API key, which is necessary for accessing the API's features securely.
- API Response: The API delivers exchange rates relative to USD, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing distinct functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring users have access to the latest symbols.
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 essential for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
The latest rates endpoint allows users to get real-time exchange rates for all available metals. Here’s an example response:
{
"success": true,
"timestamp": 1782087176,
"base": "USD",
"date": "2026-06-22",
"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 success of the request, the timestamp of the data, the base currency (USD), the date of the rates, and the current rates for various metals.
Historical Rates Endpoint
Accessing historical exchange rates is straightforward with the historical rates endpoint. Here’s an example response:
{
"success": true,
"timestamp": 1782000776,
"base": "USD",
"date": "2026-06-21",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides the historical rates for gold and other metals, allowing users to analyze past performance and trends.
Time-Series Endpoint
The time-series endpoint is particularly useful for analyzing price movements over a specific period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-06-15",
"end_date": "2026-06-22",
"base": "USD",
"rates": {
"2026-06-15": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-06-17": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-06-22": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response illustrates how gold prices have changed over the specified period, providing valuable insights for trend analysis.
Convert Endpoint
The convert endpoint allows users to convert any amount from one metal to another or to/from USD. Here’s an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1782087176,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of 1000 USD into gold, providing the resulting amount in troy ounces.
Fluctuation Endpoint
The fluctuation endpoint tracks rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-06-15",
"end_date": "2026-06-22",
"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 detailed information about how gold and other metals fluctuated over the specified period, including percentage changes.
OHLC (Open/High/Low/Close) Endpoint
The OHLC endpoint provides open, high, low, and close prices for a specific time period. Here’s an example response:
{
"success": true,
"timestamp": 1782087176,
"base": "USD",
"date": "2026-06-22",
"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 is crucial for traders who rely on technical analysis to make informed decisions based on price movements throughout the trading day.
Bid/Ask Endpoint
The bid/ask endpoint provides current bid and ask prices for metals. Here’s an example response:
{
"success": true,
"timestamp": 1782087176,
"base": "USD",
"date": "2026-06-22",
"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 essential information for traders looking to execute trades at the best possible prices.
Conclusion
The Metals-API is a powerful tool for developers and analysts seeking to access historical gold prices and other metal data. With its comprehensive suite of endpoints, users can retrieve real-time rates, historical data, and perform conversions with ease. The API's capabilities extend beyond mere data retrieval; it empowers users to analyze market trends, track fluctuations, and make informed trading decisions.
By leveraging the features of the Metals-API, developers can create innovative applications that enhance the trading experience and provide valuable insights into the precious metals market. For more information on how to get started, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a complete list of available metals.
In a world where data-driven decisions are paramount, the Metals-API stands out as a vital resource for anyone involved in the precious metals market.