Get SPDR Gold MiniShares (GLDM) prices using this API

Get SPDR Gold MiniShares (GLDM) Prices Using This API
In today's rapidly evolving financial landscape, the demand for real-time data on precious metals has surged. One of the most significant players in this domain is the SPDR Gold MiniShares (GLDM), which offers investors a cost-effective way to gain exposure to gold. To effectively track GLDM prices and other related metrics, developers can leverage the powerful capabilities of the Metals-API. This blog post will delve into the intricacies of GLDM, its markets, and how the Metals-API can be utilized to access real-time gold prices and other valuable data.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, has long been regarded as a safe-haven asset and a hedge against inflation. As digital transformation sweeps across the financial sector, the integration of technology in trading precious metals has become paramount. The Metals-API stands at the forefront of this transformation, providing developers with the tools to harness data analytics and market insights effectively.
With the rise of digital asset solutions, the importance of accurate and timely data cannot be overstated. The Metals-API empowers developers to innovate in price discovery, enabling them to create applications that can analyze market trends, track fluctuations, and provide insights that were previously unattainable. By utilizing this API, developers can build next-generation applications that cater to the needs of investors and traders alike.
API Description
The Metals-API is a robust platform that offers real-time and historical data on various metals, including gold, silver, platinum, and palladium. Its capabilities extend beyond mere price tracking; it provides a comprehensive suite of endpoints designed to facilitate a wide range of applications. Whether you are developing a trading platform, a financial analysis tool, or a market research application, the Metals-API offers the flexibility and functionality required to meet your needs.
For detailed information on how to implement the API, developers can refer to the Metals-API Documentation, which outlines the various endpoints, their functionalities, and usage examples. Additionally, the Symbols List provides a comprehensive overview of all supported metal symbols, ensuring that developers can easily access the data they require.
Key Features and Endpoints
The Metals-API boasts a variety of endpoints, each designed to cater to specific needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated according to your subscription plan. Depending on the plan, updates can occur every 60 minutes, every 10 minutes, or even more frequently.
- Historical Rates Endpoint: Access historical rates dating back to 2019. Developers can query the API for specific dates, allowing for in-depth analysis of price trends over time.
- Bid And Ask Endpoint: Retrieve real-time bid and ask prices for metals, providing critical information for traders looking to make informed decisions.
- Convert Endpoint: This feature allows for seamless currency conversion, enabling users to convert amounts from one metal to another or to/from USD.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, facilitating comprehensive market analysis.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, providing insights into market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, catering to jewelers and consumers alike.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date range, aiding in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: Access OHLC data for specific time periods, essential for traders looking to analyze market movements.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- API Key: Each user is assigned a unique API key, which is essential for accessing the API's functionalities.
- API Response: The API delivers exchange rates relative to USD by default, ensuring consistency in data interpretation.
- Available Endpoints: The API features a constantly updated list of available endpoints, ensuring developers have access to the latest functionalities.
- Gold Price India Endpoint: Retrieve the latest gold price in India, catering to a specific regional market.
- News Endpoint: Stay updated with the latest news articles related to various metals, providing context to market movements.
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 Symbols page.
API Endpoint Examples and Responses
Understanding the API's response structure is crucial for developers. Here 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": 1748257215,
"base": "USD",
"date": "2025-05-26",
"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": 1748170815,
"base": "USD",
"date": "2025-05-25",
"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-05-19",
"end_date": "2025-05-26",
"base": "USD",
"rates": {
"2025-05-19": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-21": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-26": {
"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": 1748257215,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates.
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-19",
"end_date": "2025-05-26",
"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": 1748257215,
"base": "USD",
"date": "2025-05-26",
"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": 1748257215,
"base": "USD",
"date": "2025-05-26",
"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 provides a comprehensive solution for developers seeking to access real-time and historical data on precious metals, including SPDR Gold MiniShares (GLDM). By leveraging its various endpoints, developers can create innovative applications that enhance trading strategies, provide market insights, and facilitate informed decision-making. The ability to track fluctuations, convert currencies, and access historical data positions the Metals-API as an essential tool in the modern financial landscape.
For further exploration of the API's capabilities, developers are encouraged to visit the Metals-API Documentation for detailed guidance, and the Symbols List for a complete overview of supported symbols. By integrating the Metals-API into their applications, developers can harness the power of real-time metals data and drive innovation in the trading of precious metals.