Get VanEck Merk Gold Trust (OUNZ) Historical Prices for Financial Modeling using this API
Introduction
The VanEck Merk Gold Trust (OUNZ) is a unique investment vehicle that allows investors to gain exposure to gold while also providing the option to convert their shares into physical gold. For financial modeling and analysis, obtaining historical prices for OUNZ is crucial. This is where the Metals-API comes into play. This powerful API provides real-time and historical data for various metals, including gold, enabling developers to create sophisticated financial models and applications.
Understanding Gold and Its Market Dynamics
Gold has always been a symbol of wealth and a safe haven during economic uncertainty. In recent years, the digital transformation in precious metals has revolutionized how investors access and analyze gold data. With the integration of data analytics and market insights, investors can now make informed decisions based on real-time information. The Metals-API plays a pivotal role in this transformation, offering developers the tools needed to harness the power of technology in trading and price discovery.
Digital Transformation in Precious Metals
The rise of digital assets has changed the landscape of precious metals trading. Investors are increasingly looking for innovative solutions that provide transparency and efficiency. The Metals-API offers a comprehensive suite of endpoints that allow users to access real-time and historical data, making it easier to track market trends and fluctuations.
Data Analytics and Market Insights
With the Metals-API, developers can leverage advanced data analytics to gain insights into market behavior. By utilizing the API's various endpoints, users can analyze historical price trends, track fluctuations, and even convert between different metals and currencies. This capability is essential for financial modeling, as it allows for a more nuanced understanding of market dynamics.
API Description
The Metals-API is designed to empower developers to build next-generation applications that require real-time metals data. With a focus on innovation and technological advancement, this API provides a robust framework for accessing a wide range of metal prices and historical data. The API supports various endpoints that cater to different needs, from retrieving the latest rates to accessing historical data dating back to 2019.
Key Features of Metals-API
The Metals-API offers a variety of endpoints that can be utilized for different applications:
- 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. This is essential for developers looking to integrate live pricing into their applications.
- Historical Rates Endpoint: Users can access historical rates for most currencies dating back to 2019. By appending a specific date to the API request, developers can retrieve valuable historical data for analysis.
- Bid and Ask Endpoint: This powerful feature allows users to retrieve real-time bid and ask prices, which are crucial for trading applications that require precise pricing information.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert any amount from one currency to another, facilitating seamless transactions.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how currencies fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Carat Endpoint: This feature provides information about gold rates by carat, allowing for more precise valuations based on purity.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specific date, which is essential for analyzing market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, offering a complete picture of market performance.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for analyzing long-term trends.
- API Key: Each user is assigned a unique API key that must be included in API requests to authenticate access.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring users have access to 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. This resource is invaluable for developers looking to integrate specific metal data into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
The Latest Rates Endpoint allows users to get real-time exchange rates for all available metals. Here is an example response:
{
"success": true,
"timestamp": 1784247237,
"base": "USD",
"date": "2026-07-17",
"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"
}
In this response, the "rates" object contains the current exchange rates for various metals, with "XAU" representing gold.
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. Here is an example response:
{
"success": true,
"timestamp": 1784160837,
"base": "USD",
"date": "2026-07-16",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response provides historical rates, allowing developers to analyze past market behavior and trends.
Time-Series Endpoint
The Time-Series Endpoint enables users to get exchange rates for a specific time period. Here is an example response:
{
"success": true,
"timeseries": true,
"start_date": "2026-07-10",
"end_date": "2026-07-17",
"base": "USD",
"rates": {
"2026-07-10": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-07-12": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-07-17": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This endpoint is particularly useful for developers looking to analyze trends over a specific period, as it provides daily rates for the selected dates.
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. Here is an example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1784247237,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response indicates that 1000 USD is equivalent to 0.482 troy ounces of gold, providing a straightforward conversion for users.
Fluctuation Endpoint
The Fluctuation Endpoint allows users to track rate fluctuations between two dates. Here is an example response:
{
"success": true,
"fluctuation": true,
"start_date": "2026-07-10",
"end_date": "2026-07-17",
"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 endpoint is essential for understanding market volatility and making informed trading decisions based on historical fluctuations.
OHLC (Open/High/Low/Close) Endpoint
The OHLC Endpoint provides open, high, low, and close prices for a specific time period. Here is an example response:
{
"success": true,
"timestamp": 1784247237,
"base": "USD",
"date": "2026-07-17",
"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 response provides a comprehensive view of market performance for a specific date, allowing for detailed analysis of price movements.
Bid/Ask Endpoint
The Bid/Ask Endpoint provides current bid and ask prices for metals. Here is an example response:
{
"success": true,
"timestamp": 1784247237,
"base": "USD",
"date": "2026-07-17",
"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 endpoint is crucial for traders who need to know the current market prices for buying and selling metals.
Conclusion
In conclusion, the VanEck Merk Gold Trust (OUNZ) provides a unique opportunity for investors to gain exposure to gold while also having the option to convert shares into physical gold. The Metals-API is an invaluable resource for developers looking to access historical prices and real-time data for OUNZ and other metals. By leveraging the various endpoints offered by the API, developers can create sophisticated financial models and applications that provide insights into market trends and fluctuations.
For more detailed information about the API's capabilities, refer to the Metals-API Documentation. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available metal symbols, ensuring that developers have access to the latest data.
As the digital transformation in precious metals continues to evolve, the Metals-API stands at the forefront, empowering developers to innovate and create next-generation applications that harness the power of real-time metals data.