Get Invesco DB Precious Metals Fund (DBP) Historical Prices for Market Analysis using this API

Get Invesco DB Precious Metals Fund (DBP) Historical Prices for Market Analysis using this API
Metals-API, a powerful tool that provides real-time and historical pricing information for various metals, including gold, silver, platinum, and palladium.
Metals-API Information
About Neodymium (ND)
API Description
Metals-API Documentation. This resource provides comprehensive guidance on the various endpoints, including how to authenticate, query data, and interpret responses.
Key Features and Endpoints
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes or more frequently. This feature is essential for traders who need up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates dating back to 2019. Users can query the API for specific dates, allowing for detailed market analysis over time.
- Bid And Ask Endpoint: This powerful feature enables retrieval of real-time bid and ask prices, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: This endpoint allows users to convert amounts between different metals or to/from USD, facilitating easy calculations for trading and investment.
- Time-Series Endpoint: Query the API for daily historical rates between two chosen dates, enabling trend analysis and forecasting.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: Get information about gold rates by carat, which is particularly useful for jewelers and gold traders.
- Lowest/Highest Price Endpoint: This endpoint allows users to query for the lowest and highest prices over a specified period, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for specific time periods, which is vital 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 for authentication and must be included in the API requests.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API offers a variety of endpoints, each providing distinct functionalities tailored to different user needs.
- Supported Symbols Endpoint: This endpoint returns all available metal symbols, allowing users to easily identify the metals they can query.
- Gold Price India Endpoint: Retrieve the latest gold price in India, which is particularly useful for traders in the Indian market.
- News Endpoint: Access the latest news articles related to various metals, keeping users informed about market developments.
List of Symbols
Metals-API Supported Symbols page. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
{
"success": true,
"timestamp": 1745737324,
"base": "USD",
"date": "2025-04-27",
"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": 1745650924,
"base": "USD",
"date": "2025-04-26",
"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-04-20",
"end_date": "2025-04-27",
"base": "USD",
"rates": {
"2025-04-20": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-22": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-04-27": {
"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": 1745737324,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-20",
"end_date": "2025-04-27",
"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) Endpoint
{
"success": true,
"timestamp": 1745737324,
"base": "USD",
"date": "2025-04-27",
"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": 1745737324,
"base": "USD",
"date": "2025-04-27",
"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
Metals-API Documentation and discover how to effectively implement these powerful tools in your projects.