Obtain SPDR Gold MiniShares (GLDM) Historical Prices using this API Documentation
Obtain SPDR Gold MiniShares (GLDM) Historical Prices using this API Documentation
In the ever-evolving landscape of financial technology, obtaining accurate and timely data is crucial for traders, investors, and developers alike. One of the most sought-after assets in the financial markets is gold, represented by the symbol XAU. This blog post will delve into how to obtain historical prices for SPDR Gold MiniShares (GLDM) using the Metals-API Documentation. We will explore the capabilities of the Metals-API, focusing on its innovative features that empower developers to build next-generation applications.
Metals-API Information
About Gold (XAU)
Gold has long been considered a safe haven asset, especially during times of economic uncertainty. With the digital transformation in precious metals trading, the integration of data analytics and technology has revolutionized how investors interact with gold. The Metals-API provides a robust platform for accessing real-time and historical gold prices, enabling users to gain market insights and make informed decisions.
As the demand for digital asset solutions grows, the need for accurate price discovery becomes paramount. The Metals-API stands at the forefront of this transformation, offering developers the tools necessary to integrate gold pricing data into their applications seamlessly. By leveraging this API, developers can create innovative solutions that enhance trading strategies and improve market analysis.
API Description
The Metals-API is a powerful tool that provides access to real-time and historical data for various metals, including gold, silver, platinum, and palladium. This API is designed to empower developers to build applications that require accurate and timely metals data. With its user-friendly interface and comprehensive documentation, the Metals-API simplifies the process of integrating metals pricing into applications.
One of the standout features of the Metals-API is its ability to deliver real-time exchange rate data, updated at intervals based on the user's subscription plan. This ensures that developers have access to the most current market data, which is essential for making informed trading decisions. Additionally, the API offers historical rates dating back to 2019, allowing users to analyze trends and patterns over time.
For more information about the API's capabilities, visit the Metals-API Website.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different data needs. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for metals. Depending on the subscription plan, users can receive updates every 60 minutes or every 10 minutes. This endpoint is crucial for traders who require up-to-the-minute pricing information.
{
"success": true,
"timestamp": 1763726458,
"base": "USD",
"date": "2025-11-21",
"rates": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912,
"XPD": 0.000744
},
"unit": "per troy ounce"
}
Historical Rates Endpoint
The Historical Rates Endpoint allows users to access historical exchange rates for any date since 1999. This feature is particularly useful for analyzing past market performance and making data-driven decisions.
{
"success": true,
"timestamp": 1763640058,
"base": "USD",
"date": "2025-11-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Bid And Ask Endpoint
The Bid and Ask Endpoint provides real-time bid and ask prices for metals. This feature is essential for traders looking to execute buy and sell orders at optimal prices.
{
"success": true,
"timestamp": 1763726458,
"base": "USD",
"date": "2025-11-21",
"rates": {
"XAU": {
"bid": 0.000481,
"ask": 0.000483,
"spread": 2.0e-6
},
"XAG": {
"bid": 0.0381,
"ask": 0.0382,
"spread": 0.0001
}
},
"unit": "per troy ounce"
}
Convert Endpoint
The Convert Endpoint allows users to convert any amount from one metal to another or to/from USD. This feature is particularly useful for traders who need to quickly assess the value of their holdings in different currencies.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1763726458,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows users to query the API for daily historical rates between two dates of their choice. This feature is invaluable for conducting trend analysis and forecasting future price movements.
{
"success": true,
"timeseries": true,
"start_date": "2025-11-14",
"end_date": "2025-11-21",
"base": "USD",
"rates": {
"2025-11-14": {
"XAU": 0.000485,
"XAG": 0.03825
},
"2025-11-21": {
"XAU": 0.000482,
"XAG": 0.03815
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This feature is essential for understanding market volatility and making informed trading decisions.
{
"success": true,
"fluctuation": true,
"start_date": "2025-11-14",
"end_date": "2025-11-21",
"base": "USD",
"rates": {
"XAU": {
"start_rate": 0.000485,
"end_rate": 0.000482,
"change": -3.0e-6,
"change_pct": -0.62
}
},
"unit": "per troy ounce"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint allows users to query the API for the open, high, low, and close prices for a specific time period. This data is crucial for technical analysis and understanding market trends.
{
"success": true,
"timestamp": 1763726458,
"base": "USD",
"date": "2025-11-21",
"rates": {
"XAU": {
"open": 0.000485,
"high": 0.000487,
"low": 0.000481,
"close": 0.000482
}
},
"unit": "per troy ounce"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This feature is particularly useful for users interested in the London Metal Exchange's pricing data.
{
"success": true,
"timestamp": 1763640058,
"base": "USD",
"date": "2025-11-20",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825
},
"unit": "per troy ounce"
}
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.
Conclusion
In conclusion, the Metals-API offers a comprehensive suite of tools for obtaining historical prices and real-time data for gold and other precious metals. By leveraging the various endpoints, developers can create powerful applications that enhance trading strategies and provide valuable market insights. The API's capabilities, such as real-time rates, historical data access, and conversion features, make it an essential resource for anyone involved in the metals market.
For more information on how to implement these features in your applications, visit the Metals-API Documentation and explore the possibilities of integrating metals data into your projects.