How to retrieve Delhi Gold 18k (DELH-18k) prices using this API
Introduction
In the ever-evolving landscape of precious metals trading, the ability to access real-time data is paramount for developers and traders alike. One of the most sought-after metals is gold, specifically the 18k variant, often denoted as DELH-18k in the market. This blog post will delve into how to retrieve Delhi Gold 18k (DELH-18k) prices using the Metals-API, a powerful tool that provides comprehensive data on various metals, including gold. We will explore the API's capabilities, its endpoints, and how it can be leveraged for innovative applications in the world of finance.
Metals-API Information
About Gold (XAU)
Gold has long been a symbol of wealth and stability, and its digital transformation is reshaping how traders interact with this precious metal. The integration of technology in trading has led to enhanced data analytics and market insights, allowing for more informed decision-making. With the rise of digital asset solutions, traders can now access real-time gold prices, enabling them to capitalize on market fluctuations.
The Metals-API provides a robust framework for accessing gold prices, including the 18k variant. By utilizing this API, developers can create applications that offer real-time insights into gold pricing, historical trends, and market analysis, thus facilitating a more dynamic trading environment.
API Description
The Metals-API is designed to empower developers by providing real-time metals data that can be integrated into various applications. Its capabilities extend beyond mere price retrieval; it offers a suite of endpoints that cater to different needs, from historical data analysis to real-time conversion rates. This API is a game-changer for those looking to build next-generation applications in the financial sector.
With the Metals-API, developers can harness the power of innovation and technological advancement to create solutions that enhance price discovery and trading efficiency. The API's real-time data capabilities allow for immediate access to market changes, enabling traders to make swift decisions based on the latest information.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to serve specific functions. Here are some of the most notable features:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data for metals, updated every 60 minutes or even more frequently. This is crucial for traders who need the latest pricing information to make informed decisions.
- Historical Rates Endpoint: Access historical rates dating back to 2019. This endpoint allows users to query past prices by appending a specific date, enabling comprehensive analysis of market trends over time.
- Bid And Ask Endpoint: This feature provides real-time bid and ask prices for metals, allowing traders to gauge market sentiment and make strategic trading decisions.
- Convert Endpoint: This endpoint facilitates currency conversion, enabling users to convert any amount from one metal to another or to/from USD, streamlining transactions.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates, making it easier to analyze price movements over specific periods.
- Fluctuation Endpoint: This feature tracks how prices fluctuate on a day-to-day basis, providing insights into market volatility and trends.
- 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, helping traders identify market extremes.
- 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, which is invaluable for those analyzing long-term trends.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API offers 14 endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping users informed about market developments.
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 invaluable 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": 1764475265,
"base": "USD",
"date": "2025-11-30",
"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"
}
In this response, the "rates" object contains the current exchange rates for various metals, with XAU representing gold.
Historical Rates Endpoint
Accessing historical exchange rates is crucial for trend analysis. Here’s an example response from the Historical Rates Endpoint:
{
"success": true,
"timestamp": 1764388865,
"base": "USD",
"date": "2025-11-29",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates for gold and other metals, allowing users to analyze past performance.
Time-series Endpoint
The Time-series Endpoint enables users to retrieve exchange rates for a specific time period. Here’s an example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-11-23",
"end_date": "2025-11-30",
"base": "USD",
"rates": {
"2025-11-23": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-25": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-30": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for analyzing trends over time, as it provides daily rates for the specified period.
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": 1764475265,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response shows the conversion of USD to gold, providing both the rate and the result of the conversion.
Fluctuation Endpoint
The Fluctuation Endpoint tracks rate fluctuations between two dates. Here’s an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-23",
"end_date": "2025-11-30",
"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 prices have changed over a specified period, which is essential for traders looking to understand market dynamics.
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": 1764475265,
"base": "USD",
"date": "2025-11-30",
"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 data is crucial for technical analysis, allowing traders 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": 1764475265,
"base": "USD",
"date": "2025-11-30",
"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 is essential for traders looking to understand the current market conditions and make timely trades based on bid and ask prices.
Conclusion
The Metals-API is a powerful tool for developers and traders looking to access real-time data on precious metals, including Delhi Gold 18k (DELH-18k). By leveraging its various endpoints, users can gain insights into market trends, historical data, and real-time pricing, enabling them to make informed trading decisions.
As the digital transformation of precious metals continues, the integration of APIs like Metals-API will play a crucial role in shaping the future of trading. Whether you are a developer building applications or a trader seeking to optimize your strategies, understanding how to utilize this API effectively will provide a significant advantage in the competitive landscape of precious metals trading.
For more information on how to get started, visit the Metals-API Documentation and explore the Metals-API Supported Symbols page to familiarize yourself with the available options. Embrace the future of trading with the Metals-API and unlock the potential of real-time metals data.