Fetch Invesco DB Precious Metals Fund (DBP) pricing details using this API
Introduction
The Invesco DB Precious Metals Fund (DBP) is an investment vehicle that provides exposure to precious metals, primarily gold and silver. As the demand for these metals fluctuates due to market conditions, having access to real-time pricing data is crucial for investors and developers alike. This is where the Metals-API comes into play. This powerful API offers a comprehensive suite of tools for fetching current and historical pricing details for various metals, enabling developers to build innovative applications that can analyze market trends and make informed investment decisions.
Metals-API Information
About Neodymium (ND)
Neodymium is a rare earth metal that has gained significant attention in recent years, particularly in the context of digital transformation in metal markets. As industries increasingly rely on technological innovation and advancement, the demand for neodymium has surged, especially in the production of high-strength magnets used in electric vehicles and renewable energy technologies. The integration of smart technology and data analytics is transforming how we understand and interact with metal markets, paving the way for future trends that could redefine investment strategies.
API Description
The Metals-API is designed to empower developers with real-time data on precious metals, facilitating the creation of next-generation applications. With its robust capabilities, the API allows users to access a wide range of endpoints that provide essential information, such as current market rates, historical data, and conversion functionalities. This API is not just a tool; it represents a transformative potential for how data is utilized in the financial sector, enabling developers to harness the power of real-time metals data for innovative applications.
For more information, you can visit the Metals-API Documentation, which provides detailed guidance on how to implement and utilize the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to cater to specific needs within the realm of metals pricing. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for various metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or every 10 minutes, ensuring that you have the most current data at your fingertips.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date in the format YYYY-MM-DD, you can query the Metals-API for past rates, allowing for comprehensive market analysis.
- Bid And Ask Endpoint: This feature enables you to retrieve real-time bid and ask prices for metals, providing insight into market liquidity and pricing dynamics.
- Convert Endpoint: The conversion endpoint allows you to convert any amount from one metal to another or to/from USD, making it easy to understand the value of metals in different contexts.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice, allowing for detailed trend analysis over time.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis, which is essential for understanding market volatility.
- Carat Endpoint: This endpoint provides gold rates by carat, which is particularly useful for jewelers and investors in the jewelry market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date range, helping you identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access open, high, low, and close prices for a specific date, which is critical for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- 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 endpoints, each providing distinct functionalities tailored to different user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring you have the latest information.
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.
API Endpoint Examples and Responses
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1784074270,
"base": "USD",
"date": "2026-07-15",
"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 the base currency being USD.
Historical Rates Endpoint
Access historical exchange rates for any date since 1999:
{
"success": true,
"timestamp": 1783987870,
"base": "USD",
"date": "2026-07-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to retrieve historical rates, allowing developers to analyze past market conditions.
Time-series Endpoint
Get exchange rates for a specific time period:
{
"success": true,
"timeseries": true,
"start_date": "2026-07-08",
"end_date": "2026-07-15",
"base": "USD",
"rates": {
"2026-07-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates, which is invaluable for trend analysis and forecasting.
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": 1784074270,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert a specified amount of USD into troy ounces of gold, showcasing the API's versatility.
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-08",
"end_date": "2026-07-15",
"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 metal prices have changed over a specified period, which is crucial for traders and analysts.
OHLC (Open/High/Low/Close) Endpoint
Get OHLC data for a specific time period:
{
"success": true,
"timestamp": 1784074270,
"base": "USD",
"date": "2026-07-15",
"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 endpoint is essential for traders who rely on historical price data to make informed decisions.
Bid/Ask Endpoint
Get current bid and ask prices for metals:
{
"success": true,
"timestamp": 1784074270,
"base": "USD",
"date": "2026-07-15",
"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, which are crucial for traders looking to execute orders at optimal prices.
Conclusion
The Invesco DB Precious Metals Fund (DBP) represents a strategic investment opportunity in the precious metals market. By leveraging the capabilities of the Metals-API, developers can create powerful applications that provide real-time insights into metal pricing, historical trends, and market fluctuations. The API's extensive features, including the latest rates, historical data, and conversion capabilities, empower users to make informed decisions based on accurate and timely information.
As the market for precious metals continues to evolve, the integration of advanced data analytics and smart technology will play a pivotal role in shaping investment strategies. By utilizing the Metals-API Documentation, developers can explore the full potential of this API, ensuring they stay ahead in a competitive landscape.
For a complete list of supported symbols and their specifications, refer to the Metals-API Supported Symbols page. Embrace the future of metal market analysis and investment with the transformative capabilities of the Metals-API.