Discover Delhi Gold 18k (DELH-18k) Historical Prices by leveraging this API
Introduction
In the ever-evolving landscape of precious metals trading, understanding the historical prices of gold (XAU) is crucial for investors and developers alike. The Metals-API offers a powerful solution for accessing real-time and historical data on gold prices, enabling developers to create innovative applications that leverage this information. This blog post will delve into the capabilities of the Metals-API, focusing on how to retrieve historical prices for 18k gold (DELH-18k) and explore the transformative potential of integrating this data into your applications.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, serving as a hedge against inflation and economic uncertainty. As digital transformation reshapes the financial landscape, the integration of data analytics and technology in precious metals trading is becoming increasingly important. The Metals-API empowers developers to harness real-time market insights, facilitating innovation in price discovery and the development of digital asset solutions.
Digital Transformation in Precious Metals
The rise of digital platforms has revolutionized how traders and investors access market data. With the Metals-API, developers can build applications that provide users with up-to-the-minute information on gold prices, historical trends, and market fluctuations. This digital transformation not only enhances user experience but also enables more informed decision-making.
Data Analytics and Market Insights
Utilizing the Metals-API allows developers to tap into a wealth of data analytics capabilities. By analyzing historical price data, users can identify patterns and trends that inform their trading strategies. The API's historical rates endpoint provides access to gold prices dating back to 2019, allowing for comprehensive market analysis.
Technology Integration in Trading
Integrating the Metals-API into trading platforms can streamline operations and enhance the trading experience. Developers can create applications that automatically fetch the latest gold prices, display historical trends, and even send alerts based on price fluctuations. This level of integration ensures that traders are always equipped with the most relevant information.
Innovation in Price Discovery
Price discovery is a critical component of trading, and the Metals-API facilitates this process by providing real-time data on gold prices. The API's latest rates endpoint updates every 60 minutes or more frequently, depending on the subscription plan, ensuring that users have access to the most current market information.
API Description
The Metals-API is a comprehensive JSON API that provides access to metals prices and currency conversion. It empowers developers to build next-generation applications by offering a range of endpoints that deliver real-time and historical data. The API supports various functionalities, including retrieving the latest rates, historical prices, and bid/ask prices, making it an invaluable tool for developers in the financial sector.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for gold and other metals, updated based on your subscription plan. For example, if you subscribe to the most frequent updates, you can receive data every 10 minutes.
- Historical Rates Endpoint: Access historical rates for gold dating back to 2019. By appending a specific date to your query, you can retrieve the price of gold on that date, enabling detailed historical analysis.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for gold, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how gold prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and consumers interested in specific gold qualities.
- Lowest/Highest Price Endpoint: Query the API to find the lowest and highest prices for gold over a specified period.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for gold prices, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols, dating back to 2008, which is beneficial for comprehensive market studies.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals supported by the API.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, allowing for real-time trading strategies.
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 multiple metals into their applications.
API Endpoint Examples and Responses
Understanding the API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1786839158,
"base": "USD",
"date": "2026-08-16",
"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 current price of gold (XAU) is 0.000482 per troy ounce, with additional rates for other metals.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1786752758,
"base": "USD",
"date": "2026-08-15",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows the historical price of gold on August 15, 2026, allowing developers to analyze past market behavior.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-08-09",
"end_date": "2026-08-16",
"base": "USD",
"rates": {
"2026-08-09": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-11": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-16": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of gold prices over a specified period, enabling developers to visualize trends and fluctuations.
Convert Endpoint
Convert any amount from one metal to another or to/from USD:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1786839158,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that 1000 USD is equivalent to 0.482 troy ounces of gold, showcasing the conversion capabilities of the API.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-09",
"end_date": "2026-08-16",
"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 prices have changed over a specified period, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1786839158,
"base": "USD",
"date": "2026-08-16",
"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 provides the open, high, low, and close prices for gold, which are critical for traders conducting technical analysis.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1786839158,
"base": "USD",
"date": "2026-08-16",
"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, which are essential for traders looking to execute buy or sell orders.
Conclusion
In conclusion, the Metals-API is an invaluable resource for developers seeking to access real-time and historical data on gold prices. By leveraging the various endpoints available, developers can create innovative applications that provide users with insights into market trends, price fluctuations, and conversion capabilities. The integration of the Metals-API into trading platforms not only enhances user experience but also empowers traders to make informed decisions based on comprehensive market data.
For more information on how to implement the Metals-API in your applications, refer to the Metals-API Documentation. Explore the full range of supported symbols on the Metals-API Supported Symbols page, and start building your next-generation trading application today!