Retrieve updated iShares Gold Strategy ETF (IAUF) prices using this API
Retrieve Updated iShares Gold Strategy ETF (IAUF) Prices Using Metals-API
The iShares Gold Strategy ETF (IAUF) is a popular investment vehicle that allows investors to gain exposure to gold prices without the complexities of physical ownership. As the demand for gold continues to rise, driven by its status as a safe-haven asset, the need for accurate and real-time pricing information becomes paramount. This is where the Metals-API comes into play, providing developers with the tools necessary to retrieve updated gold prices and other precious metals data efficiently.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, is not just a commodity; it is a digital asset that has undergone a transformation in how it is traded and analyzed. The integration of technology in trading practices has led to a significant shift in how market insights are derived. With the advent of data analytics, traders can now leverage real-time data to make informed decisions, enhancing their trading strategies.
The digital transformation in precious metals trading has opened up new avenues for innovation in price discovery. By utilizing advanced algorithms and machine learning techniques, traders can analyze historical data and predict future price movements with greater accuracy. This is where the Metals-API Documentation becomes invaluable, offering a comprehensive guide to accessing real-time and historical gold prices.
API Description
The Metals-API is a powerful tool that provides developers with access to real-time metals data, enabling the creation of next-generation applications. With its innovative features, the API empowers users to build solutions that can track price fluctuations, convert currencies, and analyze historical trends. The transformative potential of this API lies in its ability to deliver accurate and timely data, which is crucial for making informed trading decisions.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs, allowing developers to retrieve essential data about precious metals. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes, 10 minutes, or even more frequently, depending on your subscription plan. This feature is crucial for traders who need the most current pricing information to make timely decisions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, users can query the Metals-API for past rates, allowing for comprehensive market analysis.
- Bid And Ask Endpoint: This powerful feature enables 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, allowing users to convert any amount from one currency to another. This is particularly useful for traders dealing in multiple currencies.
- Time-Series Endpoint: Users can query the API for daily historical rates between two dates of their choice, facilitating in-depth analysis of price trends over time.
- Fluctuation Endpoint: This endpoint provides information about how currencies fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Users can retrieve information about gold rates by carat, which is essential for jewelers and those involved in the jewelry market.
- Lowest/Highest Price Endpoint: This endpoint allows users to query the API to get the lowest and highest prices for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can access the open, high, low, and close prices for a specific date, which is vital for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, offering a long-term perspective on metal prices.
- API Key: Each user is assigned a unique API key that must be included in the API base URL's access_key parameter for authentication.
- API Response: The Metals-API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API features 14 endpoints, each designed to provide specific functionalities, making it a versatile tool for developers.
- Supported Symbols Endpoint: This endpoint returns all available currencies, ensuring users have access to the latest symbols and their specifications.
- News Endpoint: Users can retrieve 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's response structure is crucial for effective implementation. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1775434228,
"base": "USD",
"date": "2026-04-06",
"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 above response indicates that the latest exchange rates for various metals are provided, with XAU representing gold. The "unit" field specifies that the rates are per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1775347828,
"base": "USD",
"date": "2026-04-05",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This response shows historical rates for a specific date, allowing users to analyze past price movements.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-03-30",
"end_date": "2026-04-06",
"base": "USD",
"rates": {
"2026-03-30": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-04-01": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-04-06": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This example illustrates how to retrieve exchange rates for a specific time period, enabling users to track price trends over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1775434228,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
The Convert Endpoint allows users to convert a specified amount from one metal to another or to/from USD. In this case, 1000 USD converts to 0.482 troy ounces of gold.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-03-30",
"end_date": "2026-04-06",
"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 rates fluctuate between two dates, which is essential for understanding market volatility.
OHLC (Open/High/Low/Close) Endpoint
{
"success": true,
"timestamp": 1775434228,
"base": "USD",
"date": "2026-04-06",
"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"
}
The OHLC endpoint provides critical data for traders looking to perform technical analysis, as it includes the opening, highest, lowest, and closing prices for a specific date.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1775434228,
"base": "USD",
"date": "2026-04-06",
"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 provides the current bid and ask prices for metals, which is essential for traders to understand market liquidity and make informed trading decisions.
Conclusion
In conclusion, the iShares Gold Strategy ETF (IAUF) represents a significant opportunity for investors looking to capitalize on gold's enduring value. The Metals-API serves as a vital resource for developers, providing comprehensive access to real-time and historical gold prices, as well as a suite of powerful endpoints designed to enhance trading strategies. By leveraging the capabilities of the Metals-API, developers can create innovative applications that empower traders with the insights they need to navigate the complexities of the precious metals market.
For more information on how to implement these features and access the full capabilities of the Metals-API, be sure to explore the Metals-API Documentation and the Metals-API Supported Symbols page. With the right tools and data at your fingertips, you can unlock the full potential of trading in precious metals.