Retrieve Real-Time Delhi Gold 22k (DELH-22k) Historical Prices using this API
Retrieve Real-Time Delhi Gold 22k (DELH-22k) Historical Prices using this API
In today's digital landscape, the demand for real-time data is paramount, especially in the financial sector. For those interested in precious metals, particularly gold, accessing accurate and timely information is crucial for making informed decisions. This blog post will delve into the Metals-API, a powerful tool that allows developers to retrieve historical prices for gold, including the specific Delhi Gold 22k (DELH-22k) rates. We will explore the innovative features of this API, its capabilities, and how it can empower developers to create next-generation applications.
About Gold (XAU)
Gold has always been a symbol of wealth and stability. In recent years, the digital transformation in the precious metals market has revolutionized how investors and traders access and analyze data. The integration of technology in trading has paved the way for innovative solutions that enhance price discovery and market insights. With the rise of data analytics, stakeholders can now leverage real-time information to make strategic decisions.
Gold, represented by the symbol XAU, is not just a commodity; it is a digital asset that plays a significant role in global finance. The ability to track historical prices and fluctuations in gold rates is essential for investors looking to optimize their portfolios. The Metals-API provides a comprehensive solution for accessing this vital information.
Metals-API Overview
The Metals-API is a robust platform that offers real-time and historical data for various metals, including gold, silver, platinum, and palladium. This API is designed for developers who need to integrate metal pricing data into their applications seamlessly. With its user-friendly interface and extensive documentation, the Metals-API empowers developers to build innovative solutions that cater to the needs of their users.
One of the key advantages of the Metals-API is its ability to provide accurate and timely data. The API updates its rates frequently, depending on the subscription plan, ensuring that users have access to the latest market information. This capability is particularly beneficial for traders and investors who rely on real-time data to make informed decisions.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different data needs. Here are some of the most notable features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on the subscription plan. This feature is essential for traders who need to stay updated on market movements.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve historical data that is crucial for trend analysis and forecasting.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals. Understanding the bid-ask spread is vital for traders looking to execute orders at the best possible prices.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for investors dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two specified dates. It is an invaluable tool for analyzing price trends over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis. This endpoint provides insights into market volatility and helps traders make informed decisions.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, providing a more granular view of gold pricing.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, which is essential for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, offering a comprehensive view of market performance.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing users to analyze long-term trends.
- 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, ensuring consistency in data interpretation.
- Available Endpoints: The API includes 14 different endpoints, each offering unique functionalities to cater to various user needs.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- News Endpoint: Users can retrieve the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for developers. Below are examples of various API endpoints and their expected responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1769818684,
"base": "USD",
"date": "2026-01-31",
"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 API successfully retrieved the latest rates for various metals, with gold (XAU) priced at 0.000482 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1769732284,
"base": "USD",
"date": "2026-01-30",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date, providing valuable insights into past market performance.
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-01-24",
"end_date": "2026-01-31",
"base": "USD",
"rates": {
"2026-01-24": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-01-26": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-01-31": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows users to analyze price trends over a specified period, which is essential for forecasting future movements.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1769818684,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response illustrates how the convert endpoint works, allowing users to convert amounts between different metals and currencies.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-01-24",
"end_date": "2026-01-31",
"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 provides insights into how metal prices fluctuate over time, which is crucial for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1769818684,
"base": "USD",
"date": "2026-01-31",
"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 a comprehensive view of market performance, allowing users to analyze price movements throughout the trading day.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1769818684,
"base": "USD",
"date": "2026-01-31",
"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 effectively.
Conclusion
The Metals-API is a powerful tool for developers seeking to integrate real-time and historical metal pricing data into their applications. With its extensive range of endpoints and capabilities, the API empowers users to make informed decisions based on accurate and timely information. Whether you are analyzing trends, converting currencies, or tracking fluctuations, the Metals-API provides the necessary resources to enhance your trading strategies.
For more information on how to utilize this API effectively, refer to the Metals-API Documentation and explore the Metals-API Supported Symbols for a comprehensive list of available metals. By leveraging the capabilities of the Metals-API, you can stay ahead in the ever-evolving world of precious metals trading.