Access iShares Gold Trust Micro (IAUM) Historical Prices with this API

Access iShares Gold Trust Micro (IAUM) Historical Prices with this API
The iShares Gold Trust Micro (IAUM) is a popular investment vehicle for those looking to gain exposure to the price movements of gold. As a developer or data analyst, accessing historical prices for IAUM can be crucial for analysis, backtesting trading strategies, or simply keeping track of market trends. One of the most effective ways to access this data is through the Metals-API, a powerful tool that provides real-time and historical data for various metals, including gold.
About Gold (XAU)
Gold, represented by the symbol XAU, has been a cornerstone of wealth preservation and investment for centuries. In recent years, the digital transformation in precious metals has opened new avenues for investors and developers alike. The integration of data analytics and market insights has revolutionized how we approach trading in gold. With the advent of technology, trading platforms now leverage real-time data to enhance price discovery and provide innovative digital asset solutions.
The Metals-API plays a pivotal role in this transformation by offering developers the ability to access real-time and historical gold prices. This API empowers users to build next-generation applications that can analyze market trends, optimize trading strategies, and provide valuable insights into the gold market.
API Description
The Metals-API is designed to deliver comprehensive and accurate data on precious metals. It offers a range of endpoints that allow users to retrieve real-time exchange rates, historical prices, and various other metrics related to metals. The API is built with innovation and technological advancement in mind, making it a vital resource for developers looking to harness the power of real-time metals data.
For more detailed information about the API's capabilities, you can refer to the Metals-API Documentation. This documentation provides insights into how to effectively use the API, including examples and best practices.
Key Features and Endpoints
The Metals-API offers several key features that are essential for developers working with metals data. Here are some of the most significant endpoints:
- 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 crucial for traders who need the most current market information.
- Historical Rates Endpoint: Historical rates are available for most currencies dating back to 2019. You can query the Metals-API for historical rates by appending a specific date to the endpoint, allowing for in-depth analysis of price movements over time.
- Bid And Ask Endpoint: This powerful feature enables you to retrieve real-time Bid and Ask prices, which are essential for understanding market liquidity and making informed trading decisions.
- Convert Endpoint: The API includes a currency conversion endpoint, allowing you to convert any amount from one metal to another or to/from USD. This is particularly useful for traders dealing with multiple currencies.
- Time-Series Endpoint: This endpoint allows you to query the API for daily historical rates between two dates of your choice, providing a comprehensive view of price trends over time.
- Fluctuation Endpoint: With this endpoint, you can retrieve information about how currencies fluctuate on a day-to-day basis, which is vital for understanding market volatility.
- Carat Endpoint: This feature allows you to retrieve information about gold rates by carat, which is essential for jewelers and those dealing in precious metals.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the API to get the lowest and highest price for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides 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, which is beneficial for those analyzing long-term trends.
- API Key: Your API Key is a unique identifier that must be included in your requests to authenticate your 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 comprehensive list of endpoints, each designed to fulfill specific data retrieval needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing you to stay updated on the symbols you can query.
- Gold Price India Endpoint: Retrieve the latest gold price in India using this dedicated endpoint, which is essential for investors in the Indian market.
- News Endpoint: Stay informed with the latest news articles related to various metals, helping you make informed decisions based on current events.
API Endpoint Examples and Responses
Understanding how to interact with the Metals-API is crucial for effective data retrieval. Below are examples of various endpoints and their expected responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals.
{
"success": true,
"timestamp": 1750305616,
"base": "USD",
"date": "2025-06-19",
"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": 1750219216,
"base": "USD",
"date": "2025-06-18",
"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-06-12",
"end_date": "2025-06-19",
"base": "USD",
"rates": {
"2025-06-12": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-06-14": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-06-19": {
"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": 1750305616,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-06-12",
"end_date": "2025-06-19",
"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": 1750305616,
"base": "USD",
"date": "2025-06-19",
"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": 1750305616,
"base": "USD",
"date": "2025-06-19",
"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
Accessing historical prices for the iShares Gold Trust Micro (IAUM) is made simple and efficient through the Metals-API. By leveraging the various endpoints offered by the API, developers can gain valuable insights into gold price movements, analyze trends, and optimize trading strategies. The API's capabilities, such as real-time rates, historical data, and conversion features, empower users to make informed decisions in the precious metals market.
For further exploration of the API's features, visit the Metals-API Documentation for detailed guidance on implementation. Additionally, the Metals-API Supported Symbols page provides a comprehensive list of available symbols, ensuring you have all the information needed to effectively utilize the API. Finally, for more information on the API and its offerings, check out the Metals-API Website.