How to Get Real-Time SPDR Gold MiniShares (GLDM) - Per Ounce Prices for Investment Analysis with Metals-API
How to Get Real-Time SPDR Gold MiniShares (GLDM) - Per Ounce Prices for Investment Analysis with Metals-API
Investing in precious metals, particularly gold, has always been a popular choice among investors seeking to diversify their portfolios. With the advent of technology, accessing real-time market prices has become easier than ever. One of the most effective tools for obtaining real-time SPDR Gold MiniShares (GLDM) prices is the Metals-API. This powerful API provides developers with the ability to access up-to-date gold prices, historical data, and various other functionalities that can enhance investment analysis.
Metals-API Information
About Gold (XAU)
Gold, represented by the symbol XAU, is not just a commodity; it is a digital asset that has undergone significant transformation in recent years. The integration of technology in trading has revolutionized how investors approach gold investments. With the rise of data analytics and market insights, investors can now make informed decisions based on real-time data. The Metals-API Documentation provides extensive information on how to leverage this data for investment analysis.
As technology continues to evolve, the methods of price discovery in the gold market have also changed. The Metals-API empowers developers to build next-generation applications that can provide innovative digital asset solutions, making it easier for investors to track and analyze gold prices effectively.
API Description
The Metals-API is a comprehensive JSON API that provides real-time and historical data for various metals, including gold, silver, platinum, and palladium. The API's capabilities are designed to support developers in creating applications that require accurate and timely metals data. By utilizing the Metals-API, developers can access a wide range of functionalities that enhance their applications, including real-time price updates, historical data analysis, and conversion features.
For more information about the available features and how to implement them, you can visit the Metals-API Documentation.
Key Features and Endpoints
The Metals-API offers a variety of endpoints that cater to different needs. Here are some of the key features:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated every 60 minutes or more frequently depending on your subscription plan. This feature is essential for investors who need the latest market prices for their analysis.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a specific date to your query, you can retrieve past prices, which is crucial for trend analysis and forecasting.
- Bid and Ask Endpoint: This powerful feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: The Metals-API includes a currency conversion endpoint, enabling users to convert amounts between different metals or from/to USD. This is particularly useful for investors dealing with multiple currencies.
- Time-Series Endpoint: Query daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, which can help in understanding market volatility and making informed trading decisions.
- Carat Endpoint: Retrieve gold rates by carat, which is essential for jewelers and investors dealing with different purity levels.
- Lowest/Highest Price Endpoint: This endpoint allows you to query the lowest and highest prices for a specified date, providing insights into market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Get the open, high, low, and close prices for a specific date, which is vital for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, which is useful for those interested in industrial metals.
- API Key: Your unique API key is required to access the API, ensuring secure and authorized usage.
- API Response: The API delivers exchange rates relative to USD, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes 14 endpoints, each providing different functionalities to meet various user needs.
- Supported Symbols Endpoint: This endpoint returns all available currencies, allowing users to stay updated on the latest symbols supported by the API.
- Intraday Endpoint: Query intraday exchange rate data for a single symbol, which is essential for day traders.
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 how to interact with the Metals-API is crucial for effective implementation. Below are examples of various endpoints and their expected JSON responses:
Latest Rates Endpoint
Get real-time exchange rates for all available metals:
{
"success": true,
"timestamp": 1787876297,
"base": "USD",
"date": "2026-08-28",
"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": 1787789897,
"base": "USD",
"date": "2026-08-27",
"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": "2026-08-21",
"end_date": "2026-08-28",
"base": "USD",
"rates": {
"2026-08-21": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-08-23": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-08-28": {
"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": 1787876297,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
Track rate fluctuations between two dates:
{
"success": true,
"fluctuation": true,
"start_date": "2026-08-21",
"end_date": "2026-08-28",
"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": 1787876297,
"base": "USD",
"date": "2026-08-28",
"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": 1787876297,
"base": "USD",
"date": "2026-08-28",
"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, accessing real-time SPDR Gold MiniShares (GLDM) prices through the Metals-API is a straightforward process that can significantly enhance your investment analysis. By leveraging the various endpoints provided by the API, developers can create applications that offer real-time data, historical insights, and conversion capabilities. The integration of technology in trading has transformed how investors approach precious metals, making it essential to utilize tools like the Metals-API for accurate and timely information.
For further exploration of the API's capabilities, be sure to check out the Metals-API Documentation, and stay updated with the latest symbols on the Metals-API Supported Symbols page. By understanding the full range of functionalities offered by the Metals-API, you can optimize your investment strategies and make informed decisions in the ever-evolving market of precious metals.