Discover VanEck Merk Gold Trust (OUNZ) Historical Prices via this API

Discover VanEck Merk Gold Trust (OUNZ) Historical Prices via this API
In the ever-evolving landscape of precious metals trading, the VanEck Merk Gold Trust (OUNZ) stands out as a unique investment vehicle that allows investors to gain exposure to gold while maintaining the flexibility of a digital asset. For developers and traders looking to analyze the historical prices of OUNZ, the Metals-API offers a robust solution. This blog post will delve into the capabilities of the Metals-API, particularly focusing on how to retrieve historical prices for gold and other precious metals, along with the innovative features that make this API a powerful tool for data analytics and market insights.
Metals-API Information
The Metals-API is a comprehensive JSON API that provides real-time and historical data for various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). This API is designed for developers who need accurate and timely data to build next-generation applications in the financial and trading sectors. With its advanced technology integration, the Metals-API empowers users to access critical market insights and analytics, facilitating informed decision-making in trading and investment.
About Gold (XAU)
Gold has long been regarded as a safe haven asset, particularly in times of economic uncertainty. The digital transformation in the precious metals market has led to innovative solutions that enhance price discovery and trading efficiency. The integration of data analytics allows traders to analyze market trends and fluctuations effectively. By leveraging the Metals-API, developers can access real-time and historical gold prices, enabling them to create applications that provide valuable insights into market dynamics.
As the demand for digital asset solutions grows, the Metals-API stands out by offering a range of endpoints that cater to various needs. From retrieving the latest rates to accessing historical data, the API provides a comprehensive toolkit for developers looking to harness the power of metals data.
API Description
The Metals-API is designed with innovation and technological advancement at its core. It provides a suite of endpoints that allow users to access real-time and historical metals data seamlessly. The API is built to empower developers to create applications that can analyze market trends, perform currency conversions, and track price fluctuations over time.
For more detailed information on how to implement these features, developers can refer to the Metals-API Documentation, which provides comprehensive guidance on using the API effectively.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to fulfill specific data retrieval needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on the plan, updates can occur every 60 minutes or even every 10 minutes. This feature is crucial for traders who need the most current pricing information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a specific date to the API request, developers can retrieve past prices for analysis and reporting.
- Bid And Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices for metals, 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 in multiple currencies.
- Time-Series Endpoint: This endpoint allows users to query daily historical rates between two specified dates, making it easier to analyze trends over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve gold rates by carat, which is essential for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the lowest and highest prices for a specified date, offering insights into price ranges.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access OHLC data for specific time periods, which is vital for technical analysis and trading strategies.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, allowing for comprehensive analysis of market trends.
- API Key: Each user is assigned a unique API key, which must be included in the API requests to authenticate and authorize access.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Gold Price India Endpoint: Users can retrieve the latest gold prices specifically for the Indian market, catering to regional trading needs.
- News Endpoint: This feature allows users to access the latest news articles related to various metals, keeping them informed about market developments.
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
Understanding the API responses is crucial for effective implementation. Below are examples of various API endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1752289219,
"base": "USD",
"date": "2025-07-12",
"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"
}
The response includes a success flag, a timestamp, the base currency, the date of the rates, and a list of rates for various metals. Each rate is expressed in terms of troy ounces, which is the standard measurement for precious metals.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1752202819,
"base": "USD",
"date": "2025-07-11",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This endpoint allows users to access historical rates for a specific date. The response structure is similar to the latest rates, providing valuable data for trend analysis.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-05",
"end_date": "2025-07-12",
"base": "USD",
"rates": {
"2025-07-05": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-07": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-12": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint provides a range of rates over a specified period, allowing developers to analyze trends and fluctuations in metal prices.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1752289219,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This endpoint is particularly useful for converting amounts between different metals or to/from USD. The response includes the conversion rate and the result, making it easy for users to understand the value of their assets.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-05",
"end_date": "2025-07-12",
"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"
}
The fluctuation endpoint provides insights into how metal prices have changed over a specified period, including both absolute and percentage changes.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1752289219,
"base": "USD",
"date": "2025-07-12",
"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 technical analysis, as it provides the open, high, low, and close prices for a specific date.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1752289219,
"base": "USD",
"date": "2025-07-12",
"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"
}
The bid/ask endpoint provides current market prices, which are crucial for traders looking to execute orders at the best possible prices.
Conclusion
The Metals-API is an invaluable resource for developers and traders seeking to access real-time and historical data for precious metals like gold (XAU). With its comprehensive suite of endpoints, the API enables users to analyze market trends, perform currency conversions, and track price fluctuations effectively. By leveraging the capabilities of the Metals-API, developers can create innovative applications that provide critical insights into the precious metals market.
For further exploration of the API's features and capabilities, developers are encouraged to visit the Metals-API Website and review the Metals-API Documentation for detailed implementation guidance. Additionally, the Metals-API Supported Symbols page offers a comprehensive list of available metal symbols, ensuring users have access to the latest information.
As the digital transformation of the precious metals market continues, the Metals-API stands at the forefront, providing the tools necessary for developers to harness the power of real-time metals data and drive innovation in trading and investment.