Integrate abrdn Physical Gold Shares ETF (SGOL) prices into your app using this API
Integrate abrdn Physical Gold Shares ETF (SGOL) Prices into Your App Using Metals-API
The abrdn Physical Gold Shares ETF (SGOL) is a unique investment vehicle that allows investors to gain exposure to the price of gold without the complexities of physical ownership. As the demand for gold continues to rise, integrating real-time gold prices into your applications becomes increasingly essential. This is where the Metals-API comes into play, providing developers with the tools necessary to access up-to-date gold prices and other precious metals data seamlessly.
About Gold (XAU)
Gold has long been regarded as a safe-haven asset, especially during times of economic uncertainty. With the digital transformation in the precious metals market, data analytics and market insights have become crucial for traders and investors alike. The integration of technology in trading has revolutionized how market participants discover prices and execute trades. The Metals-API empowers developers to harness this potential by providing real-time data that can be integrated into various applications, enabling innovation in price discovery and digital asset solutions.
API Description
The Metals-API is a powerful tool that offers real-time and historical data on precious metals, including gold (XAU), silver (XAG), platinum (XPT), and palladium (XPD). This API is designed for developers looking to build next-generation applications that require accurate and timely metals data. With its extensive capabilities, the Metals-API allows users to access a wealth of information, including current prices, historical trends, and conversion rates.
For more detailed information about the API's capabilities, you can refer to the Metals-API Documentation. This resource provides comprehensive guidance on how to utilize the API effectively, including endpoint descriptions, parameter details, and example responses.
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 various metals, updated based on your subscription plan. Depending on your plan, you can receive updates every 60 minutes, every 10 minutes, or even more frequently.
- Historical Rates Endpoint: Access historical rates for most currencies dating back to 2019. By appending a specific date in the format YYYY-MM-DD, you can query the Metals-API for past rates.
- 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.
- Convert Endpoint: The API includes a currency conversion endpoint, enabling you to convert amounts from one metal to another or to/from USD, facilitating seamless transactions.
- Time-Series Endpoint: Query the API for daily historical rates between two dates of your choice, allowing for in-depth analysis of price movements over time.
- Fluctuation Endpoint: This endpoint provides information on how currencies fluctuate on a day-to-day basis, helping traders understand market volatility.
- Carat Endpoint: Retrieve information about gold rates by carat, which is particularly useful for jewelers and those in the jewelry industry.
- Lowest/Highest Price Endpoint: Query the API to get the lowest and highest prices for a specified date, assisting in market analysis.
- Open/High/Low/Close (OHLC) Price Endpoint: This endpoint provides open, high, low, and close prices for a specific time period, essential for technical analysis.
- Historical LME Endpoint: Access historical rates for LME symbols dating back to 2008, useful for those tracking 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 by default, with all data returned in a structured JSON format.
- Available Endpoints: The Metals-API features 14 different endpoints, each providing distinct functionalities tailored to various user needs.
- Supported Symbols Endpoint: This constantly updated endpoint returns all available currencies, allowing users to stay informed about the latest symbols.
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 integration. Below are examples of various endpoints and their responses:
Latest Rates Endpoint
{
"success": true,
"timestamp": 1779581487,
"base": "USD",
"date": "2026-05-24",
"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"
}
This response indicates that the API successfully retrieved the latest rates for various metals, with gold priced at 0.000482 per troy ounce.
Historical Rates Endpoint
{
"success": true,
"timestamp": 1779495087,
"base": "USD",
"date": "2026-05-23",
"rates": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915,
"XPD": 0.000748
},
"unit": "per troy ounce"
}
This example shows how to access historical rates for gold and other metals, providing valuable insights into past market performance.
Time-series Endpoint
{
"success": true,
"timeseries": true,
"start_date": "2026-05-17",
"end_date": "2026-05-24",
"base": "USD",
"rates": {
"2026-05-17": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-19": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-24": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
The time-series endpoint allows developers to analyze price trends over specific periods, which is crucial for making informed trading decisions.
Convert Endpoint
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1779581487,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
This response demonstrates how to convert a specified amount from USD to gold (XAU), showcasing the API's versatility in handling different currencies.
Fluctuation Endpoint
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-17",
"end_date": "2026-05-24",
"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"
}
The fluctuation endpoint provides insights into how prices change over time, which is essential for traders looking to capitalize on market movements.
OHLC (Open/High/Low/Close) Price Endpoint
{
"success": true,
"timestamp": 1779581487,
"base": "USD",
"date": "2026-05-24",
"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"
}
This endpoint is particularly useful for traders who rely on technical analysis, as it provides critical data points for evaluating market trends.
Bid/Ask Endpoint
{
"success": true,
"timestamp": 1779581487,
"base": "USD",
"date": "2026-05-24",
"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"
}
The bid/ask endpoint provides essential information for traders, allowing them to gauge market conditions and make informed decisions.
Conclusion
Integrating the abrdn Physical Gold Shares ETF (SGOL) prices into your application using the Metals-API can significantly enhance your trading capabilities. By leveraging the API's extensive features, including real-time rates, historical data, and conversion capabilities, developers can create powerful applications that meet the demands of modern investors.
With the ability to access a wide range of data points and insights, the Metals-API stands out as a vital resource for anyone looking to navigate the complexities of the precious metals market. 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 you embark on your journey to integrate precious metals data into your applications, remember to utilize the Metals-API Supported Symbols page to stay informed about the latest symbols and their specifications. The future of trading in precious metals is here, and with the right tools, you can be at the forefront of this digital transformation.