Step-by-Step Guide to Get iShares Gold Trust Micro (IAUM) Historical Prices using this API
Step-by-Step Guide to Get iShares Gold Trust Micro (IAUM) Historical Prices using this API
In the world of finance, the demand for accurate and timely data is paramount, especially when it comes to precious metals like gold. This blog post will delve into the iShares Gold Trust Micro (IAUM) and how to effectively retrieve its historical prices using the Metals-API. The Metals-API is a powerful tool that provides real-time and historical data on various metals, making it an essential resource for developers and traders alike.
About Gold (XAU)
Gold, represented by the symbol XAU, has long been a cornerstone of wealth preservation and investment. As we navigate through the digital transformation of financial markets, gold remains a vital asset. The integration of technology in trading has revolutionized how investors access and analyze gold prices. With the rise of data analytics, market insights derived from historical gold prices can inform investment strategies and risk management.
Moreover, the innovation in price discovery mechanisms has allowed traders to make more informed decisions. Digital asset solutions, including cryptocurrencies backed by gold, are emerging, further blending traditional and modern investment approaches. As such, understanding how to access and interpret historical gold prices is crucial for any investor looking to leverage these trends.
Metals-API Overview
The Metals-API is designed to provide developers with comprehensive access to metals market data. It offers a suite of endpoints that deliver real-time and historical data, enabling the creation of sophisticated applications that can analyze market trends, perform currency conversions, and track price fluctuations.
One of the standout features of the Metals-API is its ability to empower developers to build next-generation applications that can harness the power of real-time metals data. This API is not just about fetching data; it’s about transforming how we interact with financial markets, providing the tools necessary to make informed decisions based on accurate and timely information.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here’s a closer look at some of the most significant 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 essential for traders who need the most current pricing information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019 by appending a specific date to the API request. This is particularly useful for analyzing trends over time and making informed investment decisions.
- Bid and Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices for metals, which is crucial for understanding market dynamics and making timely trades.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint that enables users to convert amounts between different metals or to/from USD, facilitating easier transactions and comparisons.
- Time-Series Endpoint: This endpoint allows users to query for daily historical rates between two specified dates, providing a comprehensive view of price movements over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate between two dates, offering insights into market volatility and trends.
- Carat Endpoint: This feature provides information about gold rates by carat, which is particularly useful for jewelers and consumers interested in purchasing gold jewelry.
- Lowest/Highest Price Endpoint: This endpoint enables users to query the lowest and highest prices for a specified date, assisting in identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Users can retrieve open, high, low, and close prices for a specific date, which is essential for technical analysis.
- Historical LME Endpoint: This endpoint provides access to historical rates for LME symbols dating back to 2008, which is valuable for those tracking industrial metals.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate and authorize access to the API.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The Metals-API features 14 different endpoints, each designed to provide specific functionalities tailored to user needs.
- Supported Symbols Endpoint: This endpoint returns a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- 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. This resource is invaluable for developers looking to integrate specific metals into their applications.
API Endpoint Examples and Responses
Latest Rates Endpoint
To get real-time exchange rates for all available metals, you can use the following example response:
{
"success": true,
"timestamp": 1763215252,
"base": "USD",
"date": "2025-11-15",
"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 with the following example response:
{
"success": true,
"timestamp": 1763128852,
"base": "USD",
"date": "2025-11-14",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
To get exchange rates for a specific time period, you can use the following example response:
{
"success": true,
"timeseries": true,
"start_date": "2025-11-08",
"end_date": "2025-11-15",
"base": "USD",
"rates": {
"2025-11-08": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-11-10": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-11-15": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
To convert any amount from one metal to another or to/from USD, you can use the following example response:
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1763215252,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
To track rate fluctuations between two dates, you can use the following example response:
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-08",
"end_date": "2025-11-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"
}
OHLC (Open/High/Low/Close) Price Endpoint
To get OHLC data for a specific time period, you can use the following example response:
{
"success": true,
"timestamp": 1763215252,
"base": "USD",
"date": "2025-11-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
To get current bid and ask prices for metals, you can use the following example response:
{
"success": true,
"timestamp": 1763215252,
"base": "USD",
"date": "2025-11-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"
}
Conclusion
In conclusion, the iShares Gold Trust Micro (IAUM) represents a significant opportunity for investors looking to gain exposure to gold. By leveraging the Metals-API, developers can access a wealth of historical price data and real-time market insights that can inform trading strategies and investment decisions. The API's robust features, including the ability to retrieve historical rates, track fluctuations, and convert between metals, make it an invaluable tool for anyone involved in the precious metals market.
As the financial landscape continues to evolve, staying informed and utilizing advanced tools like the Metals-API will be crucial for success. For further exploration of the API's capabilities, refer to the Metals-API Documentation and the Metals-API Supported Symbols page to understand the full range of available data. Embrace the future of trading with the power of real-time metals data at your fingertips.