Get iShares Gold Strategy ETF (IAUF) prices using this API for your trading strategies
Get iShares Gold Strategy ETF (IAUF) prices using this API for your trading strategies
In the world of trading and investment, having access to real-time data is crucial for making informed decisions. The iShares Gold Strategy ETF (IAUF) is a popular choice among investors looking to gain exposure to gold without the complexities of physical ownership. To effectively leverage this ETF in your trading strategies, understanding how to obtain accurate and timely price data is essential. This is where the Metals-API comes into play, offering a robust solution for accessing gold prices and other precious metals data.
Metals-API Information
The Metals-API is a powerful tool designed for developers and traders who require real-time and historical data on precious metals. With its advanced capabilities, the API allows users to integrate metal pricing into their applications seamlessly. This API is particularly beneficial for those involved in trading strategies that rely on accurate market insights.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been regarded as a safe-haven asset and a hedge against inflation. In recent years, the digital transformation in precious metals has revolutionized how traders and investors approach the market. With the integration of data analytics and technology, market insights have become more accessible, allowing for innovative trading strategies.
As the demand for digital asset solutions grows, the importance of real-time data in price discovery becomes evident. The Metals-API empowers developers to build next-generation applications that can analyze gold price trends, monitor fluctuations, and provide actionable insights for traders. By leveraging this API, you can enhance your trading strategies and make data-driven decisions.
API Description
The Metals-API offers a comprehensive suite of features that cater to the needs of traders and developers alike. Its capabilities include real-time exchange rates, historical data access, and various endpoints designed to facilitate seamless integration into trading platforms. The API's transformative potential lies in its ability to provide developers with the tools needed to create applications that can analyze and visualize metal prices effectively.
For detailed information on how to get started, refer to the Metals-API Documentation. This resource provides comprehensive guidance on implementing the API and understanding its functionalities.
Key Features and Endpoints
The Metals-API boasts several key features that enhance its usability for traders:
- 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 feature is essential for traders who require up-to-the-minute pricing information.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date to your query, you can retrieve past pricing data, which is invaluable for trend analysis and backtesting trading strategies.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices, providing insight into market liquidity and helping traders make informed decisions.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling users to convert amounts between different metals or to/from USD. This feature is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice. This endpoint is ideal for analyzing price movements over specific periods.
- Fluctuation Endpoint: Retrieve information about how metal prices fluctuate on a day-to-day basis, allowing traders to assess volatility and adjust their strategies accordingly.
- Carat Endpoint: Access gold rates by carat, which is essential for jewelers and traders dealing with gold in various purities.
- Lowest/Highest Price Endpoint: 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: This endpoint allows you to retrieve 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, offering a wealth of data for traders focused on industrial metals.
- API Key: Your unique API key is required for authentication and must be included in your requests to access the API's features.
- API Response: Exchange rates are delivered relative to USD by default, and all data is returned in a structured JSON format, making it easy to parse and integrate into applications.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing distinct functionalities tailored to various trading needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies and metal symbols, ensuring you have access to the latest data.
- News Endpoint: Retrieve the latest news articles related to various metals, keeping you 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 how to interpret API responses is crucial for effective integration. Below are examples of various endpoints and their corresponding JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1764046864,
"base": "USD",
"date": "2025-11-25",
"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": 1763960464,
"base": "USD",
"date": "2025-11-24",
"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-11-18",
"end_date": "2025-11-25",
"base": "USD",
"rates": {
"2025-11-18": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-20": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-25": {
"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": 1764046864,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-18",
"end_date": "2025-11-25",
"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": 1764046864,
"base": "USD",
"date": "2025-11-25",
"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": 1764046864,
"base": "USD",
"date": "2025-11-25",
"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 traders and developers looking to integrate real-time gold pricing and other precious metals data into their applications. By utilizing the various endpoints and features offered by the API, you can enhance your trading strategies, gain insights into market trends, and make informed decisions based on accurate data. Whether you are analyzing historical trends or tracking real-time fluctuations, the Metals-API provides the tools necessary to succeed in the dynamic world of precious metals trading.
For further exploration, consider visiting the Metals-API Documentation for detailed guidance on implementation, or check the Metals-API Supported Symbols page for a comprehensive list of available metal symbols. With the right tools and data at your fingertips, you can navigate the complexities of the metals market with confidence.