Retrieve abrdn Physical Gold Shares ETF (SGOL) prices via this API

Retrieve abrdn Physical Gold Shares ETF (SGOL) prices via this API
The abrdn Physical Gold Shares ETF (SGOL) is a popular investment vehicle for those looking to gain exposure to the price of gold without the complexities of physical ownership. With the rise of digital transformation in the precious metals market, investors and developers alike are turning to innovative solutions to access real-time data and analytics. One such solution is the Metals-API, which provides comprehensive access to gold prices and other metal data through a robust API.
Metals-API Information
The Metals-API is designed to empower developers by providing real-time and historical data on precious metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). This API is a game-changer in the realm of digital asset solutions, enabling seamless integration of market insights into various applications. By leveraging data analytics, developers can create innovative trading platforms, investment tools, and financial applications that respond to market changes in real-time.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, especially during times of economic uncertainty. The digital transformation in precious metals has opened new avenues for investors, allowing them to access gold prices and market data with unprecedented ease. The integration of technology in trading has led to more efficient price discovery mechanisms, enabling investors to make informed decisions based on real-time data.
With the Metals-API, developers can harness the power of data analytics to gain insights into market trends, price fluctuations, and historical performance. This API not only provides current gold prices but also allows for the analysis of price movements over time, giving investors a comprehensive view of the market landscape.
API Description
The Metals-API is a powerful tool that offers a variety of endpoints to cater to different data needs. Whether you are looking for the latest rates, historical data, or specific price conversions, the Metals-API has you covered. This API is designed with innovation in mind, allowing developers to build next-generation applications that can adapt to the ever-changing metals market.
For detailed documentation on how to implement the API, visit the Metals-API Documentation. Here, you will find comprehensive guides on each endpoint, including usage examples, parameter descriptions, and response formats.
Key Features and Endpoints
The Metals-API offers a variety of endpoints, each designed to provide specific functionalities that can enhance your applications:
- Latest Rates Endpoint: This endpoint provides real-time exchange rate data for metals, updated based on your subscription plan. Depending on your plan, you can receive updates every 60 minutes or even every 10 minutes.
- Historical Rates Endpoint: Access historical rates dating back to 2019. By appending a date to your query, you can retrieve past prices for analysis and comparison.
- Bid And Ask Endpoint: This feature allows you to retrieve real-time bid and ask prices for metals, providing insights into market liquidity and pricing dynamics.
- Convert Endpoint: Easily convert amounts between different metals or to/from USD. This endpoint simplifies transactions and price comparisons across various currencies.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, enabling detailed analysis of price trends over time.
- Fluctuation Endpoint: Track how metal prices fluctuate on a day-to-day basis, which is crucial for understanding market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, allowing for precise valuation of gold jewelry and investments.
- Lowest/Highest Price Endpoint: Get the lowest and highest prices for a specified date, which can be useful for identifying market extremes.
- Open/High/Low/Close (OHLC) Price Endpoint: Access detailed OHLC data for specific time periods, which is essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, providing a long-term view of market trends.
- 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 by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API includes numerous endpoints, each tailored to specific functionalities, ensuring comprehensive data access.
- Supported Symbols Endpoint: This endpoint provides a constantly updated list of all available currencies and metals.
- Gold Price India Endpoint: Retrieve the latest gold price in India, catering to regional market needs.
- News Endpoint: Stay updated with the latest news articles related to various metals, helping you stay informed about market developments.
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
{
"success": true,
"timestamp": 1746836038,
"base": "USD",
"date": "2025-05-10",
"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
{
"success": true,
"timestamp": 1746749638,
"base": "USD",
"date": "2025-05-09",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2025-05-03",
"end_date": "2025-05-10",
"base": "USD",
"rates": {
"2025-05-03": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2025-05-05": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2025-05-10": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1746836038,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2025-05-03",
"end_date": "2025-05-10",
"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
{
"success": true,
"timestamp": 1746836038,
"base": "USD",
"date": "2025-05-10",
"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
{
"success": true,
"timestamp": 1746836038,
"base": "USD",
"date": "2025-05-10",
"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
The Metals-API is an invaluable resource for developers looking to integrate real-time and historical data on precious metals into their applications. With its comprehensive range of endpoints, including the latest rates, historical data, and conversion capabilities, the API empowers users to make informed investment decisions. By leveraging the power of data analytics and technology integration, developers can create innovative solutions that enhance the trading experience.
For more information on the capabilities of the Metals-API, explore the Metals-API Documentation and discover the full range of supported symbols on the Metals-API Supported Symbols page. The future of trading in precious metals is here, and with the right tools, you can stay ahead of the curve.