Get iShares Gold Trust Micro (IAUM) Historical Prices with Time Series Data using this API
Get iShares Gold Trust Micro (IAUM) Historical Prices with Time Series Data using this API
In the world of finance, particularly in precious metals trading, having access to accurate and timely data is crucial. This is where the Metals-API comes into play, providing developers with the tools necessary to access historical prices for metals like Gold (XAU), Silver (XAG), Platinum (XPT), and Palladium (XPD). In this blog post, we will explore how to retrieve historical prices for the iShares Gold Trust Micro (IAUM) using the Metals-API, focusing on its innovative features and capabilities.
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. As digital transformation sweeps through the financial sector, the integration of technology in trading precious metals has become increasingly important. The use of data analytics and market insights allows traders to make informed decisions based on real-time information.
With the rise of digital asset solutions, the way investors approach gold trading is evolving. The Metals-API provides a robust platform for accessing real-time and historical data, enabling developers to create applications that enhance price discovery and trading strategies. By leveraging the power of technology, traders can gain a competitive edge in the market.
API Description
The Metals-API is a powerful tool designed for developers looking to integrate precious metals data into their applications. It offers a wide range of features, including real-time exchange rates, historical data, and various endpoints tailored to meet the needs of different users. The API empowers developers to build next-generation applications that can analyze and visualize metals data effectively.
For comprehensive information on how to use the API, refer to the Metals-API Documentation, which provides detailed instructions on authentication, endpoint usage, and response handling.
Key Features and Endpoints
The Metals-API offers several key features that make it an invaluable resource for developers:
- Latest Rates Endpoint: Depending on your subscription plan, this endpoint provides real-time exchange rate data for various metals, updated every 60 minutes or more frequently. This feature is essential for traders who need to stay informed about the latest market conditions.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date to your query, you can retrieve past exchange rates, which is crucial for conducting market analysis and backtesting trading strategies.
- Bid And Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for metals, providing insight into market liquidity and pricing dynamics.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling you to convert amounts between different metals or to/from USD. This 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 feature is invaluable for analyzing trends and fluctuations over specific periods.
- Fluctuation Endpoint: Track how metals fluctuate on a day-to-day basis. This endpoint provides insights into market volatility, helping traders make informed decisions.
- Carat Endpoint: Retrieve information about gold rates by carat, which is essential for jewelers and those involved in the jewelry market.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date range, allowing traders to identify market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, which is crucial for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a comprehensive view of market trends.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: Exchange rates are delivered relative to USD by default, with all data returned in a structured JSON format.
- Available Endpoints: The API includes 14 endpoints, each providing different functionalities, allowing developers to tailor their applications to specific needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, ensuring you have the latest information on supported symbols.
- 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 the structure of 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": 1765184452,
"base": "USD",
"date": "2025-12-08",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
Access historical exchange rates for any date since 1999.
{
"success": true,
"timestamp": 1765098052,
"base": "USD",
"date": "2025-12-07",
"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-12-01",
"end_date": "2025-12-08",
"base": "USD",
"rates": {
"2025-12-01": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-12-03": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-12-08": {
"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": 1765184452,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-12-01",
"end_date": "2025-12-08",
"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": 1765184452,
"base": "USD",
"date": "2025-12-08",
"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": 1765184452,
"base": "USD",
"date": "2025-12-08",
"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 Metals-API is an essential tool for developers looking to access historical prices and real-time data for precious metals like Gold (XAU). With its comprehensive set of features, including various endpoints for retrieving exchange rates, historical data, and market insights, the API empowers developers to create innovative applications that enhance trading strategies and market analysis.
By leveraging the capabilities of the Metals-API, developers can build applications that not only provide accurate data but also offer valuable insights into market trends and fluctuations. For more information on how to get started, visit the Metals-API Website and explore the Metals-API Documentation for detailed guidance on implementation.
As the financial landscape continues to evolve, staying informed and utilizing advanced tools like the Metals-API will be crucial for success in the precious metals market.