Get Accurate DB Gold Double Long ETN (DGP) Prices in Multiple Currencies with this API

Get Accurate DB Gold Double Long ETN (DGP) Prices in Multiple Currencies with this API
Metals-API provides developers with the tools necessary to retrieve precise prices for precious metals like Gold (XAU) in various currencies. This blog post will explore how the Metals-API empowers businesses and developers by offering innovative solutions for digital transformation in precious metals trading.
About Gold (XAU)
API Description
Metals-API Documentation, which outlines the various endpoints and their functionalities.
Key Features and Endpoints
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for precious metals, updated every 60 minutes or more frequently depending on the subscription plan. For example, a request to the latest rates endpoint might return the following JSON response:
{
"success": true,
"timestamp": 1755475253,
"base": "USD",
"date": "2025-08-18",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
- Historical Rates Endpoint: Businesses can access historical rates dating back to 2019. This feature is invaluable for conducting market analysis and understanding price trends over time. For instance, a request for historical rates might yield:
{
"success": true,
"timestamp": 1755388853,
"base": "USD",
"date": "2025-08-17",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, which is crucial for traders looking to execute orders at optimal prices. The response might look like this:
{
"success": true,
"timestamp": 1755475253,
"base": "USD",
"date": "2025-08-18",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
}
},
"unit": "per troy ounce"
}
- Convert Endpoint: The Metals-API includes a currency conversion feature that allows users to convert any amount from one currency to another. For example, converting 1000 USD to Gold might return:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1755475253,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
- Time-Series Endpoint: This feature allows users to query the API for daily historical rates between two specified dates. For example:
{
"success": true,
"timeseries": true,
"start_date": "2025-08-11",
"end_date": "2025-08-18",
"base": "USD",
"rates": {
"2025-08-11": {
"XAU": 0.000485
},
"2025-08-18": {
"XAU": 0.000482
}
},
"unit": "per troy ounce"
}
- Fluctuation Endpoint: Users can track rate fluctuations between two dates, which is crucial for understanding market volatility. A sample response might look like this:
{
"success": true,
"fluctuation": true,
"start_date": "2025-08-11",
"end_date": "2025-08-18",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, which is vital for technical analysis. A typical response might be:
{
"success": true,
"timestamp": 1755475253,
"base": "USD",
"date": "2025-08-18",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API for the lowest and highest prices for a specified date, providing insights into market extremes.
Metals-API Supported Symbols page.
Conclusion
Metals-API Documentation offers comprehensive guidance on how to utilize each endpoint effectively. By embracing the innovative solutions provided by the Metals-API, businesses can stay ahead in the competitive landscape of precious metals trading.