Get iShares Gold Strategy ETF (IAUF) Historical Prices with Metals-API

Get iShares Gold Strategy ETF (IAUF) Historical Prices with Metals-API
Metals-API, a robust tool designed to provide real-time and historical data on various metals, including gold (XAU). This blog post will explore how to obtain historical prices for IAUF using Metals-API, while also delving into the broader implications of digital transformation in the precious metals market.
About Gold (XAU)
API Description
Metals-API is a powerful tool that offers developers the ability to access a wealth of information related to precious metals. With its innovative capabilities, the API enables users to build applications that can track real-time prices, historical data, and fluctuations in the market. This API is particularly beneficial for developers looking to create applications that require accurate and timely metals data.
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint returns real-time exchange rate data updated at intervals of 60 minutes, 10 minutes, or even more frequently.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. You can query the API for historical rates by appending a specific date.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices, a powerful feature that allows for precise trading strategies.
- Convert Endpoint: Convert any amount from one currency to another, facilitating seamless transactions across different metals.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, providing insights into market trends over time.
- Fluctuation Endpoint: Retrieve information about how currencies fluctuate on a day-to-day basis, essential for understanding market volatility.
- Carat Endpoint: Access information about gold rates by carat, useful for jewelers and investors alike.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest price for a specific date.
- Open/High/Low/Close (OHLC) Price Endpoint: Get detailed OHLC data for a specific time period, crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Your unique key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates are delivered relative to USD, with all data returned in a structured format.
- Available Endpoints: The API offers a variety of endpoints, each providing different functionalities tailored to user needs.
- Supported Symbols Endpoint: Access a constantly updated list of all available currencies and metals.
- Gold Price India Endpoint: Retrieve the latest gold price in India, catering to a specific market segment.
- News Endpoint: Get the latest news articles related to various metals, keeping users informed about market developments.
Key Features and Endpoints
Latest Rates Endpoint
{
"success": true,
"timestamp": 1742029263,
"base": "USD",
"date": "2025-03-15",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
{
"success": true,
"timestamp": 1741942863,
"base": "USD",
"date": "2025-03-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-Series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-03-08",
"end_date": "2025-03-15",
"base": "USD",
"rates": {
"2025-03-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-03-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-03-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1742029263,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-03-08",
"end_date": "2025-03-15",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
{
"success": true,
"timestamp": 1742029263,
"base": "USD",
"date": "2025-03-15",
"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
{
"success": true,
"timestamp": 1742029263,
"base": "USD",
"date": "2025-03-15",
"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"
}
List of Symbols
Metals-API Supported Symbols page. This resource is invaluable for developers and traders alike, as it ensures that users can access the most relevant data for their needs.
Conclusion
Metals-API, investors and developers can access a wealth of historical price data and real-time market insights that are essential for making informed decisions. The API's robust features, including the Latest Rates, Historical Rates, and various conversion endpoints, empower users to analyze market trends and execute trades with confidence.
Metals-API Documentation, which provides comprehensive guidance on utilizing the API's features effectively. Whether you are a seasoned trader or a developer looking to build cutting-edge applications, the Metals-API is your gateway to the world of precious metals data.