Fetch live Sprott ESG Gold ETF (SESG) prices through this API
Introduction
The Sprott ESG Gold ETF (SESG) is a pioneering investment vehicle that aligns with the growing demand for environmentally and socially responsible investing. As investors increasingly seek to integrate sustainability into their portfolios, SESG offers a unique opportunity to invest in gold while adhering to ESG (Environmental, Social, and Governance) criteria. To effectively track and analyze the performance of SESG and other precious metals, developers can leverage the capabilities of the Metals-API. This API provides real-time data and insights into the precious metals market, enabling the creation of innovative applications that enhance trading strategies and investment decisions.
Understanding Gold (XAU) in Today's Market
Gold has long been considered a safe-haven asset, particularly during times of economic uncertainty. In recent years, the digital transformation in precious metals has revolutionized how investors access and analyze market data. The integration of data analytics and technology into trading has provided investors with unprecedented insights into market trends and price movements. With the rise of digital asset solutions, gold is not only a physical commodity but also a digital asset that can be traded and analyzed in real-time.
The Metals-API plays a crucial role in this transformation by offering developers the tools needed to build next-generation applications that can track gold prices, analyze market fluctuations, and provide actionable insights. By utilizing the API, developers can create platforms that empower investors to make informed decisions based on real-time data.
API Description
The Metals-API is a powerful tool that provides comprehensive access to real-time and historical data for various metals, including gold (XAU). Its innovative capabilities allow developers to build applications that can track market trends, analyze price movements, and provide insights into investment opportunities. The API's transformative potential lies in its ability to deliver real-time metals data, which is essential for developers looking to create applications that require up-to-the-minute information.
For more detailed information, you can refer to the Metals-API Documentation, which outlines the various features and endpoints available.
Key Features and Endpoints
The Metals-API offers a range of endpoints that cater to different needs within the precious metals market. Here are some of the key features:
Latest Rates Endpoint
The Latest Rates Endpoint provides real-time exchange rate data for precious metals, updated according to your subscription plan—whether every 60 minutes, every 10 minutes, or even more frequently. This endpoint is essential for applications that require up-to-the-minute pricing information to facilitate trading decisions.
{
"success": true,
"timestamp": 1779062903,
"base": "USD",
"date": "2026-05-18",
"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 to historical rates is crucial for analyzing trends over time. The Historical Rates Endpoint allows developers to query historical exchange rates dating back to 2019. By appending a specific date (YYYY-MM-DD) to the endpoint, users can retrieve past pricing data, which is invaluable for market analysis and forecasting.
{
"success": true,
"timestamp": 1778976503,
"base": "USD",
"date": "2026-05-17",
"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 is a powerful feature that enables developers to retrieve real-time bid and ask prices for metals. This information is crucial for traders looking to make informed decisions based on current market conditions.
{
"success": true,
"timestamp": 1779062903,
"base": "USD",
"date": "2026-05-18",
"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"
}
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 applications that require currency conversion for trading or investment purposes.
{
"success": true,
"query": {
"from": "USD",
"to": "XAU",
"amount": 1000
},
"info": {
"timestamp": 1779062903,
"rate": 0.000482
},
"result": 0.482,
"unit": "troy ounces"
}
Time-Series Endpoint
The Time-Series Endpoint allows developers to query the API for daily historical rates between two dates of their choice. This feature is essential for analyzing trends and fluctuations over specific periods, providing insights into market behavior.
{
"success": true,
"timeseries": true,
"start_date": "2026-05-11",
"end_date": "2026-05-18",
"base": "USD",
"rates": {
"2026-05-11": {
"XAU": 0.000485,
"XAG": 0.03825,
"XPT": 0.000915
},
"2026-05-13": {
"XAU": 0.000483,
"XAG": 0.0382,
"XPT": 0.000913
},
"2026-05-18": {
"XAU": 0.000482,
"XAG": 0.03815,
"XPT": 0.000912
}
},
"unit": "per troy ounce"
}
Fluctuation Endpoint
The Fluctuation Endpoint provides information about how currencies fluctuate on a day-to-day basis. This endpoint is useful for tracking volatility and understanding market dynamics over time.
{
"success": true,
"fluctuation": true,
"start_date": "2026-05-11",
"end_date": "2026-05-18",
"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"
}
Open/High/Low/Close (OHLC) Price Endpoint
The OHLC Price Endpoint provides essential data for traders by delivering the open, high, low, and close prices for a specific time period. This information is critical for technical analysis and market forecasting.
{
"success": true,
"timestamp": 1779062903,
"base": "USD",
"date": "2026-05-18",
"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"
}
Historical LME Endpoint
The Historical LME Endpoint provides access to historical rates for LME symbols dating back to 2008. This endpoint is particularly useful for developers working with industrial metals and seeking long-term data for analysis.
API Key and Authentication
To access the Metals-API, developers must obtain an API Key, which is a unique identifier passed into the API base URL's access_key parameter. This key is essential for authenticating requests and ensuring secure access to the API's features.
API Response Structure
The API delivers exchange rates relative to USD by default, and all data is returned in a structured JSON format. Understanding the response structure is crucial for developers to effectively parse and utilize the data in their applications.
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.
Conclusion
The Sprott ESG Gold ETF (SESG) represents a significant step towards integrating sustainability into investment strategies. By utilizing the Metals-API, developers can access real-time and historical data for precious metals, enabling them to create innovative applications that enhance trading and investment decisions. The API's extensive features, including real-time rates, historical data, and conversion capabilities, empower developers to build robust solutions that cater to the evolving needs of investors. As the demand for sustainable investing continues to grow, leveraging advanced technologies like the Metals-API will be essential for staying competitive in the precious metals market.