Get VanEck Merk Gold Trust (OUNZ) prices using this API

Get VanEck Merk Gold Trust (OUNZ) Prices Using This API
In the world of precious metals trading, having access to real-time data is crucial for making informed decisions. The VanEck Merk Gold Trust (OUNZ) is a unique investment vehicle that allows investors to gain exposure to gold while also providing the flexibility of trading on the stock exchange. To effectively track the prices of OUNZ and other precious metals, developers can utilize the Metals-API, a powerful tool that delivers real-time and historical data for various metals, including gold (XAU).
Metals-API Information
The Metals-API is designed to empower developers with the ability to integrate real-time metals data into their applications. This API provides a comprehensive suite of endpoints that allow users to access the latest rates, historical data, and various other functionalities that can enhance trading strategies and market analysis.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, particularly in times of economic uncertainty. With the rise of digital transformation in the precious metals market, data analytics and market insights have become more accessible than ever. The integration of technology in trading has revolutionized how investors approach gold investments. Innovations in price discovery and digital asset solutions have made it easier for traders to navigate the complexities of the market.
As a digital asset, gold can now be traded with the same ease as cryptocurrencies, thanks to platforms that leverage real-time data. The Metals-API plays a pivotal role in this transformation, providing developers with the tools needed to build next-generation applications that can analyze trends, track prices, and make informed trading decisions.
API Description
The Metals-API is a robust solution for accessing metals prices and currency conversion data. It offers a variety of endpoints that cater to different needs, from retrieving the latest rates to accessing historical data. This API is particularly valuable for developers looking to create applications that require real-time updates and comprehensive market insights.
For detailed documentation on how to use the API, visit the Metals-API Documentation. Here, you will find information on how to authenticate your requests, manage your API key, and understand the various endpoints available.
Key Features and Endpoints
The Metals-API offers several key features that can significantly enhance your trading applications:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated every 60 minutes, every 10 minutes, or even more frequently. This allows traders to stay informed about the latest market movements.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a date to your query, you can retrieve past prices and analyze trends over time.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time bid and ask prices for various metals, allowing traders to make quick decisions based on current market conditions.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, which can be used to convert any amount from one currency to another, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, which is essential for analyzing price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Access gold rates by carat, which is particularly useful for jewelers and those involved in the jewelry market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specific date, helping traders identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get the open, high, low, and close prices for a specific date, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term perspective on metal prices.
- API Key: Your unique API key is essential for accessing the API and must be included in your requests.
- API Response: The exchange rates delivered by the Metals-API are by default relative to USD, ensuring consistency across your data.
- Available Endpoints: The API comes with numerous endpoints, each providing different functionalities tailored to various trading needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring you have access to the latest symbols.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is particularly useful for traders in the Indian market.
- News Endpoint: Stay updated with the latest news articles related to various metals, which can impact market sentiment.
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 integration. Here are some examples of the JSON responses you can expect from various endpoints:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1746410417,
"base": "USD",
"date": "2025-05-05",
"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
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1746324017,
"base": "USD",
"date": "2025-05-04",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
Get exchange rates for a specific time period.
{
"success": true,
"timeseries": true,
"start_date": "2025-04-28",
"end_date": "2025-05-05",
"base": "USD",
"rates": {
"2025-04-28": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-04-30": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-05": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
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": 1746410417,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-04-28",
"end_date": "2025-05-05",
"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
Get OHLC data for a specific time period.
{
"success": true,
"timestamp": 1746410417,
"base": "USD",
"date": "2025-05-05",
"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
Get current bid and ask prices for metals.
{
"success": true,
"timestamp": 1746410417,
"base": "USD",
"date": "2025-05-05",
"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
The Metals-API is an invaluable resource for developers looking to integrate real-time and historical metals data into their applications. With its comprehensive suite of endpoints, including the latest rates, historical data, and various conversion options, this API provides the tools necessary to make informed trading decisions in the precious metals market.
By leveraging the capabilities of the Metals-API, developers can create innovative applications that enhance trading strategies, provide market insights, and facilitate seamless transactions. For more information on how to get started, visit the Metals-API Website and explore the extensive Metals-API Documentation for detailed guidance on implementation.