Fetch daily iShares Gold Trust Micro (IAUM) prices using this API

Fetch Daily iShares Gold Trust Micro (IAUM) Prices Using This API
In the world of finance, the ability to access real-time data is crucial for making informed investment decisions. For those interested in precious metals, particularly gold, the Metals-API provides a powerful solution for fetching daily prices of the iShares Gold Trust Micro (IAUM). This blog post will delve into the intricacies of the Metals-API, its capabilities, and how it can be leveraged to gain insights into the gold market.
Metals-API Information
The Metals-API is a robust platform designed to provide real-time and historical data on various metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). With the rise of digital transformation in the financial sector, the API stands out by integrating advanced data analytics and technology to enhance trading strategies and price discovery.
About Gold (XAU)
Gold has long been considered a safe haven asset, especially during times of economic uncertainty. Its value is influenced by various factors, including market demand, geopolitical events, and currency fluctuations. The digital transformation in precious metals trading has opened new avenues for investors and developers alike. By utilizing the Metals-API, developers can create applications that provide real-time insights into gold prices, enabling users to make data-driven decisions.
Data analytics plays a pivotal role in understanding market trends. With the Metals-API, users can access historical data, analyze price movements, and identify patterns that may indicate future price changes. This capability is essential for traders looking to optimize their strategies and maximize returns.
Moreover, technology integration in trading platforms allows for seamless execution of trades based on real-time data. The Metals-API empowers developers to build next-generation applications that can react to market changes instantaneously, providing users with a competitive edge.
API Description
The Metals-API is designed to deliver real-time metals data with a focus on innovation and technological advancement. It offers a variety of endpoints that cater to different needs, from fetching the latest rates to historical data analysis. This API is particularly beneficial for developers looking to create applications that require accurate and timely metals pricing information.
For more information on the API's capabilities, you can visit the Metals-API Website or check the Metals-API Documentation for detailed instructions on how to implement it in your projects.
Key Features and Endpoints
The Metals-API offers several key features that enhance its usability for developers:
- 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 is essential for applications that require up-to-the-minute pricing information.
- Historical Rates Endpoint: Users can access historical rates dating back to 2019. By appending a date to the API request, developers can retrieve past prices for analysis and reporting.
- Bid And Ask Endpoint: This feature allows users to retrieve real-time bid and ask prices, which are crucial for traders looking to make informed decisions based on market spreads.
- Convert Endpoint: The API includes a currency conversion feature, enabling users to convert amounts from one metal to another or to/from USD. This is particularly useful for applications that require multi-currency support.
- Time-Series Endpoint: This endpoint allows users to query the API for daily historical rates between two dates of their choice, facilitating in-depth analysis of price trends over time.
- Fluctuation Endpoint: Users can track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: This feature allows users to retrieve information about gold rates by carat, which is essential for jewelers and consumers alike.
- Lowest/Highest Price Endpoint: Users can query the API to get the lowest and highest prices for a specified date, which is useful for understanding market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific date, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is crucial for comprehensive market analysis.
- API Key: Each user is assigned a unique API key that must be included in requests to authenticate 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 provides a constantly updated list of all available currencies and metals, ensuring users have access to the latest information.
- Gold Price India Endpoint: Retrieve the latest gold price in India, catering to a specific market segment.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to price movements.
List of Symbols
The 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 interact with the Metals-API is crucial for effective implementation. Below are examples of various endpoints and their corresponding responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1752199222,
"base": "USD",
"date": "2025-07-11",
"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"
}
This response indicates that the API successfully retrieved the latest rates for various metals, with gold priced at 0.000482 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1752112822,
"base": "USD",
"date": "2025-07-10",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for a specific date, allowing users to analyze past performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-07-04",
"end_date": "2025-07-11",
"base": "USD",
"rates": {
"2025-07-04": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-07-06": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-07-11": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
This response provides a time series of rates between two specified dates, enabling users to visualize trends over time.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1752199222,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This example illustrates how to convert a specified amount from USD to gold, providing users with the equivalent value in troy ounces.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-07-04",
"end_date": "2025-07-11",
"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 prices have fluctuated over a specified period, which is essential for understanding market dynamics.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1752199222,
"base": "USD",
"date": "2025-07-11",
"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"
}
This endpoint provides critical data for traders, showing the open, high, low, and close prices for a specific date, which is vital for technical analysis.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1752199222,
"base": "USD",
"date": "2025-07-11",
"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 response provides the current bid and ask prices for metals, which is essential for traders looking to execute orders effectively.
Conclusion
The Metals-API is an invaluable tool for developers and traders interested in precious metals, particularly gold. By providing real-time and historical data, the API empowers users to make informed decisions based on accurate market insights. With features such as the latest rates, historical data, and fluctuation tracking, developers can create sophisticated applications that enhance trading strategies and optimize investment outcomes.
For those looking to dive deeper into the capabilities of the Metals-API, I encourage you to explore the Metals-API Documentation for comprehensive guidance on implementation. Additionally, the Metals-API Supported Symbols page provides a complete list of available metal symbols, ensuring you have all the information needed to leverage this powerful API effectively.
In a rapidly evolving financial landscape, staying ahead requires access to timely and accurate data. The Metals-API not only meets these needs but also offers a platform for innovation and growth in the precious metals market.