Access Real-Time DB Gold Short ETN (DGZ) Prices in Multiple Currencies with this API

Access Real-Time DB Gold Short ETN (DGZ) Prices in Multiple Currencies with this API
In today's fast-paced financial landscape, having access to real-time data is crucial for making informed decisions. The Metals-API provides an innovative solution for developers looking to access accurate Gold (XAU) prices in various currencies. This API not only delivers real-time exchange rates but also offers a suite of features that empower businesses to leverage data analytics and market insights effectively.
About Gold (XAU)
Gold has long been a symbol of wealth and stability, making it a critical asset in financial markets. As digital transformation continues to reshape industries, the precious metals market is no exception. The integration of technology in trading has led to innovative approaches in price discovery and data analytics. With the rise of digital asset solutions, businesses can now harness the power of real-time gold pricing to enhance their operations.
Metals-API stands at the forefront of this transformation, providing developers with the tools needed to build next-generation applications. By accessing accurate Gold prices in different currencies, businesses can make data-driven decisions that align with market trends. Whether you are a trader, investor, or financial analyst, understanding the dynamics of gold pricing is essential for success.
API Description
The Metals-API is designed to provide comprehensive access to real-time and historical metals data. It empowers developers to create applications that can analyze market trends, track price fluctuations, and convert currencies seamlessly. With a user-friendly interface and robust documentation, the API simplifies the integration process, allowing developers to focus on building innovative solutions.
For detailed instructions on how to implement the API, refer to the Metals-API Documentation. This resource provides extensive information on API capabilities, endpoints, and best practices for integration.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different business needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently, depending on your subscription plan. It allows users to access the latest Gold prices in various currencies, enabling timely trading decisions.
- Historical Rates Endpoint: Businesses can access historical rates dating back to 2019. By appending a specific date to the API request, users can retrieve past Gold prices, which is invaluable for market analysis and trend forecasting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time Bid and Ask prices for Gold. Understanding the spread between these prices is essential for traders looking to optimize their buying and selling strategies.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing users to convert any amount from one currency to another. This is particularly useful for businesses operating in multiple regions and needing to assess Gold prices in local currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice. This feature is beneficial for analyzing trends over specific periods, helping businesses make informed decisions based on historical data.
- Fluctuation Endpoint: This endpoint provides insights into how Gold prices fluctuate on a day-to-day basis. Understanding these fluctuations can help businesses manage risk and capitalize on market opportunities.
- Carat Endpoint: For businesses dealing with jewelry or high-value items, the Carat endpoint allows users to retrieve Gold rates by Carat, facilitating accurate pricing for products.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest Gold prices for a specified date range, enabling them to identify market extremes and make strategic decisions.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides comprehensive data on the open, high, low, and close prices for Gold, which is crucial for technical analysis and trading strategies.
- Historical LME Endpoint: For those interested in LME symbols, this endpoint provides historical rates dating back to 2008, offering a wealth of data for analysis.
- API Key: Each user is assigned a unique API key, which is essential for accessing the API's features securely.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API includes 14 different endpoints, each designed to provide specific functionalities that cater to diverse business needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies, ensuring users have access to the latest information.
- Gold Price India Endpoint: For businesses operating in India, this dedicated endpoint retrieves the latest Gold prices in the Indian market.
- News Endpoint: Users can access the latest news articles related to various metals, keeping them informed about market developments.
API Endpoint Examples and Responses
To illustrate the capabilities of the Metals-API, here are some example responses from various endpoints:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1759449790,
"base": "USD",
"date": "2025-10-03",
"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"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1759363390,
"base": "USD",
"date": "2025-10-02",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-09-26",
"end_date": "2025-10-03",
"base": "USD",
"rates": {
"2025-09-26": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-09-28": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-10-03": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1759449790,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-09-26",
"end_date": "2025-10-03",
"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"
}
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1759449790,
"base": "USD",
"date": "2025-10-03",
"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"
}
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1759449790,
"base": "USD",
"date": "2025-10-03",
"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"
}
Conclusion
The Metals-API is a powerful tool for developers looking to access real-time Gold prices and other precious metals data. By leveraging its extensive features, businesses can enhance their trading strategies, improve market analysis, and make informed decisions based on accurate data. With endpoints that cater to various needs—from real-time rates to historical data—this API is essential for anyone involved in the precious metals market.
For further exploration of the API's capabilities, visit the Metals-API Supported Symbols page to see the full range of available currencies and metals. Additionally, the Metals-API Documentation provides comprehensive guidance on how to implement these features effectively.
In a world where data drives decisions, the Metals-API stands out as a transformative solution for accessing real-time metals pricing. Embrace the power of accurate data and take your trading strategies to the next level.